/****************************************************************************** * @file gpio.h * @author YunWang * @version V1.0.0 * @date 4-May-2014 * @brief gpio register description and function declare * @TypicalAppication * Gpio can be configured as general io pin also be reused for other pin. * They are configured as general io pin using the following functions: * 1.Digital output: --Disable input function: Clr GPIO_A_IE, GPIO_B_IE or GPIO_C_IE --Enable Output function: Set GPIO_A_OE, GPIO_B_OE or GPIO_C_OE --Strong or week output: Set or clr GPIO_A_OUTDS, GPIO_B_OUTDS or GPIO_C_OUTDS --Pull up or down function: Set or clr {PU,PD} --strong or week pull: Set or clr GPIO_A_DS, GPIO_B_DS or GPIO_C_DS --Output High level or Low level: Set or clr GPIO_A_OUT, GPIO_B_OUT or GPIO_C_OUT 2.Digital input: --Disable output function: Clr GPIO_A_OE, GPIO_B_OE or GPIO_C_OE --Enable input function: Set GPIO_A_IE, GPIO_B_IE or GPIO_C_IE --Pull up or down function: Set or clr {PU,PD} --strong or week pull: Set or clr GPIO_A_DS, GPIO_B_DS or GPIO_C_DS --Read input status 3.Analog input: --Clr PU: Clr GPIO_A_PU, GPIO_B_PU or GPIO_C_PU --Set PD: Set GPIO_A_PD, GPIO_B_PD or GPIO_C_PD --Clr OE: Clr GPIO_A_OE, GPIO_B_OE or GPIO_C_OE --Clr IE: Clr GPIO_A_IE, GPIO_B_IE or GPIO_C_IE ****************************************************************************** * @attention * *

© COPYRIGHT 2013 MVSilicon

* */ #ifndef __GPIO_H__ #define __GPIO_H__ #ifdef __cplusplus extern "C" { #endif//__cplusplus #include "type.h" // Bank A #define GPIO_A_IN (0x00) /**