8000 Merge pull request #1984 from iot49/uart · adafruit/circuitpython@380f1d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 380f1d6

Browse files
authored
Merge pull request #1984 from iot49/uart
changed type of receiver_buffer_size to uint16_t
2 parents 69460b9 + 4c72a39 commit 380f1d6

File tree

4 files changed

+4
-4
lines changed
  • ports
  • shared-bindings/busio

4 files changed

+4
-4
lines changed

ports/atmel-samd/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void usart_async_rxc_callback(const struct usart_async_descriptor *const
5555
void common_hal_busio_uart_construct(busio_uart_obj_t *self,
5656
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
5757
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
58-
uint8_t receiver_buffer_size) {
58+
uint16_t receiver_buffer_size) {
5959
Sercom* sercom = NULL;
6060
uint8_t sercom_index = 255; // Unset index
6161
uint32_t rx_pinmux = 0;

ports/esp8266/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern UartDevice UartDev;
4040
void common_hal_busio_uart_construct(busio_uart_obj_t *self,
4141
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
4242
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
43-
uint8_t receiver_buffer_size) {
43+
uint16_t receiver_buffer_size) {
4444
if (rx != mp_const_none || tx != &pin_GPIO2) {
4545
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, translate("Only tx supported on UART1 (GPIO2).")));
4646
}

ports/nrf/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void uart_reset(void) {
131131
void common_hal_busio_uart_construct (busio_uart_obj_t *self,
132132
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
133133
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
134-
uint8_t receiver_buffer_size) {
134+
uint16_t receiver_buffer_size) {
135135
// Find a free UART peripheral.
136136
self->uarte = NULL;
137137
for (size_t i = 0 ; i < MP_ARRAY_SIZE(nrfx_uartes); i++) {

shared-bindings/busio/UART.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ typedef enum {
4242
extern void common_hal_busio_uart_construct(busio_uart_obj_t *self,
4343
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
4444
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
45-
uint8_t receiver_buffer_size);
45+
uint16_t receiver_buffer_size);
4646

4747
extern void common_hal_busio_uart_deinit(busio_uart_obj_t *self);
4848
extern bool common_hal_busio_uart_deinited(busio_uart_obj_t *self);

0 commit comments

Comments
 (0)
0