stm32: support i2c3 properly
I2C3 is on many parts, but wasn't properly supported with the register definitions. Declare them centrally, just depending on the memorymap defining them. On some parts, the rcc bits were defined, but not the base registers. Fixes: https://github.com/libopencm3/libopencm3/issues/820
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#define CRS_BASE (PERIPH_BASE_APB1 + 0x6C00)
|
||||
#define POWER_CONTROL_BASE (PERIPH_BASE_APB1 + 0x7000)
|
||||
#define DAC_BASE (PERIPH_BASE_APB1 + 0x7400)
|
||||
#define I2C3_BASE (PERIPH_BASE_APB1 + 0x7800)
|
||||
#define LPTIM1_BASE (PERIPH_BASE_APB1 + 0x7c00)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user