How errorinever/bare-metal-mini-library works
This is a bare-metal STM32F446 peripheral-driver library. An application configures a peripheral through its driver API, then performs I/O through polling, interrupts, or DMA; callbacks report asynchronous completion. The map preserves the distinct GPIO, ADC, DAC, I2C, SPI, and timer capabilities, plus shared DMA and resource-mapping layers. The README is empty and main.c is minimal, so application entry points and some unsampled subsystem wiring are not established; dashed edges mark the unverified application-to-driver relationship.
Main entry points: stm32f446xx.h STM32F446 · dac.c DAC · adc.c ADC · i2c.c I2C
Components 18
Peripheral Drivers
Shared Runtime
- Shared DMA
Core/Src/bmml_dma_shared.c - Utilities
Core/Src/bmml_utilities.c - IRQ Sharing
Core/Src/bmml_irq_shared.c - Status Contract
Core/Inc/bmml_status.h
Hardware Resources
- GPIO Resources
Core/Resources/bmml_res_gpio.h - ADC Resources
Core/Resources/bmml_res_adc.h - DAC Resources
Core/Resources/bmml_res_dac.h - I2C Resources
Core/Resources/bmml_res_i2c.h - SPI Resources
Core/Resources/bmml_res_spi.h - Timer Resources
Core/Resources/bmml_res_timer.h
MCU Platform
- STM32F446
Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f446xx.h
Other components
- Application
Connections 23
- Application → GPIO: configures and uses
- Application → ADC: configures and samples
- Application → DAC: configures and outputs
- Application → I2C: starts transactions
- Application → SPI: starts transfers
- Application → Timers: configures timing
- ADC → Shared DMA: acquires stream
Drivers/ADC/adc.c - I2C → Shared DMA: acquires streams
Drivers/I2C/i2c.c - SPI → Shared DMA: acquires streams
Drivers/SPI/spi.c - DAC → Shared DMA: acquires stream
Drivers/DAC/dac.c - DAC → Timers: acquires TIM6
Drivers/DAC/dac.c - GPIO → STM32F446: accesses registers
Drivers/GPIO/gpio.c - ADC → STM32F446: accesses registers
Drivers/ADC/adc.c - DAC → STM32F446: accesses registers
Drivers/DAC/dac.c - I2C → STM32F446: accesses registers
Drivers/I2C/i2c.c - SPI → STM32F446: accesses registers
Drivers/SPI/spi.c - Timers → STM32F446: accesses registers
Drivers/TIMERS/timer.c - GPIO → GPIO Resources: uses mapping
Drivers/GPIO/gpio.c - ADC → ADC Resources: uses mapping
Drivers/ADC/adc.c - DAC → DAC Resources: uses mapping
Drivers/DAC/dac.c - I2C → I2C Resources: uses mapping
Drivers/I2C/i2c.c - SPI → SPI Resources: uses mapping
Drivers/SPI/spi.c - Timers → Timer Resources: uses mapping
Drivers/TIMERS/timer.c