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:
ligd 2019-11-03 19:46:56 -06:00 committed by Gregory Nutt
parent 0c50499027
commit eb0d0c764e
1 changed files with 3 additions and 0 deletions

View File

@ -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 */