diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-07 08:59:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-07 08:59:30 +0000 |
commit | 0bd69a2cb10011aa34897d747df6a959121a1e4e (patch) | |
tree | 7d4e4205028a4b26751245cf834145ce769e85da /demos | |
parent | 0521c90a445af93ea53f7d0e1847fa8a12a9c423 (diff) | |
download | ChibiOS-0bd69a2cb10011aa34897d747df6a959121a1e4e.tar.gz ChibiOS-0bd69a2cb10011aa34897d747df6a959121a1e4e.tar.bz2 ChibiOS-0bd69a2cb10011aa34897d747df6a959121a1e4e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1271 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-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.
|