change building process yes, again
This commit is contained in:
@@ -57,17 +57,22 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define TICKS_PER_SECOND 1000
|
||||
|
||||
/// n-th Bit
|
||||
#ifndef BIT
|
||||
#define BIT(n) (1 << (n))
|
||||
#endif
|
||||
|
||||
#define BOARD_NGX43XX 1
|
||||
#define BOARD_LPCXPRESSOUXX 2
|
||||
#define BOARD_LPCXPRESSO1347 2
|
||||
#define BOARD_AT86RF2XX 3
|
||||
|
||||
#if BOARD == BOARD_NGX43XX
|
||||
//#include "board_ngx4330.h"
|
||||
#elif BOARD == BOARD_LPCXPRESSO13UXX
|
||||
|
||||
#elif BOARD == BOARD_LPCXPRESSO1347
|
||||
|
||||
#elif BOARD == BOARD_AT86RF2XX
|
||||
|
||||
#else
|
||||
#error BOARD is not defined or supported yet
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* board_at86rf2xx_11uxx.c
|
||||
* board_at86rf2xx.c
|
||||
*
|
||||
* Created on: Dec 7, 2012
|
||||
* Author: hathach
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#include "board.h"
|
||||
|
||||
#if BOARD == BOARD_AT86RF2XX_11UXX
|
||||
#if BOARD == BOARD_AT86RF2XX
|
||||
|
||||
#include "LPC11Uxx.h"
|
||||
#include "gpio.h"
|
||||
@@ -37,9 +37,10 @@
|
||||
|
||||
#include "board.h"
|
||||
|
||||
#if BOARD == BOARD_LPCXPRESSO13UXX
|
||||
#if BOARD == BOARD_LPCXPRESSO1347
|
||||
|
||||
#include "LPC13Uxx.h"
|
||||
#include "gpio.h"
|
||||
|
||||
#define CFG_LED_PORT (0)
|
||||
#define CFG_LED_PIN (7)
|
||||
@@ -49,7 +50,7 @@
|
||||
void board_init(void)
|
||||
{
|
||||
SystemInit();
|
||||
systickInit(1);
|
||||
SysTick_Config(SystemCoreClock / TICKS_PER_SECOND); // 1 msec tick timer
|
||||
GPIOInit();
|
||||
GPIOSetDir(CFG_LED_PORT, CFG_LED_PIN, 1);
|
||||
LPC_GPIO->CLR[CFG_LED_PORT] = (1 << CFG_LED_PIN);
|
||||
@@ -58,7 +59,7 @@ void board_init(void)
|
||||
void board_leds(uint32_t mask, uint32_t state)
|
||||
{
|
||||
if (mask)
|
||||
GPIOSetBitValue(CFG_LED_PORT, CFG_LED_PIN, state);
|
||||
GPIOSetBitValue(CFG_LED_PORT, CFG_LED_PIN, mask & state);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,5 +1,3 @@
|
||||
#ifdef __LPC11UXX__
|
||||
|
||||
//*****************************************************************************
|
||||
// +--+
|
||||
// | ++----+
|
||||
@@ -47,8 +45,6 @@ extern "C" {
|
||||
#define WEAK __attribute__ ((weak))
|
||||
#define ALIAS(f) __attribute__ ((weak, alias (#f)))
|
||||
|
||||
#define __USE_CMSIS // Added by nxpUSBlib
|
||||
|
||||
// Code Red - if CMSIS is being used, then SystemInit() routine
|
||||
// will be called by startup code rather than in application's main()
|
||||
#if defined (__USE_CMSIS)
|
||||
@@ -383,4 +379,3 @@ void IntDefaultHandler(void)
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* __LPC11UXX__ */
|
||||
|
||||
Reference in New Issue
Block a user