Need for a clear Serial Port Example
Posted: Tue Jun 25, 2019 8:39 am
I'm trying to prepare a clean example of serial port usage. I can't find the struct reference for the following example in testhal/STM32/STM32F4xx/RTC/main.c:
Problems
Questions
Code: Select all
static SerialConfig ser_cfg = {
115200,
0,
0,
0,
};
Problems
- Searching Google with the keywords "SerialConfig chibios" redirects to the page: http://chibios.sourceforge.net/html/str ... onfig.html which displays 404 error page.
- ChibiOS/HAL 6.1.0 documentation shows that there is only one field is required:
Code: Select all
68 typedef struct {
69 /**
70 * @brief Bit rate.
71 */
72 uint32_t speed;
73 /* End of the mandatory fields.*/
74 } SerialConfig;
So where is the rest of the struct reference is documented?
Questions
- How can I configure the
- Baudrate
- Word length
- Parity
- Stop bits
via SerialConfig? Where are the options written? - How is UartConfig related with SerialConfig? Where can I find the differences?