diff --git a/platforms/libusb/main.c b/platforms/libusb/main.c index b86dea2e4..c1c1ce5e6 100644 --- a/platforms/libusb/main.c +++ b/platforms/libusb/main.c @@ -50,6 +50,7 @@ #include "btstack-config.h" #include +#include #include "debug.h" #include "btstack_memory.h" @@ -73,6 +74,12 @@ static void sigint_handler(int param){ exit(0); } +static led_state = 0; +void hal_led_toggle(){ + led_state = 1 - led_state; + printf("LED State %u\n", led_state); +} + int main(int argc, const char * argv[]){ /// GET STARTED with BTstack /// diff --git a/platforms/posix-stlc2500d/main.c b/platforms/posix-stlc2500d/main.c index 42a7d078a..9775d4953 100644 --- a/platforms/posix-stlc2500d/main.c +++ b/platforms/posix-stlc2500d/main.c @@ -80,6 +80,12 @@ static void sigint_handler(int param){ exit(0); } +static led_state = 0; +void hal_led_toggle(){ + led_state = 1 - led_state; + printf("LED State %u\n", led_state); +} + int main(int argc, const char * argv[]){ /// GET STARTED with BTstack /// diff --git a/platforms/posix-wl183x/main.c b/platforms/posix-wl183x/main.c index d38f476ab..977a8a594 100644 --- a/platforms/posix-wl183x/main.c +++ b/platforms/posix-wl183x/main.c @@ -79,6 +79,12 @@ static void sigint_handler(int param){ exit(0); } +static led_state = 0; +void hal_led_toggle(){ + led_state = 1 - led_state; + printf("LED State %u\n", led_state); +} + int main(int argc, const char * argv[]){ /// GET STARTED with BTstack ///