X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Fadc_at91.c;h=46ba341370ceb03e1bd4f2e9acbb4b406ee5d4ae;hb=74787ad8b91866fea9188acfc63b4aa47140ac32;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..46ba3413 100644 --- a/bertos/cpu/arm/drv/adc_at91.c +++ b/bertos/cpu/arm/drv/adc_at91.c @@ -47,8 +47,11 @@ #include "adc_at91.h" +#include + #include "cfg/cfg_adc.h" -#include "cfg/cfg_kern.h" +#include "cfg/cfg_proc.h" +#include "cfg/cfg_signal.h" #include #include @@ -138,7 +141,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