How rt-thread/rtthread-nano works
This tree is an RT-Thread embedded operating-system repository with an STM32F407 board application, architecture ports, kernel services, and FinSH shell components. The visible board workflow initializes STM32 hardware, then periodically delays and prints a greeting through RT-Thread APIs. The tree also includes CMSIS headers and a DSP test suite; the latter is test infrastructure rather than the embedded product runtime, so it is omitted. Source evidence is sparse for internal kernel and shell calls, so those relationships are not inferred.
Main entry points: main.c Board entry loop · stm32f4xx_hal.h STM32 HAL · main.h Board definitions · stm32f4xx_hal_conf.h HAL configuration
Components 23
Board Application
- Board entry loop
rt-thread/bsp/stm32f407-msh/Core/Src/main.c - Board definitions
rt-thread/bsp/stm32f407-msh/Core/Inc/main.h - STM32 HAL
rt-thread/bsp/stm32f407-msh/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h - HAL configuration
rt-thread/bsp/stm32f407-msh/Core/Inc/stm32f4xx_hal_conf.h
RT-Thread Kernel
- RT-Thread API
rt-thread/include/rtthread.h - Thread services
rt-thread/src/thread.c - Scheduler
rt-thread/src/scheduler.c - IPC services
rt-thread/src/ipc.c - Timer services
rt-thread/src/timer.c - Memory services
rt-thread/src/mem.c - Memory heaps
rt-thread/src/memheap.c - Slab allocator
rt-thread/src/slab.c - Kernel utilities
rt-thread/src/kservice.c
CPU Ports
- ARM Cortex-M ports
rt-thread/libcpu/arm/cortex-m4/cpuport.c - RISC-V port
rt-thread/libcpu/risc-v/common/cpuport.c - ARM GICv3 support
rt-thread/libcpu/arm/cortex-a/gicv3.c - ARMv6 MMU
rt-thread/libcpu/arm/armv6/mmu.c
FinSH Shell
- Interactive shell
rt-thread/components/finsh/shell.c - MSH commands
rt-thread/components/finsh/msh.c - FinSH commands
rt-thread/components/finsh/cmd.c - MSH file commands
rt-thread/components/finsh/msh_file.c - Command parser
rt-thread/components/finsh/msh_parse.c
Other components
- STM32F407 board
Connections 6
- STM32F407 board → Board entry loop: starts
rt-thread/bsp/stm32f407-msh/Core/Src/main.c - Board entry loop → STM32 HAL: initializes hardware
rt-thread/bsp/stm32f407-msh/Core/Src/main.c - Board entry loop → RT-Thread API: delays and prints
rt-thread/bsp/stm32f407-msh/Core/Src/main.c - Board entry loop → Board definitions: includes
rt-thread/bsp/stm32f407-msh/Core/Src/main.c - Board definitions → STM32 HAL: includes
rt-thread/bsp/stm32f407-msh/Core/Inc/main.h - STM32 HAL → HAL configuration: includes
rt-thread/bsp/stm32f407-msh/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h