Disable preemptive kernel (not working).
[bertos.git] / bertos / cpu / avr / drv / adc_avr.c
index 942345a7466538e03a7c13a7a4b57896828afb8d..bf5a5600d7e41fb303d4b35aee64b0392e87565a 100644 (file)
  *
  * \version $Id$
  * \author Francesco Sacchi <batt@develer.com>
+ *
+ * This module is automatically included so no need to include 
+ * in test list.
+ * notest: avr
  */
 
 #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 +111,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