mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user