From 2301600f11ddb360f2f5e16d0ffbe440c24e6089 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Sat, 26 Mar 2011 12:39:44 +0000 Subject: [PATCH] Make missing definitions for essential macros more obvious --- flight/PiOS/Boards/pios_board.h | 2 ++ flight/PiOS/inc/pios_led.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flight/PiOS/Boards/pios_board.h b/flight/PiOS/Boards/pios_board.h index 3a6e4999c..b352a7827 100644 --- a/flight/PiOS/Boards/pios_board.h +++ b/flight/PiOS/Boards/pios_board.h @@ -11,6 +11,8 @@ #include "STM32103CB_CC_Rev1.h" #elif USE_STM3210E_INS #include "STM3210E_INS.h" +#else +#error Board definition has not been provided. #endif #endif /* PIOS_BOARD_H_ */ diff --git a/flight/PiOS/inc/pios_led.h b/flight/PiOS/inc/pios_led.h index 9b3f3ee20..c18ea3524 100644 --- a/flight/PiOS/inc/pios_led.h +++ b/flight/PiOS/inc/pios_led.h @@ -31,7 +31,6 @@ #define PIOS_LED_H /* Type Definitions */ - #if (PIOS_LED_NUM == 1) typedef enum { LED1 = 0 } LedTypeDef; #elif (PIOS_LED_NUM == 2) @@ -40,6 +39,8 @@ typedef enum { LED1 = 0, LED2 = 1 } LedTypeDef; typedef enum { LED1 = 0, LED2 = 1, LED3 = 2 } LedTypeDef; #elif (PIOS_LED_NUM == 4) typedef enum { LED1 = 0, LED2 = 1, LED3 = 2, LED4 = 3 } LedTypeDef; +#else +#error PIOS_LED_NUM not defined #endif /* Public Functions */