How yacineamara/rtos works
This is bare-metal STM32F446 firmware with a simple main loop: initialize the FPU and GPIO, USART2, and SysTick, then delay, toggle a GPIO output, and print a message. The repository also includes STM32 device definitions and a broad CMSIS core-header collection. The main-loop calls are visible in Src/main.c; peripheral implementation details are only partially sampled, so relationships beyond those calls are omitted.
Main entry points: main.c Firmware loop · Include Cortex core headers · timer.c Timer and SysTick · cmsis_compiler.h Compiler abstraction
Components 14
Firmware
- Firmware loop
Src/main.c - FPU utilities
Src/util.c
Peripheral drivers
- GPIO control
Src/gpio.c - Timer and SysTick
Src/timer.c - USART2
Src/usart.c - Interrupt handling
Src/interrupt.c
CMSIS platform
- STM32F446 definitions
Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h - STM32 system support
Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h - Compiler abstraction
Drivers/CMSIS/Include/cmsis_compiler.h - Compiler backends
Drivers/CMSIS/Include - CMSIS version
Drivers/CMSIS/Include/cmsis_version.h - Cortex core headers
Drivers/CMSIS/Include - MPU support
Drivers/CMSIS/Include
Other components
- STM32F446 MCU
Connections 11
- Firmware loop → FPU utilities: initializes FPU
Src/main.c - Firmware loop → GPIO control: initializes and toggles
Src/main.c - Firmware loop → USART2: initializes USART
Src/main.c - Firmware loop → Timer and SysTick: initializes and delays
Src/main.c - Interrupt handling → STM32F446 definitions: uses definitions
Src/interrupt.c - Timer and SysTick → STM32F446 definitions: uses definitions
Src/timer.c - Compiler abstraction → Compiler backends: selects backend
Drivers/CMSIS/Include/cmsis_compiler.h - Cortex core headers → Compiler abstraction: uses abstraction
Drivers/CMSIS/Include/core_cm33.h - Cortex core headers → CMSIS version: uses version
Drivers/CMSIS/Include/core_cm33.h - Cortex core headers → MPU support: uses MPU support
Drivers/CMSIS/Include/core_cm33.h - Firmware loop → STM32F446 MCU: controls
Src/main.c