6 extern uint32_t msTicks; /* counts 1ms timeTicks */
8 /*------------------------------------------------------------------------------
9 delays number of tick Systicks (happens every 1 ms)
10 *------------------------------------------------------------------------------*/
11 __inline static void Delay (uint32_t dlyTicks) {
15 while ((msTicks - curTicks) < dlyTicks);
18 /*------------------------------------------------------------------------------
20 *------------------------------------------------------------------------------*/
21 __inline static void LED_Config(void) {
23 GPIO1->FIODIR = (1<<29)|(1<<18); /* LEDs on PORT1 18 & 29 are Output */
26 /*------------------------------------------------------------------------------
28 *------------------------------------------------------------------------------*/
29 __inline static void LED_On (uint32_t led) {
31 GPIO1->FIOPIN |= (led); /* Turn On LED */
35 /*------------------------------------------------------------------------------
37 *------------------------------------------------------------------------------*/
38 __inline static void LED_Off (uint32_t led) {
40 GPIO1->FIOPIN &= ~(led); /* Turn Off LED */