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:
Damien George
2020-09-04 12:40:38 +10:00
parent 5e69926ea0
commit 3ff7079277
4 changed files with 13 additions and 15 deletions

View File

@@ -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,
};