bionic/libc/kernel/arch-sh/asm/hd64465/gpio.h
Tony SIM 1d7a8944d8 added headers for SuperH which automatically generate by update_all.py
base on kernel 2.6.27 arch/sh/include/asm/
2010-02-01 16:06:40 +09:00

28 lines
1017 B
C

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