mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 22:43:35 +00:00
stm32-f4discovery-cc256x: add printf led_toggle
This commit is contained in:
parent
464f151ea4
commit
8ec2012f53
@ -250,6 +250,13 @@ ssize_t _read(int fd, void * buf, size_t count){
|
||||
return -1;
|
||||
}
|
||||
|
||||
// TODO: control LED instead of printing its state
|
||||
void hal_led_toggle(void){
|
||||
static bool led_state = false;
|
||||
led_state = !led_state;
|
||||
printf("LED State %u\n", led_state);
|
||||
}
|
||||
|
||||
// main.c
|
||||
static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
UNUSED(size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user