projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Remove ao_led_toggle API from general code
[fw/altos]
/
src
/
drivers
/
ao_rn4678.c
diff --git
a/src/drivers/ao_rn4678.c
b/src/drivers/ao_rn4678.c
index 4d13decc46ec271bb9fff384ad937c6db8b79bd6..3983dc941598ff6e584d1e53e8b688323e7a7dd5 100644
(file)
--- a/
src/drivers/ao_rn4678.c
+++ b/
src/drivers/ao_rn4678.c
@@
-350,11
+350,10
@@
ao_bt_panic(int where)
{
int i;
for (;;) {
{
int i;
for (;;) {
- for (i = 0; i <
50
; i++) {
- ao_led_
toggle(AO_BT_LED
);
+ for (i = 0; i <
25
; i++) {
+ ao_led_
for(AO_BT_LED, AO_MS_TO_TICKS(10)
);
ao_delay(AO_MS_TO_TICKS(10));
}
ao_delay(AO_MS_TO_TICKS(10));
}
- ao_led_off(AO_BT_LED);
ao_delay(AO_MS_TO_TICKS(500));
for (i = 0; i < where; i++) {
ao_led_for(AO_BT_LED, AO_MS_TO_TICKS(200));
ao_delay(AO_MS_TO_TICKS(500));
for (i = 0; i < where; i++) {
ao_led_for(AO_BT_LED, AO_MS_TO_TICKS(200));
@@
-548,7
+547,10
@@
ao_rn_factory(void)
v = 1-v;
ao_delay(AO_MS_TO_TICKS(50));
ao_gpio_set(AO_RN_P3_1_PORT, AO_RN_P3_1_PIN, v);
v = 1-v;
ao_delay(AO_MS_TO_TICKS(50));
ao_gpio_set(AO_RN_P3_1_PORT, AO_RN_P3_1_PIN, v);
- ao_led_toggle(AO_BT_LED);
+ if (v)
+ ao_led_on(AO_BT_LED);
+ else
+ ao_led_off(AO_BT_LED);
}
/* And let P3_1 float again */
}
/* And let P3_1 float again */