summaryrefslogtreecommitdiff
path: root/nuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-15 19:30:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-15 19:30:06 +0000
commit65e82f8b46538cf3b00a20f44864e862b76d7eb7 (patch)
tree666d2e159c4c0d011109e781640073ff6cd7bcd2 /nuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c
parent23d801c1b7e4bfcd7248dbec91b920c2aa68f1e2 (diff)
downloadpx4-nuttx-65e82f8b46538cf3b00a20f44864e862b76d7eb7.tar.gz
px4-nuttx-65e82f8b46538cf3b00a20f44864e862b76d7eb7.tar.bz2
px4-nuttx-65e82f8b46538cf3b00a20f44864e862b76d7eb7.zip
Add LPCXpression USB storage example
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3509 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c')
-rwxr-xr-xnuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c b/nuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c
index d3977b852..b15d97358 100755
--- a/nuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c
+++ b/nuttx/configs/lpcxpresso-lpc1768/src/up_ssp.c
@@ -113,8 +113,8 @@ void weak_function lpc17_sspinitialize(void)
*/
#ifdef CONFIG_LPC17_SSP1
- (void)lpc17_configgpio(GPIO_SD_CS);
- (void)lpc17_configgpio(GPIO_SD_CD);
+ (void)lpc17_configgpio(LPCXPRESSO_SD_CS);
+ (void)lpc17_configgpio(LPCXPRESSO_SD_CD);
#endif
ssp_dumpgpio("lpc17_sspinitialize() Exit");
@@ -173,7 +173,7 @@ void lpc17_ssp1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool sel
{
/* Assert/de-assert the CS pin to the card */
- (void)lpc17_gpiowrite(GPIO_SD_CS, !selected);
+ (void)lpc17_gpiowrite(LPCXPRESSO_SD_CS, !selected);
}
ssp_dumpgpio("lpc17_spi1select() Exit");
@@ -185,7 +185,7 @@ uint8_t lpc17_ssp1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
{
/* Read the state of the card-detect bit */
- if (lpc17_gpioread(GPIO_SD_CD) == 0)
+ if (lpc17_gpioread(LPCXPRESSO_SD_CD) == 0)
{
sspdbg("Returning SPI_STATUS_PRESENT\n");
return SPI_STATUS_PRESENT;