|
| 1 | +#include "drivers/clocks.hh" |
| 2 | +#include "drivers/i2c_conf.hh" |
| 3 | +#include "drivers/leds.hh" |
| 4 | + |
| 5 | +namespace Board |
| 6 | +{ |
| 7 | +using OrangeLED = Led<GPIO::H, PinNum::_7, LedActive::High>; |
| 8 | + |
| 9 | +using BlueLED = Led<GPIO::D, PinNum::_11, LedActive::High>; |
| 10 | + |
| 11 | +using GreenLED = Led<GPIO::A, PinNum::_14, LedActive::High>; |
| 12 | + |
| 13 | +using RedLED = Led<GPIO::A, PinNum::_13, LedActive::High>; |
| 14 | + |
| 15 | +using RedLED2 = OrangeLED; // For compatibility with OSD32BRK board |
| 16 | +using GreenLED2 = BlueLED; // For compatibility with OSD32BRK board |
| 17 | + |
| 18 | +// Button USER2 (also activates RedLED) |
| 19 | +constexpr bool UseBootSelect = false; |
| 20 | +constexpr PinConf BootSelectPin{GPIO::A, PinNum::_13}; |
| 21 | + |
| 22 | +// Freeze mode: halts booting after initializing everything |
| 23 | +// so you can load firmware via SWD/JTAG |
| 24 | +constexpr bool UseFreezePin = false; |
| 25 | +constexpr PinConf FreezePin{GPIO::Unused, PinNum::_0}; |
| 26 | + |
| 27 | +constexpr uint32_t ConsoleUART = UART4_BASE; |
| 28 | +constexpr PinConf UartRX{GPIO::B, PinNum::_2, PinAF::AF_8}; |
| 29 | +constexpr PinConf UartTX{GPIO::G, PinNum::_11, PinAF::AF_6}; |
| 30 | + |
| 31 | +namespace NORFlash |
| 32 | +{ |
| 33 | +constexpr bool HasNORFlash = false; |
| 34 | +constexpr PinConf d2{}; |
| 35 | +constexpr PinConf d3{}; |
| 36 | +} // namespace NORFlash |
| 37 | + |
| 38 | +namespace PMIC |
| 39 | +{ |
| 40 | +constexpr bool HasSTPMIC = false; |
| 41 | +constexpr I2C_Config I2C_config{}; |
| 42 | +} // namespace PMIC |
| 43 | + |
| 44 | +constexpr uint32_t HSE_Clock_Hz = 24000000; |
| 45 | +constexpr uint32_t MPU_MHz = 650; |
| 46 | +constexpr auto ClockType = SystemClocks::HSEClockSource::AnalogOsc; |
| 47 | +} // namespace Board |
0 commit comments