mirror of
https://github.com/Noltari/pico-uart-bridge.git
synced 2024-12-29 10:46:05 +00:00
uart-bridge: fix incorrect uart_parity_t usage
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
7bac4bd99a
commit
f46d93bb54
|
@ -44,7 +44,7 @@ static uint8_t USB_BUFFER[BUFFER_SIZE];
|
||||||
static uint32_t USB_POS = 0;
|
static uint32_t USB_POS = 0;
|
||||||
static mutex_t USB_MTX;
|
static mutex_t USB_MTX;
|
||||||
|
|
||||||
static inline uart_parity_t databits_usb2uart(uint8_t data_bits)
|
static inline uint databits_usb2uart(uint8_t data_bits)
|
||||||
{
|
{
|
||||||
switch (data_bits) {
|
switch (data_bits) {
|
||||||
case 5:
|
case 5:
|
||||||
|
@ -70,7 +70,7 @@ static inline uart_parity_t parity_usb2uart(uint8_t usb_parity)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uart_parity_t stopbits_usb2uart(uint8_t stop_bits)
|
static inline uint stopbits_usb2uart(uint8_t stop_bits)
|
||||||
{
|
{
|
||||||
switch (stop_bits) {
|
switch (stop_bits) {
|
||||||
case 2:
|
case 2:
|
||||||
|
|
Loading…
Reference in a new issue