Commit 279e2561 authored by iabdalkader's avatar iabdalkader

drivers/esp_hosted_hal: Add support for WiFI LED activity indicator.

Signed-off-by: default avatariabdalkader <i.abdalkader@gmail.com>
parent a43e13c6
......@@ -37,6 +37,9 @@
#include "modmachine.h"
#include "extmod/machine_spi.h"
#include "mpconfigboard.h"
#ifdef MICROPY_HW_WIFI_LED
#include "led.h"
#endif
#include "esp_hosted_hal.h"
#include "esp_hosted_wifi.h"
......@@ -44,6 +47,9 @@
extern void mod_network_poll_events(void);
STATIC mp_obj_t esp_hosted_pin_irq_callback(mp_obj_t self_in) {
#ifdef MICROPY_HW_WIFI_LED
led_toggle(MICROPY_HW_WIFI_LED);
#endif
mod_network_poll_events();
return mp_const_none;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment