git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5723 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
7faa5bbc24
commit
fde582b119
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue