diff options
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/main.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/main.c b/demos/ARMCM3-STM32F103-GCC/main.c index d3889251a..116a0aaf1 100644 --- a/demos/ARMCM3-STM32F103-GCC/main.c +++ b/demos/ARMCM3-STM32F103-GCC/main.c @@ -41,13 +41,6 @@ static msg_t Thread1(void *arg) { return 0;
}
-static SPIConfig spicfg = {
- 16, IOPORT1, 4, 0
-};
-
-static uint8_t txbuf[8] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};
-static uint8_t rxbuf[8];
-
/*
* Entry point, note, the main() function is already a thread in the system
* on entry.
@@ -67,14 +60,6 @@ int main(int argc, char **argv) { */
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- palSetPadMode(IOPORT1, 4, PAL_MODE_OUTPUT_PUSHPULL);
- palSetPad(IOPORT1, 4);
- spiStart(&SPID1, &spicfg);
- spiSelect(&SPID1);
- spiExchange(&SPID1, 8, txbuf, rxbuf);
- spiUnselect(&SPID1);
- spiStop(&SPID1);
-
/*
* Normal main() thread activity, in this demo it does nothing except
* sleeping in a loop and check the button state.
|