diff options
| author | hathach <[email protected]> | 2014-03-19 18:12:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-19 18:12:51 +0700 |
| commit | ce85e4d98f4916fe64f5d266dd0941e7e066e5bc (patch) | |
| tree | 877e419afe43bd576997d54ebd75f42f71db0838 /boards | |
| parent | eb5dd58b51220fa394cf92ba9a23b2b7aa50b20f (diff) | |
#define SVCall_Handler SVC_Handler in lpcxpresso startup for lpc175x_6x & lpc11uxx for better compatiable with other lib & toolchain.
added lpc176x xpresso with cmsis rtx
Diffstat (limited to 'boards')
| -rw-r--r-- | boards/embedded_artists/ea4357/board_ea4357.h | 2 | ||||
| -rw-r--r-- | boards/embedded_artists/oem_base_board/acc.c | 3 | ||||
| -rw-r--r-- | boards/embedded_artists/oem_base_board/base_eeprom.c | 5 | ||||
| -rw-r--r-- | boards/embedded_artists/oem_base_board/lm75a.c | 4 | ||||
| -rw-r--r-- | boards/embedded_artists/oem_base_board/memreg.c | 4 | ||||
| -rw-r--r-- | boards/embedded_artists/oem_base_board/norflash.c | 4 | ||||
| -rw-r--r-- | boards/embedded_artists/oem_base_board/uda1380.c | 5 |
7 files changed, 25 insertions, 2 deletions
diff --git a/boards/embedded_artists/ea4357/board_ea4357.h b/boards/embedded_artists/ea4357/board_ea4357.h index a4bfe9fa5..3c0de9a4e 100644 --- a/boards/embedded_artists/ea4357/board_ea4357.h +++ b/boards/embedded_artists/ea4357/board_ea4357.h @@ -63,7 +63,7 @@ //#define CFG_PRINTF_TARGET PRINTF_TARGET_SWO
-#define CFG_PRINTF_TARGET PRINTF_TARGET_UART // FIXME keil's cmsis rtx does not work with UART (work with SWO)
+#define CFG_PRINTF_TARGET PRINTF_TARGET_UART
#ifdef __cplusplus
}
diff --git a/boards/embedded_artists/oem_base_board/acc.c b/boards/embedded_artists/oem_base_board/acc.c index bd6a82042..a53634980 100644 --- a/boards/embedded_artists/oem_base_board/acc.c +++ b/boards/embedded_artists/oem_base_board/acc.c @@ -21,7 +21,9 @@ /****************************************************************************** * Includes *****************************************************************************/ +#include "../../board.h" +#if BOARD == BOARD_EA4357 #include "lpc_types.h" #include "lpc43xx_i2c.h" @@ -249,3 +251,4 @@ void acc_setMode(acc_mode_t mode) setModeControl(mctl); } +#endif diff --git a/boards/embedded_artists/oem_base_board/base_eeprom.c b/boards/embedded_artists/oem_base_board/base_eeprom.c index a11070d70..7571744a6 100644 --- a/boards/embedded_artists/oem_base_board/base_eeprom.c +++ b/boards/embedded_artists/oem_base_board/base_eeprom.c @@ -24,6 +24,9 @@ /****************************************************************************** * Includes *****************************************************************************/ +#include "../../board.h" + +#if BOARD == BOARD_EA4357 #include <string.h> #include <stdio.h> @@ -193,3 +196,5 @@ int16_t base_eeprom_write(uint8_t* buf, uint16_t offset, uint16_t len) return written; } + +#endif diff --git a/boards/embedded_artists/oem_base_board/lm75a.c b/boards/embedded_artists/oem_base_board/lm75a.c index 5c8b90171..db8234405 100644 --- a/boards/embedded_artists/oem_base_board/lm75a.c +++ b/boards/embedded_artists/oem_base_board/lm75a.c @@ -24,6 +24,9 @@ /****************************************************************************** * Includes *****************************************************************************/ +#include "../../board.h" + +#if BOARD == BOARD_EA4357 #include <string.h> #include <stdio.h> @@ -126,3 +129,4 @@ int32_t lm75a_readTemp(void) } +#endif diff --git a/boards/embedded_artists/oem_base_board/memreg.c b/boards/embedded_artists/oem_base_board/memreg.c index ef4338bc3..3704f9bb8 100644 --- a/boards/embedded_artists/oem_base_board/memreg.c +++ b/boards/embedded_artists/oem_base_board/memreg.c @@ -21,6 +21,9 @@ /****************************************************************************** * Includes *****************************************************************************/ +#include "../../board.h" + +#if BOARD == BOARD_EA4357 #include "lpc43xx.h" #include "lpc_types.h" @@ -167,4 +170,5 @@ uint32_t memreg_init (void) return FALSE; } +#endif diff --git a/boards/embedded_artists/oem_base_board/norflash.c b/boards/embedded_artists/oem_base_board/norflash.c index 20f1dd8bb..0baf62c49 100644 --- a/boards/embedded_artists/oem_base_board/norflash.c +++ b/boards/embedded_artists/oem_base_board/norflash.c @@ -21,6 +21,9 @@ /****************************************************************************** * Includes *****************************************************************************/ +#include "../../board.h" + +#if BOARD == BOARD_EA4357 #include "lpc_types.h" #include "lpc43xx_scu.h" @@ -541,3 +544,4 @@ uint32_t norflash_secid_writeWord(uint16_t target, uint16_t* data, uint16_t len) return TRUE; } +#endif diff --git a/boards/embedded_artists/oem_base_board/uda1380.c b/boards/embedded_artists/oem_base_board/uda1380.c index 3528ac6e0..654e4eb9a 100644 --- a/boards/embedded_artists/oem_base_board/uda1380.c +++ b/boards/embedded_artists/oem_base_board/uda1380.c @@ -1,3 +1,6 @@ +#include "../../board.h" + +#if BOARD == BOARD_EA4357 #include "lpc43xx_i2c.h" #include "lpc43xx_scu.h" @@ -152,5 +155,5 @@ int32_t Uda1380_ReadData(uint8_t reg, uint16_t *data) return UDA1380_FUNC_ERR; } - +#endif |
