aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32L1xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-12 06:54:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-12 06:54:52 +0000
commitfde582b119c3c1f7c780b9b1e9fc9a0954588ca3 (patch)
tree9dda279a5399f39707d4f1709adb150ce2711c39 /testhal/STM32L1xx
parent7faa5bbc248278ecc50a99c9410bfefe4567b0c5 (diff)
downloadChibiOS-fde582b119c3c1f7c780b9b1e9fc9a0954588ca3.tar.gz
ChibiOS-fde582b119c3c1f7c780b9b1e9fc9a0954588ca3.tar.bz2
ChibiOS-fde582b119c3c1f7c780b9b1e9fc9a0954588ca3.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5723 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32L1xx')
-rw-r--r--testhal/STM32L1xx/SPI/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32L1xx/SPI/main.c b/testhal/STM32L1xx/SPI/main.c
index 8bbd0254f..da394e97b 100644
--- a/testhal/STM32L1xx/SPI/main.c
+++ b/testhal/STM32L1xx/SPI/main.c
@@ -53,7 +53,7 @@ static msg_t spi_thread_1(void *p) {
chRegSetThreadName("SPI thread 1");
while (TRUE) {
spiAcquireBus(&SPID2); /* Acquire ownership of the bus. */
- palClearPad(GPIOB, GPIOB_LED4); /* LED ON. */
+ palSetPad(GPIOB, GPIOB_LED4); /* LED ON. */
spiStart(&SPID2, &hs_spicfg); /* Setup transfer parameters. */
spiSelect(&SPID2); /* Slave Select assertion. */
spiExchange(&SPID2, 512,
@@ -74,7 +74,7 @@ static msg_t spi_thread_2(void *p) {
chRegSetThreadName("SPI thread 2");
while (TRUE) {
spiAcquireBus(&SPID2); /* Acquire ownership of the bus. */
- palSetPad(GPIOB, GPIOB_LED4); /* LED OFF. */
+ palClearPad(GPIOB, GPIOB_LED4); /* LED OFF. */
spiStart(&SPID2, &ls_spicfg); /* Setup transfer parameters. */
spiSelect(&SPID2); /* Slave Select assertion. */
spiExchange(&SPID2, 512,