+++ /dev/null
-#ifndef LED_H
-#define LED_H
-
-#include <board.h>
-
-extern uint32_t msTicks; /* counts 1ms timeTicks */
-
-/*------------------------------------------------------------------------------
- delays number of tick Systicks (happens every 1 ms)
- *------------------------------------------------------------------------------*/
-__inline static void Delay (uint32_t dlyTicks) {
- uint32_t curTicks;
-
- curTicks = msTicks;
- while ((msTicks - curTicks) < dlyTicks);
-}
-
-/*------------------------------------------------------------------------------
- configer LED pins
- *------------------------------------------------------------------------------*/
-__inline static void LED_Config(void) {
-
- GPIO1->FIODIR = (1<<29)|(1<<18); /* LEDs on PORT1 18 & 29 are Output */
-}
-
-/*------------------------------------------------------------------------------
- Switch on LEDs
- *------------------------------------------------------------------------------*/
-__inline static void LED_On (uint32_t led) {
-
- GPIO1->FIOPIN |= (led); /* Turn On LED */
-}
-
-
-/*------------------------------------------------------------------------------
- Switch off LEDs
- *------------------------------------------------------------------------------*/
-__inline static void LED_Off (uint32_t led) {
-
- GPIO1->FIOPIN &= ~(led); /* Turn Off LED */
-}
-
-#endif