Sound Byte Libs
0.5.1-340-gab5b79a
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 the generated configuration headers:
6
* - gpio.hpp: GPIO handles (e.g., sbl::hw::gpio::status_led)
7
* - mcu.hpp: MCU metadata (name, family)
8
* - target.hpp: Target configuration (sysclk_mhz, sample_rate, block_size)
9
* - adc.hpp, uart.hpp, i2c.hpp, board.hpp, app.hpp: each when generated
10
*
11
* sloth generates these files at build time from the hardware manifest
12
* (sbl.json -> mainboard -> MCU).
13
*/
14
15
#ifndef SBL_HW_CONFIG_HPP_
16
#define SBL_HW_CONFIG_HPP_
17
18
#include <sbl/hw/config/gpio.hpp>
19
#include <sbl/hw/config/mcu.hpp>
20
#include <sbl/hw/config/target.hpp>
21
22
// Optional peripheral configs - only included if generated
23
#if __has_include(<sbl/hw/config/adc.hpp>)
24
#include <sbl/hw/config/adc.hpp>
25
#endif
26
27
#if __has_include(<sbl/hw/config/uart.hpp>)
28
#include <sbl/hw/config/uart.hpp>
29
#endif
30
31
#if __has_include(<sbl/hw/config/i2c.hpp>)
32
#include <sbl/hw/config/i2c.hpp>
33
#endif
34
35
#if __has_include(<sbl/hw/config/board.hpp>)
36
#include <sbl/hw/config/board.hpp>
37
#endif
38
39
#if __has_include(<sbl/hw/config/app.hpp>)
40
#include <sbl/hw/config/app.hpp>
41
#endif
42
43
#endif
// SBL_HW_CONFIG_HPP_
src
sbl
hw
config.hpp
Generated by
1.9.8