From 0bd69a2cb10011aa34897d747df6a959121a1e4e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 7 Nov 2009 08:59:30 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1271 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM3-STM32F103-GCC/main.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'demos') 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. -- cgit v1.2.3