diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-11 12:20:55 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-11 12:20:55 +0000 |
commit | d79a8f89a8041f63f1f61517eb30fd2967c6d1e1 (patch) | |
tree | 9bc42c9f383fd6d6e7d81d379d6122bd53a42f0e /testhal | |
parent | 8041eaf33c2f50f2ef7ed5580d1fb4741c9431c9 (diff) | |
download | ChibiOS-d79a8f89a8041f63f1f61517eb30fd2967c6d1e1.tar.gz ChibiOS-d79a8f89a8041f63f1f61517eb30fd2967c6d1e1.tar.bz2 ChibiOS-d79a8f89a8041f63f1f61517eb30fd2967c6d1e1.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5834 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r-- | testhal/SPC56ELxx/SPI/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testhal/SPC56ELxx/SPI/main.c b/testhal/SPC56ELxx/SPI/main.c index 06ef48689..c335191ad 100644 --- a/testhal/SPC56ELxx/SPI/main.c +++ b/testhal/SPC56ELxx/SPI/main.c @@ -57,7 +57,7 @@ static msg_t spi_thread_1(void *p) { chRegSetThreadName("SPI thread 1");
while (TRUE) {
spiAcquireBus(&SPID1); /* Acquire ownership of the bus. */
- palClearPad(PORT_D, PD_LED1); /* LED ON. */
+ palClearPad(PORT_D, PD_LED1); /* LED ON. */
spiStart(&SPID1, &hs_spicfg); /* Setup transfer parameters. */
spiSelect(&SPID1); /* Slave Select assertion. */
spiExchange(&SPID1, 512,
@@ -78,7 +78,7 @@ static msg_t spi_thread_2(void *p) { chRegSetThreadName("SPI thread 2");
while (TRUE) {
spiAcquireBus(&SPID1); /* Acquire ownership of the bus. */
- palSetPad(PORT_D, PD_LED1); /* LED OFF. */
+ palSetPad(PORT_D, PD_LED1); /* LED OFF. */
spiStart(&SPID1, &ls_spicfg); /* Setup transfer parameters. */
spiSelect(&SPID1); /* Slave Select assertion. */
spiExchange(&SPID1, 512,
@@ -116,7 +116,7 @@ int main(void) { SIU.PCR[37].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SCK */
SIU.PCR[38].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SOUT */
SIU.PCR[36].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* CS[0] */
- SIU.PCR[35].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* CS[1] */
+ SIU.PCR[54].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* CS[2] */
/* Testing sending and receiving at the same time.*/
spiExchange(&SPID1, 4, txbuf, rxbuf);
|