projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b4de7d5
)
Move ao_led_init to end of file to be consistent with other files
author
Keith Packard
<keithp@keithp.com>
Sat, 25 Apr 2009 02:11:40 +0000
(19:11 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 25 Apr 2009 02:11:40 +0000
(19:11 -0700)
ao_led.c
patch
|
blob
|
history
diff --git
a/ao_led.c
b/ao_led.c
index f27714ed73a6a9a838075c3e900d8d9886ea3db0..f2bc179adfc21663a10d62f984ee5a7f25baeccd 100644
(file)
--- a/
ao_led.c
+++ b/
ao_led.c
@@
-17,14
+17,6
@@
#include "ao.h"
#include "ao.h"
-void
-ao_led_init(void)
-{
- P1SEL &= ~3;
- P1 &= ~3;
- P1DIR |= 3;
-}
-
void
ao_led_on(uint8_t colors)
{
void
ao_led_on(uint8_t colors)
{
@@
-51,3
+43,10
@@
ao_led_for(uint8_t colors, uint16_t ticks)
ao_led_off(colors);
}
ao_led_off(colors);
}
+void
+ao_led_init(void)
+{
+ P1SEL &= ~3;
+ P1 &= ~3;
+ P1DIR |= 3;
+}