mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/sam0/periph: remove bitfield usage in gpio_ll_irq driver
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
1e7167d9bf
commit
b2bbc4c6f1
@ -121,10 +121,10 @@ static void disable_trigger(unsigned exti_num)
|
||||
static void eic_sync(void)
|
||||
{
|
||||
#ifdef EIC_STATUS_SYNCBUSY
|
||||
while (EIC_SEC->STATUS.bit.SYNCBUSY) { }
|
||||
while (EIC_SEC->STATUS.reg & EIC_STATUS_SYNCBUSY) {}
|
||||
#endif
|
||||
#ifdef EIC_SYNCBUSY_ENABLE
|
||||
while (EIC_SEC->SYNCBUSY.bit.ENABLE) { }
|
||||
while (EIC_SEC->SYNCBUSY.reg & EIC_SYNCBUSY_ENABLE) {}
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -136,7 +136,7 @@ static void eic_enable_clock(void)
|
||||
GCLK->CLKCTRL.reg = EIC_GCLK_ID
|
||||
| GCLK_CLKCTRL_CLKEN
|
||||
| GCLK_CLKCTRL_GEN(CONFIG_SAM0_GCLK_GPIO);
|
||||
while (GCLK->STATUS.bit.SYNCBUSY) {}
|
||||
while (GCLK->STATUS.reg & GCLK_STATUS_SYNCBUSY) {}
|
||||
#endif
|
||||
#ifdef MCLK_APBAMASK_EIC
|
||||
MCLK->APBAMASK.reg |= MCLK_APBAMASK_EIC;
|
||||
|
Loading…
Reference in New Issue
Block a user