How gardener847/freertos-projects works
FreeRTOS-Projects is an LPC17xx/Cortex-M3 embedded framework accompanied by independent firmware examples. The recurring workflow is a board or user input handled by an application task, which uses a peripheral or higher-level service to produce device output, process data, or persist it. The graph groups the shared runtime layers and representative examples; it is not one combined firmware execution path. The README documents the wider protocol and RTOS topics, while some subsystems are represented by indexed references rather than sampled implementation excerpts.
Main entry points: L1_FreeRTOS FreeRTOS kernel · L2_Drivers Peripheral drivers · tasks.hpp Terminal and handlers · main.cpp UART demo
Components 22
Runtime foundation
- Chip support
lib/L0_LowLevel - FreeRTOS kernel
lib/L1_FreeRTOS - Task utilities
lib/L3_Utils/scheduler_task.hpp - Command processor
lib/L3_Utils/command_handler.hpp
Peripheral drivers
- UART console
lib/L0_LowLevel/uart0_min.h - Peripheral drivers
lib/L2_Drivers - Character device
lib/L2_Drivers/base/char_dev.hpp
Board services
- Board sensors and IO
lib/L4_IO/io.hpp - File storage
lib/L4_IO/storage.hpp - FAT filesystem
lib/L4_IO/fat/ff.h - Wireless mesh
lib/L4_IO/wireless/wireless.h - Terminal and handlers
lib/L5_HighLevel/tasks.hpp
Firmware examples
- ADC and PWM demo
Projects/ADC+PWM/L5_Application/main.cpp - UART demo
Projects/UART/L5_Application/main.cpp - SPI flash demo
Projects/SPI/L5_Application/main.cpp - I2C demo
Projects/I2C/L5_Application/main.cpp - Interrupt demo
Projects/Interrupts/L5_Application/main.cpp - Sensor watchdog
Projects/WatchDog/L5_Application/main.cpp - MP3 player
Projects/mp/mp3/L5_Application/main.cpp - Task scheduling demo
Projects/Tasks/L5_Application/main.cpp
Other components
- LPC17xx board
- Board user
Connections 29
- LPC17xx board → Chip support: runs on
README.md - Board user → Terminal and handlers: enters commands
lib/L5_HighLevel/tasks.hpp - Terminal and handlers → Command processor: dispatches commands
lib/L5_HighLevel/tasks.hpp - Terminal and handlers → Task utilities: uses task base
lib/L5_HighLevel/tasks.hpp - Terminal and handlers → UART console: uses console
lib/L5_HighLevel/tasks.hpp - Terminal and handlers → File storage: saves telemetry
lib/L5_HighLevel/tasks.hpp - File storage → FAT filesystem: uses filesystem
lib/L4_IO/src/storage.cpp - Wireless mesh → Peripheral drivers: uses radio drivers
lib/L2_Drivers/nrf_stream.hpp - ADC and PWM demo → FreeRTOS kernel: starts tasks
Projects/ADC+PWM/L5_Application/main.cpp - ADC and PWM demo → Peripheral drivers: uses ADC/PWM
Projects/ADC+PWM/L5_Application/main.cpp - UART demo → Peripheral drivers: uses UART
Projects/UART/L5_Application/main.cpp - UART demo → Board sensors and IO: uses board IO
Projects/UART/L5_Application/main.cpp - UART demo → FreeRTOS kernel: starts tasks
Projects/UART/L5_Application/main.cpp - SPI flash demo → Peripheral drivers: accesses SPI
Projects/SPI/L5_Application/main.cpp - SPI flash demo → FreeRTOS kernel: starts tasks
Projects/SPI/L5_Application/main.cpp - I2C demo → Peripheral drivers: uses I2C
Projects/I2C/L5_Application/main.cpp - I2C demo → FreeRTOS kernel: starts tasks
Projects/I2C/L5_Application/main.cpp - Interrupt demo → Peripheral drivers: registers interrupts
Projects/Interrupts/L5_Application/main.cpp - Interrupt demo → FreeRTOS kernel: starts tasks
Projects/Interrupts/L5_Application/main.cpp - Sensor watchdog → Board sensors and IO: reads light sensor
Projects/WatchDog/L5_Application/main.cpp - Sensor watchdog → File storage: appends readings
Projects/WatchDog/L5_Application/main.cpp - Sensor watchdog → FreeRTOS kernel: coordinates tasks
Projects/WatchDog/L5_Application/main.cpp - MP3 player → Peripheral drivers: drives audio
Projects/mp/mp3/L5_Application/main.cpp - MP3 player → Board sensors and IO: uses board IO
Projects/mp/mp3/L5_Application/main.cpp - MP3 player → FreeRTOS kernel: starts tasks
Projects/mp/mp3/L5_Application/main.cpp - Task scheduling demo → FreeRTOS kernel: starts scheduler
Projects/Tasks/L5_Application/main.cpp - Character device → FreeRTOS kernel: uses queues and semaphores
lib/L2_Drivers/base/char_dev.hpp - Command processor → Character device: uses command IO
lib/L3_Utils/command_handler.hpp - Chip support → Peripheral drivers: provides chip access
lib/L0_LowLevel/lpc_sys.h