18 lines
324 B
C
18 lines
324 B
C
|
#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);
|
||
|
}
|
||
|
}
|
||
|
}
|