stm32: Use MP_REGISTER_ROOT_POINTER().

This uses MP_REGISTER_ROOT_POINTER() to register all port-specific root
pointers in the stm32 port.

Signed-off-by: David Lechner <david@pybricks.com>
This commit is contained in:
David Lechner
2022-07-01 14:48:59 -05:00
committed by Damien George
parent ffa22b8f97
commit 816e4537f2
11 changed files with 24 additions and 29 deletions

View File

@@ -1684,3 +1684,5 @@ void timer_irq_handler(uint tim_id) {
}
}
}
MP_REGISTER_ROOT_POINTER(struct _pyb_timer_obj_t *pyb_timer_obj_all[MICROPY_HW_MAX_TIMER]);