summaryrefslogtreecommitdiff
path: root/ao_led.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-24 19:11:40 -0700
committerKeith Packard <keithp@keithp.com>2009-04-24 19:11:40 -0700
commit6bf1d91ce0b723abe2bcec89668c13135ec044cf (patch)
treecdcd93bf57ee708272ec3a62e6ae750458625179 /ao_led.c
parentb4de7d550ec9a09ccf5f6a72debc6646706e3516 (diff)
Move ao_led_init to end of file to be consistent with other files
Diffstat (limited to 'ao_led.c')
-rw-r--r--ao_led.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/ao_led.c b/ao_led.c
index f27714ed..f2bc179a 100644
--- a/ao_led.c
+++ b/ao_led.c
@@ -18,14 +18,6 @@
#include "ao.h"
void
-ao_led_init(void)
-{
- P1SEL &= ~3;
- P1 &= ~3;
- P1DIR |= 3;
-}
-
-void
ao_led_on(uint8_t colors)
{
P1 |= colors;
@@ -51,3 +43,10 @@ ao_led_for(uint8_t colors, uint16_t ticks)
ao_led_off(colors);
}
+void
+ao_led_init(void)
+{
+ P1SEL &= ~3;
+ P1 &= ~3;
+ P1DIR |= 3;
+}