stm32-f4discovery-cc256x: add printf led_toggle

This commit is contained in:
Matthias Ringwald 2025-01-14 11:28:10 +01:00
parent 464f151ea4
commit 8ec2012f53

View File

@ -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);