mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
lib/utils/mpirq: Add mp_irq_init func, and clean up unused init method.
mp_irq_init() is useful when the IRQ object is allocated by the caller. The mp_irq_methods_t.init method is not used anywhere so has been removed. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -139,7 +139,6 @@ STATIC mp_uint_t pyb_uart_irq_info(mp_obj_t self_in, mp_uint_t info_type) {
|
||||
}
|
||||
|
||||
STATIC const mp_irq_methods_t pyb_uart_irq_methods = {
|
||||
.init = pyb_uart_irq,
|
||||
.trigger = pyb_uart_irq_trigger,
|
||||
.info = pyb_uart_irq_info,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user