Add FreeRTOS
This commit is contained in:
parent
3936a64c42
commit
931c4def56
54 changed files with 34334 additions and 98 deletions
|
@ -14,7 +14,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
void app_main(void) __attribute__((noreturn));
|
||||
void app_main(void const *param) __attribute__((noreturn));
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C" {
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
* Created on: Oct 28, 2019
|
||||
* Author: abody
|
||||
*/
|
||||
#include "stm32f4xx_hal.h"
|
||||
#include "stm32f4xx_ll_gpio.h"
|
||||
#include <main.h>
|
||||
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
|
||||
#include <f4ll/console_handler.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -15,12 +16,14 @@
|
|||
|
||||
#include <app.h>
|
||||
|
||||
void app_main()
|
||||
void app_main(void const *param)
|
||||
{
|
||||
(void)param;
|
||||
|
||||
f4ll::console_handler &con = f4ll::console_handler::init(USART2, DMA1, LL_DMA_STREAM_5, LL_DMA_STREAM_6);
|
||||
while (true) {
|
||||
con.print("Hello woooooooooooooooooooooooooooooooorld!\n");
|
||||
HAL_Delay(500);
|
||||
vTaskDelay(pdMS_TO_TICKS(500));
|
||||
LL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue