-
Notifications
You must be signed in to change notification settings - Fork 1k
HardwareSerial data bits issue? #482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
6 databits could be managed with a parity bit on some STM32. Ex for F3, for some device you can have 6 bits + PB: Arduino_Core_STM32/system/Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_usart_ex.h Lines 64 to 67 in 7feeb09
Arduino_Core_STM32/system/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c Lines 115 to 147 in 7feeb09
|
Ok sorry, my fault. In any case, for a generic user, it seems that 9 data bits are not achievable by the library, because both defined config miss and databits cannot be 9. |
Right, 9 is not achievable. |
Ok... i believe that it would better implement it because STM32 is a very powerfull uC. If the software philosopy make it equal as Arduino, why should i use STM32? :) Changing slightly the library, in my current application i use 9 data bits, however it would be fantastic if also less expert people can use the whole STM32 power :) |
First goal of this core was to be able to use STM32 based boards with Arduino and to be as more as possible compatible with basics sketches and libraries. Adding the 9bits support could be a good addition. Do not hesitate to submit a PR. |
Close it as no issue. |
Hi, i'm analyzing HardwareSerial library, inside begin method i've seen that the variable databits can assume from config the values 6,7,8, but HAL library supports only 7,8,9 data bits. Should the defined configurations be changed and subsequently change the if inside begin method?
The text was updated successfully, but these errors were encountered: