Skip to content

Commit

Permalink
demo: fix uart hal changes following issue #60
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaulet committed Jul 16, 2023
1 parent e706902 commit 8a29f48
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 27 deletions.
5 changes: 2 additions & 3 deletions demo/adafruit-itsybitsy-m4/adafruit-itsybitsy-m4.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ static int uart_init(/*@partial@*/ struct adafruit_itsybitsy_m4 *ctx)
struct uart_settings UART_settings = {
115200ul,
(size_t)8,
false,
false,
false,
UART_PAR_NONE,
UART_CSTOPB_1BIT
};

(void)uart_atmel_sercom_init(&ctx->UART, ADDR_SERCOM3, CLOCK_SAME5X_SERCOM3_CORE);
Expand Down
5 changes: 2 additions & 3 deletions demo/arduino-due/arduino-due.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,8 @@ static void arduino_due_init_communication(/*@partial@*/ struct arduino_due *ctx
struct uart_settings UART_settings = {
9600ul, /* baudrate */
(size_t)8, /* character size */
false, /* parenb */
false, /* parodd */
false /* cstopb */
UART_PAR_NONE,
UART_CSTOPB_1BIT,
};

(void)uart_sam3x_init(&SERIAL0, ADDR_UART, CLOCK_SAM3X_PMC_PERIPH(PID_UART));
Expand Down
5 changes: 2 additions & 3 deletions demo/arduino-mega2560/arduino-mega2560.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ static void arduino_mega2560_init_communication(/*@partial@*/ struct arduino_meg
struct uart_settings UART_settings = {
9600ul,
(size_t)8,
false, /* N */
false, /* x */
false /* 1 */
UART_PAR_NONE,
UART_CSTOPB_1BIT
};

(void)uart_avr_init(&ctx->SERIAL0, ADDR_USART0, CLOCK_ATMEGA2560_CLKIO);
Expand Down
5 changes: 2 additions & 3 deletions demo/arduino-uno/arduino-uno.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ static void arduino_uno_init_uart(/*@partial@*/ struct arduino_uno *ctx)
struct uart_settings UART_settings = {
9600ul,
(size_t)8,
false, /* N */
false, /* x */
false /* 1 */
UART_PAR_NONE,
UART_CSTOPB_1BIT
};

(void)uart_avr_init(&ctx->SERIAL, ADDR_USART, CLOCK_ATMEGA328P_CLKIO);
Expand Down
5 changes: 2 additions & 3 deletions demo/attiny1607-cnano/attiny1607-cnano.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ static int uart_init(/*@partial@*/ struct attiny1607_cnano *ctx)
const struct uart_settings UART_settings = {
9600ul,
(size_t)8,
false, /* N */
false, /* - */
false, /* 1 */
UART_PAR_NONE,
UART_CSTOPB_1BIT,
};

(void)uart_tinyavr_usart_init(&ctx->UART, ADDR_USART0, CLOCK_TINYAVR_CLK_PER);
Expand Down
5 changes: 2 additions & 3 deletions demo/attiny817-xplained/attiny817-xplained.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ static int uart_init(/*@partial@*/ struct attiny817_xplained *ctx)
const struct uart_settings UART_settings = {
9600ul,
(size_t)8,
false, /* N */
false, /* - */
false, /* 1 */
UART_PAR_NONE,
UART_CSTOPB_1BIT
};

(void)uart_tinyavr_usart_init(&ctx->UART, ADDR_USART0, CLOCK_TINYAVR_CLK_PER);
Expand Down
5 changes: 2 additions & 3 deletions demo/curiosity-2.0-pic32mz-ef/curiosity-2.0-pic32mz-ef.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ static int uart_init(/*@partial@*/ struct curiosity_20_pic32mz_ef *ctx)
const struct uart_settings UART_settings = {
9600ul,
(size_t)8,
false, /* N */
false, /* - */
false, /* 1 */
UART_PAR_NONE,
UART_CSTOPB_1BIT
};

(void)uart_pic32mx_init(&ctx->UART1, ADDR_UART1, CLOCK_PIC32MX_PBCLK2);
Expand Down
5 changes: 2 additions & 3 deletions demo/raspberry-pico/raspberry-pico.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ static void raspberry_pico_init_uart(/*@partial@*/ struct raspberry_pico *ctx)
struct uart_settings UART_settings = {
9600ul, /* baudrate */
(size_t)8, /* character size */
false, /* parenb */
false, /* parodd */
false /* cstopb */
UART_PAR_NONE,
UART_CSTOPB_1BIT
};

(void)rp2040_unreset(&RESET, RP2040_RESET_UART0);
Expand Down
5 changes: 2 additions & 3 deletions demo/sipeed-longan-nano/sipeed-longan-nano.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ static int uart_init(/*@partial@*/ struct sipeed_longan_nano *ctx)
struct uart_settings UART_settings = {
9600ul, /* baudrate */
(size_t)8, /* character size */
false, /* parenb */
false, /* parodd */
false /* cstopb */
UART_PAR_NONE,
UART_CSTOPB_1BIT,
};

(void)uart_gd32vf103_init(&ctx->USART0, ADDR_USART0, CLOCK_GD32VF103_APB2);
Expand Down

0 comments on commit 8a29f48

Please sign in to comment.