I needed to access the RS485 feature of the STM32 USART and found out that the CR1, CR2 and CR3 initialization fields in the SerialConfig struct are defined as uint16_t. These should be uint32_t.
Jerome
Code: Select all
@@ -221,15 +221,15 @@
/**
* @brief Initialization value for the CR1 register.
*/
- uint16_t sc_cr1;
+ uint32_t sc_cr1;
/**
* @brief Initialization value for the CR2 register.
*/
- uint16_t sc_cr2;
+ uint32_t sc_cr2;
/**
* @brief Initialization value for the CR3 register.
*/
- uint16_t sc_cr3;
+ uint32_t sc_cr3;
} SerialConfig;
/**