diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-31 02:21:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-31 02:21:12 +0000 |
commit | a66cf9d6e86bc95a25e21e746000e602e6f1ecbc (patch) | |
tree | 21c35973ac5cd59ec676a68423140c3a42ce4231 /nuttx/arch/arm/src/lpc313x | |
parent | e3dbd274922d727842086ad42df644308dfc668d (diff) | |
download | px4-nuttx-a66cf9d6e86bc95a25e21e746000e602e6f1ecbc.tar.gz px4-nuttx-a66cf9d6e86bc95a25e21e746000e602e6f1ecbc.tar.bz2 px4-nuttx-a66cf9d6e86bc95a25e21e746000e602e6f1ecbc.zip |
Add paging debug instrumentation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2899 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x')
-rw-r--r-- | nuttx/arch/arm/src/lpc313x/lpc313x_spi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c b/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c index 780969576..98c3dc64d 100644 --- a/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c +++ b/nuttx/arch/arm/src/lpc313x/lpc313x_spi.c @@ -1,7 +1,7 @@ /************************************************************************************ * arm/arm/src/lpc313x/lpc313x_spi.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -568,8 +568,7 @@ static uint8_t spi_status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) static uint16_t spi_send(FAR struct spi_dev_s *dev, uint16_t wd) { FAR struct lpc313x_spidev_s *priv = (FAR struct lpc313x_spidev_s *)dev; - - DEBUGASSERT(priv && priv->spibase); + DEBUGASSERT(priv); spi_writeword(priv, wd); return spi_readword(priv); |