88 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
99 */
1010
11- #ifndef MODM_STM32_NUCLEO_G071RB_HPP
12- #define MODM_STM32_NUCLEO_G071RB_HPP
11+ #ifndef MODM_STM32_NUCLEO_G0x1Rx_HPP
12+ #define MODM_STM32_NUCLEO_G0x1Rx_HPP
1313
1414#include < modm/platform.hpp>
1515#include < modm/architecture/interface/clock.hpp>
1616#include < modm/debug/logger.hpp>
17- // / @ingroup modm_board_nucleo_g071rb modm_board_nucleo_g070rb
17+ // / @ingroup modm_board_nucleo_g070rb modm_board_nucleo_g071rb modm_board_nucleo_g0b1re
1818#define MODM_BOARD_HAS_LOGGER
1919
2020using namespace modm ::platform;
2121
2222namespace Board
2323{
24- // / @ingroup modm_board_nucleo_g071rb modm_board_nucleo_g070rb
24+ // / @ingroup modm_board_nucleo_g070rb modm_board_nucleo_g071rb modm_board_nucleo_g0b1re
2525// / @{
2626using namespace modm ::literals;
2727
28- // / STM32G071RB running at 64MHz generated from the internal 16MHz crystal
28+ // / STM32G0x1Rx running at 64MHz generated from the internal 16MHz crystal
2929struct SystemClock
3030{
3131 static constexpr uint32_t Frequency = 64_MHz;
@@ -40,11 +40,14 @@ struct SystemClock
4040 static constexpr uint32_t Rcc = Ahb;
4141 static constexpr uint32_t Dmamux = Ahb;
4242 static constexpr uint32_t Dma = Ahb;
43+ static constexpr uint32_t Dma2 = Ahb;
44+ static constexpr uint32_t Dma1 = Ahb;
4345
4446 static constexpr uint32_t Dbg = Apb;
4547 static constexpr uint32_t Timer17 = Apb;
4648 static constexpr uint32_t Timer16 = Apb;
4749 static constexpr uint32_t Timer15 = Apb;
50+ static constexpr uint32_t Usart6 = Apb;
4851 static constexpr uint32_t Usart1 = Apb;
4952 static constexpr uint32_t Spi1 = Apb;
5053 static constexpr uint32_t I2s1 = Apb;
@@ -59,25 +62,35 @@ struct SystemClock
5962 static constexpr uint32_t Ucpd2 = Apb;
6063 static constexpr uint32_t Ucpd1 = Apb;
6164 static constexpr uint32_t LpTimer2 = Apb;
65+ static constexpr uint32_t I2c3 = Apb;
66+ static constexpr uint32_t LpUart2 = Apb;
6267 static constexpr uint32_t LpUart1 = Apb;
6368 static constexpr uint32_t LpTimer1 = Apb;
6469 static constexpr uint32_t HdmiCec = Apb;
6570 static constexpr uint32_t Dac = Apb;
6671 static constexpr uint32_t Pwr = Apb;
72+ static constexpr uint32_t Crs = Apb;
73+ static constexpr uint32_t Fdcan2 = Apb;
74+ static constexpr uint32_t Fdcan1 = Apb;
75+ static constexpr uint32_t Usb = Apb;
6776 static constexpr uint32_t I2c2 = Apb;
6877 static constexpr uint32_t I2c1 = Apb;
78+ static constexpr uint32_t Usart5 = Apb;
6979 static constexpr uint32_t Usart4 = Apb;
7080 static constexpr uint32_t Usart3 = Apb;
7181 static constexpr uint32_t Usart2 = Apb;
82+ static constexpr uint32_t Spi3 = Apb;
7283 static constexpr uint32_t Spi2 = Apb;
84+ static constexpr uint32_t I2s2 = Apb;
7385 static constexpr uint32_t Iwdg = Rcc::LsiFrequency;
7486 static constexpr uint32_t Wwdg = Apb;
87+ static constexpr uint32_t Rtc = 32 .768_kHz;
7588 static constexpr uint32_t Timer14 = Apb;
7689 static constexpr uint32_t Timer7 = Apb;
7790 static constexpr uint32_t Timer6 = Apb;
91+ static constexpr uint32_t Timer4 = Apb;
7892 static constexpr uint32_t Timer3 = Apb;
7993 static constexpr uint32_t Timer2 = Apb;
80- static constexpr uint32_t Rtc = 32 .768_kHz;
8194
8295 static bool inline
8396 enable ()
@@ -138,15 +151,15 @@ using Leds = SoftwareGpioPort< LedD13 >;
138151
139152namespace stlink
140153{
141- // / @ingroup modm_board_nucleo_g071rb modm_board_nucleo_g070rb
154+ // / @ingroup modm_board_nucleo_g070rb modm_board_nucleo_g071rb modm_board_nucleo_g0b1re
142155// / @{
143156using Rx = GpioInputA3;
144157using Tx = GpioOutputA2;
145158using Uart = BufferedUart<UsartHal2, UartTxBuffer<2048 >>;
146159// / @}
147160}
148161
149- // / @ingroup modm_board_nucleo_g071rb modm_board_nucleo_g070rb
162+ // / @ingroup modm_board_nucleo_g070rb modm_board_nucleo_g071rb modm_board_nucleo_g0b1re
150163// / @{
151164using LoggerDevice = modm::IODeviceWrapper< stlink::Uart, modm::IOBuffer::BlockIfFull >;
152165
@@ -165,4 +178,4 @@ initialize()
165178
166179}
167180
168- #endif // MODM_STM32_NUCLEO_G071RB_HPP
181+ #endif // MODM_STM32_NUCLEO_G0x1Rx_HPP
0 commit comments