@@ -845,7 +845,7 @@ STATIC mp_obj_t wlan_make_new(const mp_obj_type_t *type, size_t n_args, size_t n
845845 return (mp_obj_t )self ;
846846}
847847
848- STATIC mp_obj_t wlan_init (mp_uint_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
848+ STATIC mp_obj_t wlan_init (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
849849 // parse args
850850 mp_arg_val_t args [MP_ARRAY_SIZE (wlan_init_args ) - 1 ];
851851 mp_arg_parse_all (n_args - 1 , pos_args + 1 , kw_args , MP_ARRAY_SIZE (args ), & wlan_init_args [1 ], args );
@@ -904,7 +904,7 @@ STATIC mp_obj_t wlan_scan(mp_obj_t self_in) {
904904}
905905STATIC MP_DEFINE_CONST_FUN_OBJ_1 (wlan_scan_obj , wlan_scan );
906906
907- STATIC mp_obj_t wlan_connect (mp_uint_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
907+ STATIC mp_obj_t wlan_connect (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
908908 STATIC const mp_arg_t allowed_args [] = {
909909 { MP_QSTR_ssid , MP_ARG_REQUIRED | MP_ARG_OBJ , },
910910 { MP_QSTR_auth , MP_ARG_OBJ , {.u_obj = mp_const_none } },
@@ -981,7 +981,7 @@ STATIC mp_obj_t wlan_isconnected(mp_obj_t self_in) {
981981}
982982STATIC MP_DEFINE_CONST_FUN_OBJ_1 (wlan_isconnected_obj , wlan_isconnected );
983983
984- STATIC mp_obj_t wlan_ifconfig ( mp_uint_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
984+ STATIC mp_obj_t wlan_ifconfig ( size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
985985 STATIC const mp_arg_t wlan_ifconfig_args [] = {
986986 { MP_QSTR_id , MP_ARG_INT , {.u_int = 0 } },
987987 { MP_QSTR_config , MP_ARG_OBJ , {.u_obj = MP_OBJ_NULL } },
@@ -1058,7 +1058,7 @@ STATIC mp_obj_t wlan_ifconfig (mp_uint_t n_args, const mp_obj_t *pos_args, mp_ma
10581058}
10591059STATIC MP_DEFINE_CONST_FUN_OBJ_KW (wlan_ifconfig_obj , 1 , wlan_ifconfig );
10601060
1061- STATIC mp_obj_t wlan_mode ( mp_uint_t n_args , const mp_obj_t * args ) {
1061+ STATIC mp_obj_t wlan_mode ( size_t n_args , const mp_obj_t * args ) {
10621062 wlan_obj_t * self = args [0 ];
10631063 if (n_args == 1 ) {
10641064 return mp_obj_new_int (self -> mode );
@@ -1072,7 +1072,7 @@ STATIC mp_obj_t wlan_mode (mp_uint_t n_args, const mp_obj_t *args) {
10721072}
10731073STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (wlan_mode_obj , 1 , 2 , wlan_mode );
10741074
1075- STATIC mp_obj_t wlan_ssid ( mp_uint_t n_args , const mp_obj_t * args ) {
1075+ STATIC mp_obj_t wlan_ssid ( size_t n_args , const mp_obj_t * args ) {
10761076 wlan_obj_t * self = args [0 ];
10771077 if (n_args == 1 ) {
10781078 return mp_obj_new_str ((const char * )self -> ssid , strlen ((const char * )self -> ssid ), false);
@@ -1087,7 +1087,7 @@ STATIC mp_obj_t wlan_ssid (mp_uint_t n_args, const mp_obj_t *args) {
10871087}
10881088STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (wlan_ssid_obj , 1 , 2 , wlan_ssid );
10891089
1090- STATIC mp_obj_t wlan_auth ( mp_uint_t n_args , const mp_obj_t * args ) {
1090+ STATIC mp_obj_t wlan_auth ( size_t n_args , const mp_obj_t * args ) {
10911091 wlan_obj_t * self = args [0 ];
10921092 if (n_args == 1 ) {
10931093 if (self -> auth == SL_SEC_TYPE_OPEN ) {
@@ -1117,7 +1117,7 @@ STATIC mp_obj_t wlan_auth (mp_uint_t n_args, const mp_obj_t *args) {
11171117}
11181118STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (wlan_auth_obj , 1 , 2 , wlan_auth );
11191119
1120- STATIC mp_obj_t wlan_channel ( mp_uint_t n_args , const mp_obj_t * args ) {
1120+ STATIC mp_obj_t wlan_channel ( size_t n_args , const mp_obj_t * args ) {
11211121 wlan_obj_t * self = args [0 ];
11221122 if (n_args == 1 ) {
11231123 return mp_obj_new_int (self -> channel );
@@ -1131,7 +1131,7 @@ STATIC mp_obj_t wlan_channel (mp_uint_t n_args, const mp_obj_t *args) {
11311131}
11321132STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (wlan_channel_obj , 1 , 2 , wlan_channel );
11331133
1134- STATIC mp_obj_t wlan_antenna ( mp_uint_t n_args , const mp_obj_t * args ) {
1134+ STATIC mp_obj_t wlan_antenna ( size_t n_args , const mp_obj_t * args ) {
11351135 wlan_obj_t * self = args [0 ];
11361136 if (n_args == 1 ) {
11371137 return mp_obj_new_int (self -> antenna );
@@ -1146,7 +1146,7 @@ STATIC mp_obj_t wlan_antenna (mp_uint_t n_args, const mp_obj_t *args) {
11461146}
11471147STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (wlan_antenna_obj , 1 , 2 , wlan_antenna );
11481148
1149- STATIC mp_obj_t wlan_mac ( mp_uint_t n_args , const mp_obj_t * args ) {
1149+ STATIC mp_obj_t wlan_mac ( size_t n_args , const mp_obj_t * args ) {
11501150 wlan_obj_t * self = args [0 ];
11511151 if (n_args == 1 ) {
11521152 return mp_obj_new_bytes ((const byte * )self -> mac , SL_BSSID_LENGTH );
@@ -1164,7 +1164,7 @@ STATIC mp_obj_t wlan_mac (mp_uint_t n_args, const mp_obj_t *args) {
11641164}
11651165STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (wlan_mac_obj , 1 , 2 , wlan_mac );
11661166
1167- STATIC mp_obj_t wlan_irq ( mp_uint_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
1167+ STATIC mp_obj_t wlan_irq ( size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
11681168 mp_arg_val_t args [mp_irq_INIT_NUM_ARGS ];
11691169 mp_arg_parse_all (n_args - 1 , pos_args + 1 , kw_args , mp_irq_INIT_NUM_ARGS , mp_irq_init_args , args );
11701170
0 commit comments