projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: For telelco discovery packets, retry 5 times with shorter timeout
[fw/altos]
/
src
/
drivers
/
ao_pca9922.c
diff --git
a/src/drivers/ao_pca9922.c
b/src/drivers/ao_pca9922.c
index fe070b884909260b028ee53930b2698d59186c71..d376b9681194fc94d00d394781f74b19a75ace98 100644
(file)
--- a/
src/drivers/ao_pca9922.c
+++ b/
src/drivers/ao_pca9922.c
@@
-30,12
+30,12
@@
ao_led_apply(void)
/* Don't try the SPI bus during initialization */
if (!ao_cur_task)
return;
/* Don't try the SPI bus during initialization */
if (!ao_cur_task)
return;
- ao_
mutex_get(&ao_spi_mutex
);
- ao_spi_set_speed(AO_SPI_SPEED_FAST);
+ ao_
spi_get(AO_PCA9922_SPI_BUS
);
+ ao_spi_set_speed(AO_
PCA9922_SPI_BUS,AO_
SPI_SPEED_FAST);
AO_PCA9922_CS = 1;
ao_spi_send(&ao_led_state, 1, AO_PCA9922_SPI_BUS);
AO_PCA9922_CS = 0;
AO_PCA9922_CS = 1;
ao_spi_send(&ao_led_state, 1, AO_PCA9922_SPI_BUS);
AO_PCA9922_CS = 0;
- ao_
mutex_put(&ao_spi_mutex
);
+ ao_
spi_put(AO_PCA9922_SPI_BUS
);
}
void
}
void