@@ -290,7 +290,7 @@ STATIC const mp_arg_t pyb_uart_init_args[] = {
290290 { MP_QSTR_stop , MP_ARG_KW_ONLY | MP_ARG_INT , {.u_int = 1 } },
291291 { MP_QSTR_parity , MP_ARG_KW_ONLY | MP_ARG_OBJ , {.u_obj = mp_const_none } },
292292};
293- #define PYB_UART_INIT_NUM_ARGS ARRAY_SIZE (pyb_uart_init_args)
293+ #define PYB_UART_INIT_NUM_ARGS MP_ARRAY_SIZE (pyb_uart_init_args)
294294
295295STATIC mp_obj_t pyb_uart_init_helper (pyb_uart_obj_t * self , uint n_args , const mp_obj_t * args , mp_map_t * kw_args ) {
296296 // parse args
@@ -419,7 +419,7 @@ STATIC const mp_arg_t pyb_uart_send_args[] = {
419419 { MP_QSTR_send , MP_ARG_REQUIRED | MP_ARG_OBJ , {.u_obj = MP_OBJ_NULL } },
420420 { MP_QSTR_timeout , MP_ARG_KW_ONLY | MP_ARG_INT , {.u_int = 5000 } },
421421};
422- #define PYB_UART_SEND_NUM_ARGS ARRAY_SIZE (pyb_uart_send_args)
422+ #define PYB_UART_SEND_NUM_ARGS MP_ARRAY_SIZE (pyb_uart_send_args)
423423
424424STATIC mp_obj_t pyb_uart_send (uint n_args , const mp_obj_t * args , mp_map_t * kw_args ) {
425425 // TODO assumes transmission size is 8-bits wide
@@ -465,7 +465,7 @@ STATIC const mp_arg_t pyb_uart_recv_args[] = {
465465 { MP_QSTR_recv , MP_ARG_REQUIRED | MP_ARG_OBJ , {.u_obj = MP_OBJ_NULL } },
466466 { MP_QSTR_timeout , MP_ARG_KW_ONLY | MP_ARG_INT , {.u_int = 5000 } },
467467};
468- #define PYB_UART_RECV_NUM_ARGS ARRAY_SIZE (pyb_uart_recv_args)
468+ #define PYB_UART_RECV_NUM_ARGS MP_ARRAY_SIZE (pyb_uart_recv_args)
469469
470470STATIC mp_obj_t pyb_uart_recv (uint n_args , const mp_obj_t * args , mp_map_t * kw_args ) {
471471 // TODO assumes transmission size is 8-bits wide
0 commit comments