How rogerclarkmelbourne/arduino_stm32 works
Arduino STM32 supplies Arduino 1.8.x hardware support for Maple, Maple Mini, and other STM32 boards. The principal workflow is a sketch using Arduino-facing APIs on a selected board, with the core providing runtime and peripheral support. The tree also contains substantial peripheral libraries, USB composite functions, and three bundled FreeRTOS versions. The README establishes the platform scope; the source index supports only a few specific module relationships, so unverified connections are omitted or dashed.
Main entry points: Stream.h Stream API · libmaple STM32 peripheral drivers · HardwareSerial.cpp Hardware serial · variants Board variants
Components 20
Arduino core
- Core runtime
STM32F1/cores/maple/main.cpp - Print API
STM32F1/cores/maple/Print.h - Stream API
STM32F1/cores/maple/Stream.h - Hardware serial
STM32F1/cores/maple/HardwareSerial.cpp
Board and drivers
- Board variants
STM32F1/variants - STM32 peripheral drivers
STM32F1/cores/maple/libmaple - Libmaple system
STM32F1/system/libmaple - Analog and PWM
STM32F1/cores/maple/wirish_analog.cpp - Digital I/O
STM32F1/cores/maple/wirish_digital.cpp
Peripheral libraries
- SPI library
STM32F1/libraries/SPI/src/SPI.cpp - Wire library
STM32F1/libraries/Wire/Wire.cpp - Ethernet library
STM32F1/libraries/Ethernet_STM/src/Ethernet_STM.cpp - EEPROM storage
STM32F1/libraries/EEPROM/EEPROM.cpp - Display libraries
STM32F1/libraries/Adafruit_GFX_AS/Adafruit_GFX_AS.cpp
RTOS and USB
- USB composite
STM32F1/libraries/USBComposite/USBComposite.cpp - USB mass storage
STM32F1/libraries/USBComposite/USBMassStorage.cpp - FreeRTOS 7.01
STM32F1/libraries/FreeRTOS701/utility/tasks.c - FreeRTOS 8.21
STM32F1/libraries/FreeRTOS821/utility/tasks.c - FreeRTOS 9.00
STM32F1/libraries/FreeRTOS900/utility/tasks.c
Other components
- Arduino sketch author
Connections 6
- Arduino sketch author → Core runtime: uses platform
- Stream API → Print API: inherits
STM32F1/cores/maple/Stream.h - Hardware serial → Stream API: uses API
- Board variants → STM32 peripheral drivers: selects support
- STM32 peripheral drivers → Libmaple system: uses system layer
- USB mass storage → USB composite: registers component
STM32F1/libraries/USBComposite/USBMassStorage.cpp