From: batt Date: Thu, 28 Aug 2008 15:36:11 +0000 (+0000) Subject: Use new macro. X-Git-Tag: 2.0.0~189 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cf12c99e13194cb4e24cd60167a2275b98713b44;p=bertos.git Use new macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1745 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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