finalize building process. Now I can focus on developing the stack (finally)

This commit is contained in:
hathach
2012-12-07 18:08:27 +07:00
parent 70e3a13951
commit b52b3b1cef
3 changed files with 4 additions and 177 deletions

View File

@@ -53,14 +53,14 @@ void board_init(void)
SysTick_Config(SystemCoreClock / TICKS_PER_SECOND); // 1 msec tick timer
GPIOInit();
// GPIOSetDir(CFG_LED_PORT, CFG_LED_PIN, 1);
GPIOSetDir(CFG_LED_PORT, CFG_LED_PIN, 1);
board_leds(0x01, 0); // turn off the led first
}
void board_leds(uint32_t mask, uint32_t state)
{
// if (mask)
// GPIOSetBitValue(CFG_LED_PORT, CFG_LED_PIN, mask & state ? CFG_LED_ON : CFG_LED_OFF);
if (mask)
GPIOSetBitValue(CFG_LED_PORT, CFG_LED_PIN, mask & state ? CFG_LED_ON : CFG_LED_OFF);
}
#endif

View File

@@ -1,5 +1,5 @@
/*
* board_ngx4330_explorer.c
* board_ngx4330.c
*
* Created on: Dec 4, 2012
* Author: hathach