charger/Core/Src/app.c

18 lines
324 B
C
Raw Normal View History

2023-05-16 21:21:35 +02:00
#include "app.h"
#include "stm32h7xx_hal.h"
#include "tx_api.h"
#include "main.h"
void app_thread_entry(ULONG _) {
uint8_t i = 0;
while (1) {
HAL_GPIO_TogglePin(STATUS1_GPIO_Port, STATUS1_Pin);
tx_thread_sleep(50);
if (i++ % 2 == 0) {
HAL_GPIO_TogglePin(STATUS2_GPIO_Port, STATUS2_Pin);
}
}
}