From e7055fc405022a79d1a4217cd252a293ae5a0bef Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 15 Jan 2025 18:37:15 +0100 Subject: [PATCH] stm32-f4discovery-cc256x: control LED3 (orange) with hal_led_toggle --- port/stm32-f4discovery-cc256x/port/port.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/port/stm32-f4discovery-cc256x/port/port.c b/port/stm32-f4discovery-cc256x/port/port.c index 1a70e9c6f..4f53b2918 100644 --- a/port/stm32-f4discovery-cc256x/port/port.c +++ b/port/stm32-f4discovery-cc256x/port/port.c @@ -250,11 +250,8 @@ 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); + HAL_GPIO_TogglePin( LD3_GPIO_Port, LD3_Pin); } // main.c