New BOARD value option BOARD_NONE (equivelent to not specifying BOARD) which will remove all board hardware drivers which do not adversely affect the code operation (currently only the LEDs driver).
Spell-check code/comments in the Webserver/AVRISP-MKII projects.
This commit is contained in:
parent
f4f44f9fc1
commit
15f84bb8f5
87 changed files with 123 additions and 103 deletions
|
@ -76,8 +76,14 @@
|
|||
/* Includes: */
|
||||
#include "../../Common/Common.h"
|
||||
|
||||
#if !defined(BOARD)
|
||||
#error BOARD must be set in makefile to a value specified in BoardTypes.h.
|
||||
#if (BOARD == BOARD_NONE)
|
||||
static inline void LEDs_Init(void) {};
|
||||
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) {};
|
||||
static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask) {};
|
||||
static inline void LEDs_SetAllLEDs(const uint8_t LEDMask) {};
|
||||
static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) {};
|
||||
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) {};
|
||||
static inline uint8_t LEDs_GetLEDs(void) { return 0; }
|
||||
#elif (BOARD == BOARD_USBKEY)
|
||||
#include "USBKEY/LEDs.h"
|
||||
#elif (BOARD == BOARD_STK525)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue