From cf12c99e13194cb4e24cd60167a2275b98713b44 Mon Sep 17 00:00:00 2001 From: batt Date: Thu, 28 Aug 2008 15:36:11 +0000 Subject: [PATCH] Use new macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1745 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/drv/adc_at91.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.25.1