setmode method is optional
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1674 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
bb54876857
commit
d044d4f67b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user