Explicit dependancy between CONFIG_KERN_PREEMPT and CONFIG_KERN.
[bertos.git] / bertos / drv / dc_motor.c
index 13d8b769aaca72a9def91ff69382eb3c849298e7..75a05f3445d34aaf0b3fc02959b54332619aa83d 100644 (file)
@@ -82,7 +82,7 @@
 #define DC_MOTOR_SET_STATUS_DIR(status, dir) \
                (dir == POS_DIR ? DC_MOTOR_POS_DIR(status) : DC_MOTOR_NEG_DIR(status))
 
-#if CONFIG_KERN_PREEMPT
+#if (CONFIG_KERN && CONFIG_KERN_PREEMPT)
        #if CONFIG_DC_MOTOR_USE_SEM
                #include <kern/sem.h>