@@ -45,7 +45,7 @@ void rtc_get_time(timeutils_struct_time_t *time);
45
45
// Convert a time expressed in seconds since the Epoch into an 8-tuple which
46
46
// contains: (year, month, mday, hour, minute, second, weekday, yearday)
47
47
// If secs is not provided or None, then the current time from is used.
48
- STATIC mp_obj_t time_localtime (size_t n_args , const mp_obj_t * args ) {
48
+ static mp_obj_t time_localtime (size_t n_args , const mp_obj_t * args ) {
49
49
if (n_args == 0 || args [0 ] == mp_const_none ) {
50
50
// Get current date and time.
51
51
timeutils_struct_time_t t ;
@@ -85,7 +85,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(time_localtime_obj, 0, 1, time_localtime);
85
85
// This is inverse function of localtime. It's argument is a full 8-tuple
86
86
// which expresses a time as per localtime. It returns an integer which is
87
87
// the number of seconds since the Epoch.
88
- STATIC mp_obj_t time_mktime (mp_obj_t tuple ) {
88
+ static mp_obj_t time_mktime (mp_obj_t tuple ) {
89
89
size_t len ;
90
90
mp_obj_t * elem ;
91
91
mp_obj_get_array (tuple , & len , & elem );
@@ -104,17 +104,17 @@ MP_DEFINE_CONST_FUN_OBJ_1(time_mktime_obj, time_mktime);
104
104
#if MICROPY_PY_MACHINE_RTC
105
105
// time()
106
106
// Return the number of seconds since the Epoch.
107
- STATIC mp_obj_t time_time (void ) {
107
+ static mp_obj_t time_time (void ) {
108
108
// datetime_t t;
109
109
timeutils_struct_time_t t ;
110
110
rtc_get_time (& t );
111
111
return mp_obj_new_int_from_ull (timeutils_seconds_since_epoch (t .tm_year , t .tm_mon , t .tm_mday , t .tm_hour , t .tm_min , t .tm_sec ));
112
112
}
113
113
114
- STATIC MP_DEFINE_CONST_FUN_OBJ_0 (time_time_obj , time_time );
114
+ static MP_DEFINE_CONST_FUN_OBJ_0 (time_time_obj , time_time ) ;
115
115
#endif
116
116
117
- STATIC const mp_rom_map_elem_t time_module_globals_table [] = {
117
+ static const mp_rom_map_elem_t time_module_globals_table [] = {
118
118
{ MP_ROM_QSTR (MP_QSTR___name__ ), MP_ROM_QSTR (MP_QSTR_utime ) },
119
119
120
120
#if MICROPY_PY_MACHINE_RTC
@@ -136,7 +136,7 @@ STATIC const mp_rom_map_elem_t time_module_globals_table[] = {
136
136
{ MP_ROM_QSTR (MP_QSTR_ticks_diff ), MP_ROM_PTR (& mp_utime_ticks_diff_obj ) },
137
137
};
138
138
139
- STATIC MP_DEFINE_CONST_DICT (time_module_globals , time_module_globals_table );
139
+ static MP_DEFINE_CONST_DICT (time_module_globals , time_module_globals_table ) ;
140
140
141
141
const mp_obj_module_t mp_module_utime = {
142
142
.base = { & mp_type_module },
0 commit comments