From 8e0b313cc4dcc9c2572252a6e12c65a1694fae53 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 21 May 2012 18:17:11 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4227 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM0-LPC11U14-LPCXPRESSO/main.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'demos') diff --git a/demos/ARMCM0-LPC11U14-LPCXPRESSO/main.c b/demos/ARMCM0-LPC11U14-LPCXPRESSO/main.c index 3afc14786..a4dce854c 100644 --- a/demos/ARMCM0-LPC11U14-LPCXPRESSO/main.c +++ b/demos/ARMCM0-LPC11U14-LPCXPRESSO/main.c @@ -22,7 +22,6 @@ #include "hal.h" #include "test.h" -#if 0 /* * Conversion table from hex digit to 7 segments encoding, bit 5 controls the * dot. @@ -40,12 +39,11 @@ static uint8_t digits[32] = { */ static SPIConfig spicfg = { NULL, - GPIO1, - GPIO1_SPI0SEL, + GPIO0, + GPIO0_SPI0SEL, CR0_DSS8BIT | CR0_FRFSPI | CR0_CLOCKRATE(0), 48 }; -#endif /* * Red LED blinker thread, times are in milliseconds. @@ -114,7 +112,7 @@ int main(void) { * Activates the SD1 and SPI1 drivers. */ sdStart(&SD1, NULL); /* Default: 38400,8,N,1. */ -// spiStart(&SPID1, &spicfg); + spiStart(&SPID1, &spicfg); /* * Creates the blinker threads. @@ -130,7 +128,6 @@ int main(void) { while (TRUE) { if (!palReadPad(GPIO0, GPIO0_SW3)) TestThread(&SD1); -#if 0 spiSelect(&SPID1); spiSend(&SPID1, 1, &digits[i]); /* Non polled method. */ spiUnselect(&SPID1); @@ -139,7 +136,6 @@ int main(void) { spiPolledExchange(&SPID1, digits[i | 0x10]); /* Polled method. */ spiUnselect(&SPID1); chThdSleepMilliseconds(500); -#endif i = (i + 1) & 15; } } -- cgit v1.2.3