This commit is contained in:
toril940 2023-12-02 02:57:49 +00:00
parent 2e38269049
commit 279b0473eb
2 changed files with 11 additions and 3 deletions

View File

@ -16,8 +16,13 @@
#define I2C2_SDA_PIN B14
#define I2C2_SCL_PAL_MODE 5
#define I2C2_SDA_PAL_MODE 5
#define I2C2_TIMINGR_PRESC 0U
#define I2C2_TIMINGR_SCLDEL 3U
#define I2C2_TIMINGR_SDADEL 1U
#define I2C2_TIMINGR_SCLH 3U
#define I2C2_TIMINGR_SCLL 9U
#define IS31FL3731_I2C_ADDRESS_1 0b1110100
#define LED_DRIVER_COUNT 1
#define LED_MATRIX_LED_COUNT 8
#define LED_DRIVER_1_LED_TOTAL 8
#define LED_DRIVER_ADDR_1 0b1110100
#define LED_DRIVER_1_LED_TOTAL 8

View File

@ -12,4 +12,7 @@
#define STM32_I2C_USE_I2C2 TRUE
#undef STM32_I2C_USE_DMA
#define STM32_I2C_USE_DMA FALSE
#define STM32_I2C_USE_DMA TRUE
#define STM32_I2C_I2C2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5)
#define STM32_I2C_I2C2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)