1+ #pragma once
12#include " drivers/clocks.hh"
23#include " drivers/i2c_conf.hh"
34#include " drivers/leds.hh"
45
56namespace Board
67{
7- using OrangeLED = Led<GPIO::H, PinNum::_7, LedActive::High>;
8+ using RedLED = Led<GPIO::D, PinNum::_8, LedActive::Low>;
9+ using GreenLED = Led<GPIO::B, PinNum::_3, LedActive::High>; // Debug2
10+ using RedLED2 = RedLED;
11+ using GreenLED2 = GreenLED;
812
9- using BlueLED = Led<GPIO::D, PinNum::_11, LedActive::High>;
13+ using OrangeLED = RedLED2;
14+ using BlueLED = GreenLED;
1015
11- using GreenLED = Led<GPIO::A, PinNum::_14, LedActive::High>;
16+ constexpr PinConf BootSelectPin{GPIO::E, PinNum::_2}; // DFU boot button
17+ constexpr bool UseBootSelect = true ;
1218
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};
19+ constexpr bool UseFreezePin = true ;
20+ constexpr PinConf FreezePin{GPIO::B, PinNum::_4}; // DEBUG3 pin
2621
2722constexpr 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 };
23+ constexpr PinConf UartRX{GPIO::A , PinNum::_15 , PinAF::AF_8};
24+ constexpr PinConf UartTX{GPIO::A , PinNum::_9 , PinAF::AF_8 };
3025
3126namespace NORFlash
3227{
33- constexpr bool HasNORFlash = false ;
34- constexpr PinConf d2{};
35- constexpr PinConf d3{};
28+ constexpr bool HasNORFlash = true ;
29+ constexpr PinConf d2{GPIO::F, PinNum::_6, PinAF::AF_9 };
30+ constexpr PinConf d3{GPIO::H, PinNum::_7, PinAF::AF_13 };
3631} // namespace NORFlash
3732
3833namespace PMIC
@@ -42,6 +37,7 @@ constexpr I2C_Config I2C_config{};
4237} // namespace PMIC
4338
4439constexpr uint32_t HSE_Clock_Hz = 24000000 ;
45- constexpr uint32_t MPU_MHz = 650 ;
46- constexpr auto ClockType = SystemClocks::HSEClockSource::AnalogOsc;
40+ constexpr uint32_t MPU_MHz = 1000 ;
41+ constexpr auto ClockType = SystemClocks::HSEClockSource::Resonator;
42+
4743} // namespace Board
0 commit comments