diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-24 19:11:40 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-24 19:11:40 -0700 |
commit | 6bf1d91ce0b723abe2bcec89668c13135ec044cf (patch) | |
tree | cdcd93bf57ee708272ec3a62e6ae750458625179 /ao_led.c | |
parent | b4de7d550ec9a09ccf5f6a72debc6646706e3516 (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.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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; +} |