mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
Update i2c mapping and i2c clock source
i2c4 was mapped incorrectly and i2c4 clock source wasn't present.
This commit is contained in:
committed by
Lorenz Meier
parent
7525722b1a
commit
17b48102f4
@@ -186,7 +186,7 @@
|
|||||||
/* Kernel Clock Configuration
|
/* Kernel Clock Configuration
|
||||||
* Note: look at Table 54 in ST Manual
|
* Note: look at Table 54 in ST Manual
|
||||||
*/
|
*/
|
||||||
#define STM32_RCC_D2CCIP2R_I2C123SRC RCC_D2CCIP2R_I2C123SEL_HSI /* I2C123 clock source */
|
#define STM32_RCC_D2CCIP2R_I2C123SRC RCC_D2CCIP2R_I2C1234SEL_HSI /* I2C1234 clock source */
|
||||||
#define STM32_RCC_D2CCIP1R_SPI123SRC RCC_D2CCIP1R_SPI123SEL_PLL2 /* SPI123 clock source */
|
#define STM32_RCC_D2CCIP1R_SPI123SRC RCC_D2CCIP1R_SPI123SEL_PLL2 /* SPI123 clock source */
|
||||||
#define STM32_RCC_D2CCIP1R_SPI45SRC RCC_D2CCIP1R_SPI45SEL_PLL2 /* SPI45 clock source */
|
#define STM32_RCC_D2CCIP1R_SPI45SRC RCC_D2CCIP1R_SPI45SEL_PLL2 /* SPI45 clock source */
|
||||||
#define STM32_RCC_D3CCIPR_SPI6SRC RCC_D3CCIPR_SPI6SEL_PLL2 /* SPI6 clock source */
|
#define STM32_RCC_D3CCIPR_SPI6SRC RCC_D3CCIPR_SPI6SEL_PLL2 /* SPI6 clock source */
|
||||||
@@ -274,5 +274,5 @@
|
|||||||
#define GPIO_I2C3_SCL GPIO_I2C3_SCL_2 /* PH7 */
|
#define GPIO_I2C3_SCL GPIO_I2C3_SCL_2 /* PH7 */
|
||||||
#define GPIO_I2C3_SDA GPIO_I2C3_SDA_2 /* PH8 */
|
#define GPIO_I2C3_SDA GPIO_I2C3_SDA_2 /* PH8 */
|
||||||
|
|
||||||
#define GPIO_I2C4_SCL GPIO_I2C4_SCL_2 /* PF14 */
|
#define GPIO_I2C4_SCL GPIO_I2C4_SCL_4 /* PB6 */
|
||||||
#define GPIO_I2C4_SDA GPIO_I2C4_SDA_2 /* PF15 */
|
#define GPIO_I2C4_SDA GPIO_I2C4_SDA_4 /* PB7 */
|
||||||
|
|||||||
Reference in New Issue
Block a user