altos/stmf0: Change tests for AO_BOOT_CHAIN and AO_BOOT_PIN to #if
[fw/altos] / src / stmf0 / ao_interrupt.c
index 794124834b13c7e74777f33f5aa47c5df8396f35..0d6f61131c0532d87e4daac9a9dafd8a895d2320 100644 (file)
 #define IS_FLASH_LOADER        0
 #endif
 
+#ifndef RELOCATE_INTERRUPT
 #if !IS_FLASH_LOADER
 #define RELOCATE_INTERRUPT     1
 #endif
+#endif
 
 extern void main(void);
 extern char __stack__;
@@ -67,9 +69,9 @@ stm_flash_size(void) {
 
 void start(void)
 {
-#ifdef AO_BOOT_CHAIN
+#if AO_BOOT_CHAIN
        if (ao_boot_check_chain()) {
-#ifdef AO_BOOT_PIN
+#if AO_BOOT_PIN
                ao_boot_check_pin();
 #endif
        }