esp8266/modutime: Actually implement ticks_cpu().
This commit is contained in:
parent
f71f37e426
commit
541e76fa45
@ -134,8 +134,7 @@ STATIC mp_obj_t time_ticks_us(void) {
|
|||||||
STATIC MP_DEFINE_CONST_FUN_OBJ_0(time_ticks_us_obj, time_ticks_us);
|
STATIC MP_DEFINE_CONST_FUN_OBJ_0(time_ticks_us_obj, time_ticks_us);
|
||||||
|
|
||||||
STATIC mp_obj_t time_ticks_cpu(void) {
|
STATIC mp_obj_t time_ticks_cpu(void) {
|
||||||
// TODO
|
return MP_OBJ_NEW_SMALL_INT(mp_hal_ticks_cpu() & MP_SMALL_INT_POSITIVE_MASK);
|
||||||
return MP_OBJ_NEW_SMALL_INT(0 & MP_SMALL_INT_POSITIVE_MASK);
|
|
||||||
}
|
}
|
||||||
STATIC MP_DEFINE_CONST_FUN_OBJ_0(time_ticks_cpu_obj, time_ticks_cpu);
|
STATIC MP_DEFINE_CONST_FUN_OBJ_0(time_ticks_cpu_obj, time_ticks_cpu);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user