include/nuttx/ioexpander/gpio.h: Add guards so that file content will not compile unless CONFIG_DEV_GPIO is selected.
This commit is contained in:
parent
0c50499027
commit
eb0d0c764e
|
@ -49,6 +49,8 @@
|
|||
#include <nuttx/signal.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
|
||||
#ifdef CONFIG_DEV_GPIO
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
@ -246,4 +248,5 @@ int gpio_lower_half(FAR struct ioexpander_dev_s *ioe, unsigned int pin,
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_DEV_GPIO */
|
||||
#endif /* __INCLUDE_NUTTX_IOEXPANDER_GPIO_H */
|
||||
|
|
Loading…
Reference in New Issue