diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-31 22:29:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-31 22:29:58 +0000 |
commit | 982a18915c775552ff91cff781e8e377c93436f2 (patch) | |
tree | 20ed95a8081dd432ccd13a77723ea9258d75832d /nuttx/include | |
parent | 4c40fdb4874a860a924701adab56b360cb7afe87 (diff) | |
download | px4-nuttx-982a18915c775552ff91cff781e8e377c93436f2.tar.gz px4-nuttx-982a18915c775552ff91cff781e8e377c93436f2.tar.bz2 px4-nuttx-982a18915c775552ff91cff781e8e377c93436f2.zip |
setmode method is optional
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1674 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/spi.h b/nuttx/include/nuttx/spi.h index 57da34304..636c9323f 100644 --- a/nuttx/include/nuttx/spi.h +++ b/nuttx/include/nuttx/spi.h @@ -102,7 +102,7 @@ * ****************************************************************************/ -#define SPI_SETMODE(d,m) ((d)->ops->mode(d,m)) +#define SPI_SETMODE(d,m) ((d)->ops->mode ? (d)->ops->mode(d,m) : (void)) /**************************************************************************** * Name: SPI_STATUS |