diff options
-rw-r--r-- | stm32f091/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stm32f091/main.c b/stm32f091/main.c index 344c3de..6d1fb38 100644 --- a/stm32f091/main.c +++ b/stm32f091/main.c @@ -5,12 +5,11 @@ #include <stm32f0xx_hal.h> void task_1() { - // uint8_t led = 1; + uint8_t led = 1; while (1) { - // HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, led); - // led ^= 1; - HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5); + HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, led); + led ^= 1; vTaskDelay(1000 / portTICK_RATE_MS); } |