How kyungjae-lee/freertos-projects works
This repository is a set of STM32F4/FreeRTOS learning projects, not one deployed application. The examples progress from basic task creation to timing, notifications, ISR interaction, priority and idle-hook behavior, then queues and software timers. Application entry points configure the board and start the scheduler; FreeRTOS supplies task and synchronization services, while the STM32 HAL exposes peripheral access. SEGGER SystemView supports realtime recording. Source excerpts are partial, so links between individual example handlers and kernel services are shown only where supported by the index or excerpts.
Main entry points: tasks.c Task scheduler · Src/main.c Queues and timers · task.h Task API · Src/main.c Task basics
Components 16
Learning projects
- Task basics
Workspace/01_Tasks/Core/Src/main.c - LED tasks
Workspace/02_LED_Tasks/Core/Src/main.c - Delayed tasks
Workspace/03_LED_Tasks_Delay/Core/Src/main.c - Periodic tasks
Workspace/04_LED_Tasks_Periodic/Core/Src/main.c - Notifications
Workspace/05_LED_Tasks_Notification_Deletion/Core/Src/main.c - Button ISR
Workspace/06_LED_Button_ISR/Core/Src/main.c - Task priority
Workspace/07_LED_Task_Priority/Core/Src/main.c - Idle hook
Workspace/08_Idle_Hook/Core/Src/main.c - Queues and timers
Workspace/09_Queues_and_Timers/Core/Src/main.c - Task handlers
Workspace/09_Queues_and_Timers/Core/Src/task_handler.c
FreeRTOS runtime
- Task scheduler
Workspace/01_Tasks/ThirdParty/FreeRTOS/tasks.c - Task API
Workspace/Common/ThirdParty/FreeRTOS/include/task.h - Queue API
Workspace/Common/ThirdParty/FreeRTOS/include/queue.h - Timer API
Workspace/Common/ThirdParty/FreeRTOS/include/timers.h
STM32 hardware
- STM32 HAL
Workspace/01_Tasks/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h
Realtime analysis
- SystemView
Workspace/Common/ThirdParty/SEGGER/SEGGER/SEGGER_SYSVIEW.c
Connections 15
- Task basics → Task scheduler: starts scheduler
Workspace/01_Tasks/Core/Src/main.c - LED tasks → Task scheduler: starts scheduler
Workspace/02_LED_Tasks/Core/Src/main.c - Delayed tasks → Task scheduler: uses task API
Workspace/03_LED_Tasks_Delay/Core/Src/main.c - Periodic tasks → Task scheduler: starts scheduler
Workspace/04_LED_Tasks_Periodic/Core/Src/main.c - Notifications → Task scheduler: uses notifications
Workspace/05_LED_Tasks_Notification_Deletion/Core/Src/main.c - Button ISR → Task scheduler: uses task API
Workspace/06_LED_Button_ISR/Core/Src/main.c - Task priority → Task scheduler: starts scheduler
Workspace/07_LED_Task_Priority/Core/Src/main.c - Idle hook → Task scheduler: starts scheduler
Workspace/08_Idle_Hook/Core/Src/main.c - Queues and timers → Task scheduler: starts scheduler
Workspace/09_Queues_and_Timers/Core/Src/main.c - Queues and timers → STM32 HAL: initializes peripherals
Workspace/09_Queues_and_Timers/Core/Src/main.c - Task scheduler → Task API: implements API
Workspace/01_Tasks/ThirdParty/FreeRTOS/tasks.c - Queue API → Task API: references task API
Workspace/Common/ThirdParty/FreeRTOS/include/queue.h - Timer API → Task API: references task API
Workspace/Common/ThirdParty/FreeRTOS/include/timers.h - Queues and timers → Task handlers: delegates tasks
- Task scheduler → SystemView: supports recording