diff options
author | Peter Pearse <peter.pearse@arm.com> | 2007-09-04 16:18:38 +0100 |
---|---|---|
committer | Peter Pearse <peter.pearse@arm.com> | 2007-09-04 16:18:38 +0100 |
commit | 9f5c3d3720e777a572dcdc8af2008b44c7243885 (patch) | |
tree | caddb48ed91cab37e34baab6eac69dd8323861cf /lib_arm/board.c | |
parent | 7462fe0d5a9d40cde083fb1a3cd73911996b5ecb (diff) |
Add coloured led interface for ARM boards.
Use it in cpu/arm920t/start.S to indicate U-Boot code has been entered.
Diffstat (limited to 'lib_arm/board.c')
-rwxr-xr-x[-rw-r--r--] | lib_arm/board.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c index d37e5dab352..6b49925a590 100644..100755 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -112,6 +112,30 @@ void *sbrk (ptrdiff_t increment) } /************************************************************************ + * Coloured LED functionality + ************************************************************************ + * May be supplied by boards if desired + */ +void inline __coloured_LED_init (void) {} +void inline coloured_LED_init (void) __attribute__((weak, alias("__coloured_LED_init"))); +void inline __red_LED_on (void) {} +void inline red_LED_on (void) __attribute__((weak, alias("__red_LED_on"))); +void inline __red_LED_off(void) {} +void inline red_LED_off(void) __attribute__((weak, alias("__red_LED_off"))); +void inline __green_LED_on(void) {} +void inline green_LED_on(void) __attribute__((weak, alias("__green_LED_on"))); +void inline __green_LED_off(void) {} +void inline green_LED_off(void)__attribute__((weak, alias("__green_LED_off"))); +void inline __yellow_LED_on(void) {} +void inline yellow_LED_on(void)__attribute__((weak, alias("__yellow_LED_on"))); +void inline __yellow_LED_off(void) {} +void inline yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off"))); + + + + + +/************************************************************************ * Init Utilities * ************************************************************************ * Some of this code should be moved into the core functions, |