Rename new_cmsis to src
[rapper.git] / new_cmsis / led.h
diff --git a/new_cmsis/led.h b/new_cmsis/led.h
deleted file mode 100644 (file)
index ef0be5d..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#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