X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcpu%2Farm%2Fdrv%2Fadc_at91.c;h=b98e129025ea699195f501be839f617548f68856;hb=1200cce6f786accd1e56bfe1982b3c58d297aee7;hp=b385184ea7c4a3fd9a442143ce9d726155698b36;hpb=92d5e5f668bb596036e7c4fe674b29448f7ac65d;p=bertos.git diff --git a/bertos/cpu/arm/drv/adc_at91.c b/bertos/cpu/arm/drv/adc_at91.c index b385184e..b98e1290 100644 --- a/bertos/cpu/arm/drv/adc_at91.c +++ b/bertos/cpu/arm/drv/adc_at91.c @@ -47,6 +47,8 @@ #include "adc_at91.h" +#include + #include "cfg/cfg_adc.h" #include "cfg/cfg_kern.h" #include @@ -138,7 +140,7 @@ INLINE uint16_t adc_hw_read(void) #if CONFIG_KERN // Ensure IRQs enabled. - ASSERT(IRQ_ENABLED()); + IRQ_ASSERT_ENABLED(); sig_wait(SIG_ADC_COMPLETE); #else //Wait in polling until is done