first time generated

This commit is contained in:
2020-10-18 22:17:55 +02:00
parent d921870104
commit 2c9b5f21ac
10 changed files with 658 additions and 21 deletions

View File

@ -26,17 +26,12 @@ void blinkGreen(void *handle) {
HAL_GPIO_TogglePin(LED_Green_GPIO_Port, LED_Green_Pin);
}
void blinkBlue(void *handle) {
HAL_GPIO_TogglePin(LED_Blue_GPIO_Port, LED_Blue_Pin);
}
void helloWorld(void *handle) {
static char hello[] = "Hello World\n\r";
HAL_UART_Transmit_IT(&huart1, (uint8_t*) hello, strlen(hello));
HAL_UART_Transmit_IT(&debugUart, (uint8_t*) hello, strlen(hello));
}
void my_setup_2() {
schAdd(blinkBlue, NULL, 0, 250);
schAdd(blinkRed, NULL, 0, 500);
schAdd(blinkGreen, NULL, 0, 1000);
schAdd(helloWorld, NULL, 0, 5000);