Add FreeRTOS

This commit is contained in:
Attila Body 2025-06-11 00:05:54 +02:00
parent 3936a64c42
commit 931c4def56
Signed by: abody
GPG key ID: BD0C6214E68FB5CF
54 changed files with 34334 additions and 98 deletions

View file

@ -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" {

View file

@ -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);
}
}