]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - board/arm/lpc2364_addat/libs/deb_led_board.h
Remove lpc2364_addat
[sysless.git] / board / arm / lpc2364_addat / libs / deb_led_board.h
diff --git a/board/arm/lpc2364_addat/libs/deb_led_board.h b/board/arm/lpc2364_addat/libs/deb_led_board.h
deleted file mode 100644 (file)
index 74100b7..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef DEB_LED_BOARD_H
-#define DEB_LED_BOARD_H
-
-#include <lpc2xxx.h>
-
-#define __LED_SHIFT 25
-#define __LED_MASK 0x0f
-
-#define LEDG (1<<0)            // LED R (1<<25)
-#define LEDR (1<<1)            // LED G (1<<26)
-#define LEDY (1<<2)            // LED B (1<<27)
-#define LEDB (1<<3)            // LED Y (1<<28)
-
-#define DEB_LED_ERROR LEDR     /* Error occured */
-#define DEB_LED_RUN   LEDG     /* Should blink when running */
-
-static inline unsigned
-__deb_led_get()
-{
-       return (FIO1PIN >> __LED_SHIFT) & __LED_MASK;
-}
-
-static inline void
-__deb_led_on(unsigned leds)
-{
-       FIO1CLR = (leds & __LED_MASK) << __LED_SHIFT;
-}
-
-static inline void
-__deb_led_off(unsigned leds)
-{
-       FIO1SET = (leds & __LED_MASK) << __LED_SHIFT;
-}
-
-static inline void
-__deb_led_set(unsigned leds)
-{
-       __deb_led_on(~leds);
-       __deb_led_off(leds);
-}
-
-static inline void
-__deb_led_change(unsigned leds)
-{
-       __deb_led_set(__deb_led_get() ^ leds);
-}
-
-static inline void
-__deb_led_init()
-{
-       FIO1DIR |= (__LED_MASK << __LED_SHIFT);
-       __deb_led_set(0xF);
-}
-
-#endif