Update to new macro.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Aug 2008 14:26:35 +0000 (14:26 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Aug 2008 14:26:35 +0000 (14:26 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1728 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/adc_avr.c

index 942345a7466538e03a7c13a7a4b57896828afb8d..35bbeb6605a6d28833e0310c149465b64810b53a 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "adc_avr.h"
 
+#include <cpu/irq.h> // IRQ_ASSERT_ENABLED()
 #include "cfg/cfg_adc.h"
 #include "cfg/cfg_kern.h"
 #include <cfg/macros.h>
@@ -106,7 +107,7 @@ INLINE uint16_t adc_hw_read(void)
 
        #if CONFIG_KERN
                // Ensure IRQs enabled.
-               ASSERT(IRQ_ENABLED());
+               IRQ_ASSERT_ENABLED();
                adc_process = proc_current();
                sig_wait(SIG_ADC_COMPLETE);
        #else