Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1/**
2 * @file config.hpp
3 * @brief Umbrella header for generated hardware configuration
4 *
5 * Includes all generated configuration headers:
6 * - gpio.hpp: GPIO handles (e.g., sbl::hw::gpio::status_led)
7 * - adc.hpp: ADC handles (when available)
8 * - uart.hpp: UART handles (when claimed)
9 * - mcu.hpp: MCU metadata (name, family)
10 * - system.hpp: System configuration (sysclk_mhz)
11 *
12 * These files are generated by sloth at build time based on your
13 * hardware manifest (sbl.json -> mainboard -> MCU).
14 */
15
16#ifndef SBL_HW_CONFIG_HPP_
17#define SBL_HW_CONFIG_HPP_
18
19#include <sbl/hw/config/gpio.hpp>
20#include <sbl/hw/config/mcu.hpp>
21#include <sbl/hw/config/system.hpp>
22
23// Optional peripheral configs - only included if generated
24#if __has_include(<sbl/hw/config/adc.hpp>)
25#include <sbl/hw/config/adc.hpp>
26#endif
27
28#if __has_include(<sbl/hw/config/uart.hpp>)
29#include <sbl/hw/config/uart.hpp>
30#endif
31
32#endif // SBL_HW_CONFIG_HPP_