[BREAKING] stm32g0: add/rename missing periphs/irqs

Updated to RM0444_rev5

Breaking: renames some irqs to be more specific and better match with
refman.  We're still in the "between" tags, so break all the toys!

Signed-off-by: Karl Palsson <karlp@tweak.au>
This commit is contained in:
Karl Palsson
2023-01-13 00:33:34 +00:00
parent 84a59d925d
commit 5796f41caa
2 changed files with 23 additions and 9 deletions

View File

@@ -16,20 +16,20 @@
"tim1_brk_up_trg_com",
"tim1_cc",
"tim2",
"tim3",
"tim34",
"tim6_dac_lptim1",
"tim7_lptim2",
"tim14",
"tim15",
"tim16",
"tim17",
"tim16_fdcan_it0",
"tim17_fdcan_it1",
"i2c1",
"i2c2",
"i2c23",
"spi1",
"spi2",
"spi23",
"usart1",
"usart2",
"usart3_usart4_lpuart1",
"usart2_lpuart2",
"usart3456_lpuart1",
"cec",
"aes_rng"
],

View File

@@ -30,6 +30,7 @@
/* APB */
#define TIM2_BASE (PERIPH_BASE_APB + 0x0000)
#define TIM3_BASE (PERIPH_BASE_APB + 0x0400)
#define TIM4_BASE (PERIPH_BASE_APB + 0x0800)
#define TIM6_BASE (PERIPH_BASE_APB + 0x1000)
#define TIM7_BASE (PERIPH_BASE_APB + 0x1400)
#define TIM14_BASE (PERIPH_BASE_APB + 0x2000)
@@ -37,20 +38,31 @@
#define WWDG_BASE (PERIPH_BASE_APB + 0x2c00)
#define IWDG_BASE (PERIPH_BASE_APB + 0x3000)
#define SPI2_BASE (PERIPH_BASE_APB + 0x3800)
#define SPI3_BASE (PERIPH_BASE_APB + 0x3c00)
#define USART2_BASE (PERIPH_BASE_APB + 0x4400)
#define USART3_BASE (PERIPH_BASE_APB + 0x4800)
#define USART4_BASE (PERIPH_BASE_APB + 0x4C00)
#define USART5_BASE (PERIPH_BASE_APB + 0x5000)
#define I2C1_BASE (PERIPH_BASE_APB + 0x5400)
#define I2C2_BASE (PERIPH_BASE_APB + 0x5800)
#define USB_BASE (PERIPH_BASE_APB + 0x5c00)
#define FDCAN1_BASE (PERIPH_BASE_APB + 0x6400)
#define FDCAN2_BASE (PERIPH_BASE_APB + 0x6800)
#define CRS_BASE (PERIPH_BASE_APB + 0x6c00)
#define POWER_CONTROL_BASE (PERIPH_BASE_APB + 0x7000)
#define DAC_BASE (PERIPH_BASE_APB + 0x7400)
#define CEC_BASE (PERIPH_BASE_APB + 0x7800)
#define LPTIM1_BASE (PERIPH_BASE_APB + 0x7c00)
#define LPUART1_BASE (PERIPH_BASE_APB + 0x8000)
#define LPUART2_BASE (PERIPH_BASE_APB + 0x8400)
#define I2C3_BASE (PERIPH_BASE_APB + 0x8800)
#define LPTIM2_BASE (PERIPH_BASE_APB + 0x9400)
#define USB_RAM1_BASE (PERIPH_BASE_APB + 0x9800)
#define USB_RAM2_BASE (PERIPH_BASE_APB + 0x9c00)
#define UCPD1_BASE (PERIPH_BASE_APB + 0xA000)
#define UCPD2_BASE (PERIPH_BASE_APB + 0xA400)
#define TAMP_BASE (PERIPH_BASE_APB + 0xB000)
#define FDCANMSG_BASE (PERIPH_BASE_APB + 0xB400)
#define SYSCFG_BASE (PERIPH_BASE_APB + 0x10000)
#define VREFBUF_BASE (PERIPH_BASE_APB + 0x10030)
#define SYSCFG_ITLINE_BASE (PERIPH_BASE_APB + 0x10080)
@@ -59,6 +71,7 @@
#define TIM1_BASE (PERIPH_BASE_APB + 0x12C00)
#define SPI1_BASE (PERIPH_BASE_APB + 0x13000)
#define USART1_BASE (PERIPH_BASE_APB + 0x13800)
#define USART6_BASE (PERIPH_BASE_APB + 0x13c00)
#define TIM15_BASE (PERIPH_BASE_APB + 0x14000)
#define TIM16_BASE (PERIPH_BASE_APB + 0x14400)
#define TIM17_BASE (PERIPH_BASE_APB + 0x14800)
@@ -66,6 +79,7 @@
/* AHB */
#define DMA1_BASE (PERIPH_BASE_AHB + 0x00000)
#define DMA2_BASE (PERIPH_BASE_AHB + 0x00400)
#define DMAMUX_BASE (PERIPH_BASE_AHB + 0x00800)
#define RCC_BASE (PERIPH_BASE_AHB + 0x01000)
#define EXTI_BASE (PERIPH_BASE_AHB + 0x01800)