commit for I2C2 peripheral config with TX DMA channel, working on 400kHz fast mode.

This commit is contained in:
2026-08-28 15:33:48 +08:00
parent 983d63e3a5
commit dc8b4bdb5f
8 changed files with 207 additions and 17 deletions
+2 -4
View File
@@ -83,10 +83,8 @@ void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(ENCODER_B_INPUT_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pins : PA5 PA6 PA7 PA11
PA12 PA15 */
GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_11
|GPIO_PIN_12|GPIO_PIN_15;
/*Configure GPIO pins : PA5 PA6 PA7 PA15 */
GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);