Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /usr/src/linux-headers-4.4.0-130/arch/avr32/mach-at32ap/include/mach/ |
Upload File : |
#ifndef __ASM_AVR32_ARCH_GPIO_H #define __ASM_AVR32_ARCH_GPIO_H #include <linux/compiler.h> #include <asm/irq.h> /* Some GPIO chips can manage IRQs; some can't. The exact numbers can * be changed if needed, but for the moment they're not configurable. */ #define ARCH_NR_GPIOS (NR_GPIO_IRQS + 2 * 32) /* Arch-neutral GPIO API, supporting both "native" and external GPIOs. */ #include <asm-generic/gpio.h> static inline int gpio_get_value(unsigned int gpio) { return __gpio_get_value(gpio); } static inline void gpio_set_value(unsigned int gpio, int value) { __gpio_set_value(gpio, value); } static inline int gpio_cansleep(unsigned int gpio) { return __gpio_cansleep(gpio); } static inline int gpio_to_irq(unsigned int gpio) { if (gpio < NR_GPIO_IRQS) return gpio + GPIO_IRQ_BASE; return -EINVAL; } static inline int irq_to_gpio(unsigned int irq) { return irq - GPIO_IRQ_BASE; } #endif /* __ASM_AVR32_ARCH_GPIO_H */