nrf5/modules/machine: Update rtc init to set default IRQ priority before initializing RTC instance.

This commit is contained in:
Glenn Ruben Bakke 2017-06-02 18:35:04 +02:00
parent 147e579e28
commit 5cfd6d166c

View File

@ -119,6 +119,12 @@ STATIC mp_obj_t machine_rtc_make_new(const mp_obj_type_t *type, size_t n_args, s
self->callback = args[3].u_obj;
}
#ifdef NRF51
self->p_config.irq_priority = 3;
#else
self->p_config.irq_priority = 6;
#endif
hal_rtc_init(self->p_config);
return MP_OBJ_FROM_PTR(self);