aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-04 13:39:20 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-04 13:39:20 +0200
commit1000c8fd861b046a72bb3957dcc04cd6b28ceede (patch)
tree9bc0e6a9f34c20b220aea20747abe099175fe4c2
parentca7c9c3987a807f347d19976f63769a46ad7db83 (diff)
return to manual led on/off state management
-rw-r--r--stm32f091/main.c7
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);
}