diff options
Diffstat (limited to 'libc/kernel/arch-sh/asm/hd64465/gpio.h')
-rw-r--r-- | libc/kernel/arch-sh/asm/hd64465/gpio.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libc/kernel/arch-sh/asm/hd64465/gpio.h b/libc/kernel/arch-sh/asm/hd64465/gpio.h new file mode 100644 index 0000000..159c7c4 --- /dev/null +++ b/libc/kernel/arch-sh/asm/hd64465/gpio.h @@ -0,0 +1,27 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _ASM_SH_HD64465_GPIO_ +#define _ASM_SH_HD64465_GPIO_ 1 + +#include <asm/hd64465.h> + +#define HD64465_GPIO_PORTPIN(port,pin) (((port)-'A')<<3|(pin)) + +#define HD64465_GPIO_FUNCTION2 0 +#define HD64465_GPIO_OUT 1 +#define HD64465_GPIO_IN_PULLUP 2 +#define HD64465_GPIO_IN 3 + +#define HD64465_GPIO_FALLING 0 +#define HD64465_GPIO_RISING 1 + +#endif |