changed type of receiver_buffer_size to uint16_t
This commit is contained in:
parent
69460b943b
commit
6e5d70fa19
@ -131,7 +131,7 @@ void uart_reset(void) {
|
||||
void common_hal_busio_uart_construct (busio_uart_obj_t *self,
|
||||
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
|
||||
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
|
||||
uint8_t receiver_buffer_size) {
|
||||
uint16_t receiver_buffer_size) {
|
||||
// Find a free UART peripheral.
|
||||
self->uarte = NULL;
|
||||
for (size_t i = 0 ; i < MP_ARRAY_SIZE(nrfx_uartes); i++) {
|
||||
|
@ -42,7 +42,7 @@ typedef enum {
|
||||
extern void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
||||
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
|
||||
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
|
||||
uint8_t receiver_buffer_size);
|
||||
uint16_t receiver_buffer_size);
|
||||
|
||||
extern void common_hal_busio_uart_deinit(busio_uart_obj_t *self);
|
||||
extern bool common_hal_busio_uart_deinited(busio_uart_obj_t *self);
|
||||
|
Loading…
x
Reference in New Issue
Block a user