久久精品99久久_亚洲一区二区综合_狠狠色伊人亚洲综合成人_亚洲综合爱爱久久网

您好,歡迎進入深圳市穎特新科技有限公司官方網站!

您現在的位置:首頁 新聞資訊 >> 新聞頭條 >> 說說GPIO.H(NUC131)
新聞資訊
NEWS INFORMATION

說說GPIO.H(NUC131)

發布時間:2019-05-22
/**************************************************************************//**
* @file GPIO.h
* @version V3.00
* $Revision: 11 $
* $Date: 15/01/16 1:46p $
* @brief NUC131 Series General Purpose I/O Driver Header File
*
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.
*
******************************************************************************/
#ifndef __GPIO_H__
#define __GPIO_H__

#ifdef __cplusplus
extern "C"
{
#endif


/** @addtogroup NUC131_Device_Driver NUC131 Device Driver
@{
*/

/** @addtogroup NUC131_GPIO_Driver GPIO Driver
@{
*/

/** @addtogroup NUC131_GPIO_EXPORTED_CONSTANTS GPIO Exported Constants
@{
*/
#define GPIO_PIN_MAX 16 /*!< Specify Maximum Pins of Each GPIO Port */

/*---------------------------------------------------------------------------------------------------------*/
/* PMD Constant Definitions */
/*---------------------------------------------------------------------------------------------------------*/
#define GPIO_PMD_INPUT 0x0UL /*!< Input Mode */
#define GPIO_PMD_OUTPUT 0x1UL /*!< Output Mode */
#define GPIO_PMD_OPEN_DRAIN 0x2UL /*!< Open-Drain Mode */
#define GPIO_PMD_QUASI 0x3UL /*!< Quasi-bidirectional Mode */

/*---------------------------------------------------------------------------------------------------------*/
/* GPIO Interrupt Type Constant Definitions */
/*---------------------------------------------------------------------------------------------------------*/
#define GPIO_INT_RISING 0x00010000UL /*!< Interrupt enable by Input Rising Edge */
#define GPIO_INT_FALLING 0x00000001UL /*!< Interrupt enable by Input Falling Edge */
#define GPIO_INT_BOTH_EDGE 0x00010001UL /*!< Interrupt enable by both Rising Edge and Falling Edge */
#define GPIO_INT_HIGH 0x01010000UL /*!< Interrupt enable by Level-High */
#define GPIO_INT_LOW 0x01000001UL /*!< Interrupt enable by Level-Level */

/*---------------------------------------------------------------------------------------------------------*/
/* IMD Constant Definitions */
/*---------------------------------------------------------------------------------------------------------*/
#define GPIO_IMD_EDGE 0UL /*!< IMD Setting for Edge Trigger Mode */
#define GPIO_IMD_LEVEL 1UL /*!< IMD Setting for Edge Level Mode */

/*---------------------------------------------------------------------------------------------------------*/
/* DBNCECON Constant Definitions */
/*---------------------------------------------------------------------------------------------------------*/
#define GPIO_INT_CLK_ON 0x00000020UL /*!< DBNCECON setting for all IO pins edge detection circuit is always active after reset */
#define GPIO_INT_CLK_OFF 0x00000000UL /*!< DBNCECON setting for edge detection circuit is active only if IO pin corresponding GPIOx_IEN bit is set to 1 */

#define GPIO_DBCLKSRC_LIRC 0x00000010UL /*!< DBNCECON setting for de-bounce counter clock source is the internal 10 kHz */
#define GPIO_DBCLKSRC_HCLK 0x00000000UL /*!< DBNCECON setting for de-bounce counter clock source is the HCLK */

#define GPIO_DBCLKSEL_1 0x00000000UL /*!< DBNCECON setting for sampling cycle = 1 clocks */
#define GPIO_DBCLKSEL_2 0x00000001UL /*!< DBNCECON setting for sampling cycle = 2 clocks */
#define GPIO_DBCLKSEL_4 0x00000002UL /*!< DBNCECON setting for sampling cycle = 4 clocks */
#define GPIO_DBCLKSEL_8 0x00000003UL /*!< DBNCECON setting for sampling cycle = 8 clocks */
#define GPIO_DBCLKSEL_16 0x00000004UL /*!< DBNCECON setting for sampling cycle = 16 clocks */
#define GPIO_DBCLKSEL_32 0x00000005UL /*!< DBNCECON setting for sampling cycle = 32 clocks */
#define GPIO_DBCLKSEL_64 0x00000006UL /*!< DBNCECON setting for sampling cycle = 64 clocks */
#define GPIO_DBCLKSEL_128 0x00000007UL /*!< DBNCECON setting for sampling cycle = 128 clocks */
#define GPIO_DBCLKSEL_256 0x00000008UL /*!< DBNCECON setting for sampling cycle = 256 clocks */
#define GPIO_DBCLKSEL_512 0x00000009UL /*!< DBNCECON setting for sampling cycle = 512 clocks */
#define GPIO_DBCLKSEL_1024 0x0000000AUL /*!< DBNCECON setting for sampling cycle = 1024 clocks */
#define GPIO_DBCLKSEL_2048 0x0000000BUL /*!< DBNCECON setting for sampling cycle = 2048 clocks */
#define GPIO_DBCLKSEL_4096 0x0000000CUL /*!< DBNCECON setting for sampling cycle = 4096 clocks */
#define GPIO_DBCLKSEL_8192 0x0000000DUL /*!< DBNCECON setting for sampling cycle = 8192 clocks */
#define GPIO_DBCLKSEL_16384 0x0000000EUL /*!< DBNCECON setting for sampling cycle = 16384 clocks */
#define GPIO_DBCLKSEL_32768 0x0000000FUL /*!< DBNCECON setting for sampling cycle = 32768 clocks */


/* Define GPIO Pin Data Input/Output. It could be used to control each I/O pin by pin address mapping.
Example 1:

PA0 = 1;

It is used to set GPIO PA.0 to high;

Example 2:

if (PA0)
PA0 = 0;

If GPIO PA.0 pin status is high, then set GPIO PA.0 data output to low.
*/
#define GPIO_PIN_DATA(port, pin) (*((volatile uint32_t *)((GPIO_PIN_DATA_BASE+(0x40*(port))) + ((pin)<<2))))
#define PA0 GPIO_PIN_DATA(0, 0 ) /*!< Specify PA.0 Pin Data Input/Output */
#define PA1 GPIO_PIN_DATA(0, 1 ) /*!< Specify PA.1 Pin Data Input/Output */
#define PA2 GPIO_PIN_DATA(0, 2 ) /*!< Specify PA.2 Pin Data Input/Output */
#define PA3 GPIO_PIN_DATA(0, 3 ) /*!< Specify PA.3 Pin Data Input/Output */
#define PA4 GPIO_PIN_DATA(0, 4 ) /*!< Specify PA.4 Pin Data Input/Output */
#define PA5 GPIO_PIN_DATA(0, 5 ) /*!< Specify PA.5 Pin Data Input/Output */
#define PA6 GPIO_PIN_DATA(0, 6 ) /*!< Specify PA.6 Pin Data Input/Output */
#define PA7 GPIO_PIN_DATA(0, 7 ) /*!< Specify PA.7 Pin Data Input/Output */
#define PA8 GPIO_PIN_DATA(0, 8 ) /*!< Specify PA.8 Pin Data Input/Output */
#define PA9 GPIO_PIN_DATA(0, 9 ) /*!< Specify PA.9 Pin Data Input/Output */
#define PA10 GPIO_PIN_DATA(0, 10) /*!< Specify PA.10 Pin Data Input/Output */
#define PA11 GPIO_PIN_DATA(0, 11) /*!< Specify PA.11 Pin Data Input/Output */
#define PA12 GPIO_PIN_DATA(0, 12) /*!< Specify PA.12 Pin Data Input/Output */
#define PA13 GPIO_PIN_DATA(0, 13) /*!< Specify PA.13 Pin Data Input/Output */
#define PA14 GPIO_PIN_DATA(0, 14) /*!< Specify PA.14 Pin Data Input/Output */
#define PA15 GPIO_PIN_DATA(0, 15) /*!< Specify PA.15 Pin Data Input/Output */
#define PB0 GPIO_PIN_DATA(1, 0 ) /*!< Specify PB.0 Pin Data Input/Output */
#define PB1 GPIO_PIN_DATA(1, 1 ) /*!< Specify PB.1 Pin Data Input/Output */
#define PB2 GPIO_PIN_DATA(1, 2 ) /*!< Specify PB.2 Pin Data Input/Output */
#define PB3 GPIO_PIN_DATA(1, 3 ) /*!< Specify PB.3 Pin Data Input/Output */
#define PB4 GPIO_PIN_DATA(1, 4 ) /*!< Specify PB.4 Pin Data Input/Output */
#define PB5 GPIO_PIN_DATA(1, 5 ) /*!< Specify PB.5 Pin Data Input/Output */
#define PB6 GPIO_PIN_DATA(1, 6 ) /*!< Specify PB.6 Pin Data Input/Output */
#define PB7 GPIO_PIN_DATA(1, 7 ) /*!< Specify PB.7 Pin Data Input/Output */
#define PB8 GPIO_PIN_DATA(1, 8 ) /*!< Specify PB.8 Pin Data Input/Output */
#define PB9 GPIO_PIN_DATA(1, 9 ) /*!< Specify PB.9 Pin Data Input/Output */
#define PB10 GPIO_PIN_DATA(1, 10) /*!< Specify PB.10 Pin Data Input/Output */
#define PB11 GPIO_PIN_DATA(1, 11) /*!< Specify PB.11 Pin Data Input/Output */
#define PB12 GPIO_PIN_DATA(1, 12) /*!< Specify PB.12 Pin Data Input/Output */
#define PB13 GPIO_PIN_DATA(1, 13) /*!< Specify PB.13 Pin Data Input/Output */
#define PB14 GPIO_PIN_DATA(1, 14) /*!< Specify PB.14 Pin Data Input/Output */
#define PB15 GPIO_PIN_DATA(1, 15) /*!< Specify PB.15 Pin Data Input/Output */
#define PC0 GPIO_PIN_DATA(2, 0 ) /*!< Specify PC.0 Pin Data Input/Output */
#define PC1 GPIO_PIN_DATA(2, 1 ) /*!< Specify PC.1 Pin Data Input/Output */
#define PC2 GPIO_PIN_DATA(2, 2 ) /*!< Specify PC.2 Pin Data Input/Output */
#define PC3 GPIO_PIN_DATA(2, 3 ) /*!< Specify PC.3 Pin Data Input/Output */
#define PC6 GPIO_PIN_DATA(2, 6 ) /*!< Specify PC.6 Pin Data Input/Output */
#define PC7 GPIO_PIN_DATA(2, 7 ) /*!< Specify PC.7 Pin Data Input/Output */
#define PC8 GPIO_PIN_DATA(2, 8 ) /*!< Specify PC.8 Pin Data Input/Output */
#define PC9 GPIO_PIN_DATA(2, 9 ) /*!< Specify PC.9 Pin Data Input/Output */
#define PC10 GPIO_PIN_DATA(2, 10) /*!< Specify PC.10 Pin Data Input/Output */
#define PC11 GPIO_PIN_DATA(2, 11) /*!< Specify PC.11 Pin Data Input/Output */
#define PC14 GPIO_PIN_DATA(2, 14) /*!< Specify PC.14 Pin Data Input/Output */
#define PC15 GPIO_PIN_DATA(2, 15) /*!< Specify PC.15 Pin Data Input/Output */
#define PD6 GPIO_PIN_DATA(3, 6 ) /*!< Specify PD.6 Pin Data Input/Output */
#define PD7 GPIO_PIN_DATA(3, 7 ) /*!< Specify PD.7 Pin Data Input/Output */
#define PD14 GPIO_PIN_DATA(3, 14) /*!< Specify PD.14 Pin Data Input/Output */
#define PD15 GPIO_PIN_DATA(3, 15) /*!< Specify PD.15 Pin Data Input/Output */
#define PE5 GPIO_PIN_DATA(4, 5 ) /*!< Specify PE.5 Pin Data Input/Output */
#define PF0 GPIO_PIN_DATA(5, 0 ) /*!< Specify PF.0 Pin Data Input/Output */
#define PF1 GPIO_PIN_DATA(5, 1 ) /*!< Specify PF.1 Pin Data Input/Output */
#define PF4 GPIO_PIN_DATA(5, 4 ) /*!< Specify PF.4 Pin Data Input/Output */
#define PF5 GPIO_PIN_DATA(5, 5 ) /*!< Specify PF.5 Pin Data Input/Output */
#define PF6 GPIO_PIN_DATA(5, 6 ) /*!< Specify PF.6 Pin Data Input/Output */
#define PF7 GPIO_PIN_DATA(5, 7 ) /*!< Specify PF.7 Pin Data Input/Output */
#define PF8 GPIO_PIN_DATA(5, 8 ) /*!< Specify PF.8 Pin Data Input/Output */


/*@}*/ /* end of group NUC131_GPIO_EXPORTED_CONSTANTS */


/** @addtogroup NUC131_GPIO_EXPORTED_FUNCTIONS GPIO Exported Functions
@{
*/

/**
* @brief Clear GPIO Pin Interrupt Flag
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @return None
*
* @details Clear the interrupt status of specified GPIO pin.
*/
#define GPIO_CLR_INT_FLAG(port, u32PinMask) ((port)->ISRC = (u32PinMask))

/**
* @brief Disable Pin De-bounce Function
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @return None
*
* @details Disable the interrupt de-bounce function of specified GPIO pin.
*/
#define GPIO_DISABLE_DEBOUNCE(port, u32PinMask) ((port)->DBEN &= ~(u32PinMask))

/**
* @brief Enable Pin De-bounce Function
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @return None
*
* @details Enable the interrupt de-bounce function of specified GPIO pin.
*/
#define GPIO_ENABLE_DEBOUNCE(port, u32PinMask) ((port)->DBEN |= (u32PinMask))

/**
* @brief Disable I/O Digital Input Path
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @return None
*
* @details Disable I/O digital input path of specified GPIO pin.
*/
#define GPIO_DISABLE_DIGITAL_PATH(port, u32PinMask) ((port)->OFFD |= ((u32PinMask)<<16))

/**
* @brief Enable I/O Digital Input Path
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @return None
*
* @details Enable I/O digital input path of specified GPIO pin.
*/
#define GPIO_ENABLE_DIGITAL_PATH(port, u32PinMask) ((port)->OFFD &= ~((u32PinMask)<<16))

/**
* @brief Disable I/O DOUT mask
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @return None
*
* @details Disable I/O DOUT mask of specified GPIO pin.
*/
#define GPIO_DISABLE_DOUT_MASK(port, u32PinMask) ((port)->DMASK &= ~(u32PinMask))

/**
* @brief Enable I/O DOUT mask
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @return None
*
* @details Enable I/O DOUT mask of specified GPIO pin.
*/
#define GPIO_ENABLE_DOUT_MASK(port, u32PinMask) ((port)->DMASK |= (u32PinMask))

/**
* @brief Get GPIO Pin Interrupt Flag
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32PinMask The single or multiple pins of specified GPIO port. \n
* It could be BIT0 ~ BIT15 for PA and PB GPIO port. \n
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port. \n
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port. \n
* It could be BIT5 for PE GPIO port. \n
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* @retval 0 No interrupt at specified GPIO pin
* @retval 1 The specified GPIO pin generate an interrupt
*
* @details Get the interrupt status of specified GPIO pin.
*/
#define GPIO_GET_INT_FLAG(port, u32PinMask) ((port)->ISRC & (u32PinMask))

/**
* @brief Set De-bounce Sampling Cycle Time
*
* @param[in] u32ClkSrc The de-bounce counter clock source. It could be GPIO_DBCLKSRC_HCLK or GPIO_DBCLKSRC_LIRC.
* @param[in] u32ClkSel The de-bounce sampling cycle selection. It could be \n
* GPIO_DBCLKSEL_1, GPIO_DBCLKSEL_2, GPIO_DBCLKSEL_4, GPIO_DBCLKSEL_8, \n
* GPIO_DBCLKSEL_16, GPIO_DBCLKSEL_32, GPIO_DBCLKSEL_64, GPIO_DBCLKSEL_128, \n
* GPIO_DBCLKSEL_256, GPIO_DBCLKSEL_512, GPIO_DBCLKSEL_1024, GPIO_DBCLKSEL_2048, \n
* GPIO_DBCLKSEL_4096, GPIO_DBCLKSEL_8192, GPIO_DBCLKSEL_16384, GPIO_DBCLKSEL_32768.
*
* @return None
*
* @details Set the interrupt de-bounce sampling cycle time based on the debounce counter clock source. \n
* Example: _GPIO_SET_DEBOUNCE_TIME(GPIO_DBCLKSRC_LIRC, GPIO_DBCLKSEL_4). \n
* It's meaning the De-debounce counter clock source is internal 10 KHz and sampling cycle selection is 4. \n
* Then the target de-bounce sampling cycle time is (4)*(1/(10*1000)) s = 4*0.0001 s = 400 us,
* and system will sampling interrupt input once per 400 us.
*/
#define GPIO_SET_DEBOUNCE_TIME(u32ClkSrc, u32ClkSel) (GPIO->DBNCECON = (GPIO_DBNCECON_ICLK_ON_Msk | (u32ClkSrc) | (u32ClkSel)))

/**
* @brief Get GPIO Port IN Data
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
*
* @return The specified port data
*
* @details Get the PIN register of specified GPIO port.
*/
#define GPIO_GET_IN_DATA(port) ((port)->PIN)

/**
* @brief Set GPIO Port OUT Data
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32Data GPIO port data.
*
* @return None
*
* @details Set the Data into specified GPIO port.
*/
#define GPIO_SET_OUT_DATA(port, u32Data) ((port)->DOUT = (u32Data))

/**
* @brief Toggle Specified GPIO pin
*
* @param[in] u32Pin Pxy
*
* @return None
*
* @details Toggle the specified GPIO pint.
*/
#define GPIO_TOGGLE(u32Pin) ((u32Pin) ^= 1)

/**
* @brief Enable External GPIO Interrupt 0
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32Pin The pin of specified GPIO port. \n
* It could be 0 ~ 15 for PA and PB GPIO port. \n
* It could be 0 ~ 3, 6 ~ 11, BIT14 and BIT15 for PC GPIO port. \n
* It could be 6, 7, 14 and BIT15 for PD GPIO port. \n
* It could be 5 for PE GPIO port. \n
* It could be 0, 1 and 4 ~ 8 for PF GPIO port. \n
* @param[in] u32IntAttribs The interrupt attribute of specified GPIO pin. It could be
* GPIO_INT_RISING, GPIO_INT_FALLING, GPIO_INT_BOTH_EDGE, GPIO_INT_HIGH, GPIO_INT_LOW.
*
* @return None
*
* @details This function is used to enable specified GPIO pin interrupt.
*/
#define GPIO_EnableEINT0 GPIO_EnableInt


/**
* @brief Disable External GPIO Interrupt 0
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32Pin The pin of specified GPIO port. \n
* It could be 0 ~ 15 for PA and PB GPIO port. \n
* It could be 0 ~ 3, 6 ~ 11, BIT14 and BIT15 for PC GPIO port. \n
* It could be 6, 7, 14 and BIT15 for PD GPIO port. \n
* It could be 5 for PE GPIO port. \n
* It could be 0, 1 and 4 ~ 8 for PF GPIO port. \n
*
* @return None
*
* @details This function is used to enable specified GPIO pin interrupt.
*/
#define GPIO_DisableEINT0 GPIO_DisableInt


/**
* @brief Enable External GPIO Interrupt 1
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32Pin The pin of specified GPIO port. \n
* It could be 0 ~ 15 for PA and PB GPIO port. \n
* It could be 0 ~ 3, 6 ~ 11, BIT14 and BIT15 for PC GPIO port. \n
* It could be 6, 7, 14 and BIT15 for PD GPIO port. \n
* It could be 5 for PE GPIO port. \n
* It could be 0, 1 and 4 ~ 8 for PF GPIO port. \n
* @param[in] u32IntAttribs The interrupt attribute of specified GPIO pin. It could be
* GPIO_INT_RISING, GPIO_INT_FALLING, GPIO_INT_BOTH_EDGE, GPIO_INT_HIGH, GPIO_INT_LOW.
*
* @return None
*
* @details This function is used to enable specified GPIO pin interrupt.
*/
#define GPIO_EnableEINT1 GPIO_EnableInt


/**
* @brief Disable External GPIO Interrupt 1
*
* @param[in] port GPIO port. It could be PA, PB, PC, PD, PE or PF.
* @param[in] u32Pin The pin of specified GPIO port. \n
* It could be 0 ~ 15 for PA and PB GPIO port. \n
* It could be 0 ~ 3, 6 ~ 11, BIT14 and BIT15 for PC GPIO port. \n
* It could be 6, 7, 14 and BIT15 for PD GPIO port. \n
* It could be 5 for PE GPIO port. \n
* It could be 0, 1 and 4 ~ 8 for PF GPIO port. \n
*
* @return None
*
* @details This function is used to enable specified GPIO pin interrupt.
*/
#define GPIO_DisableEINT1 GPIO_DisableInt


void GPIO_SetMode(GPIO_T *port, uint32_t u32PinMask, uint32_t u32Mode);
void GPIO_EnableInt(GPIO_T *port, uint32_t u32Pin, uint32_t u32IntAttribs);
void GPIO_DisableInt(GPIO_T *port, uint32_t u32Pin);


/*@}*/ /* end of group NUC131_GPIO_EXPORTED_FUNCTIONS */

/*@}*/ /* end of group NUC131_GPIO_Driver */

/*@}*/ /* end of group NUC131_Device_Driver */

#ifdef __cplusplus
}
#endif

#endif //__GPIO_H__

/*** (C) COPYRIGHT 2014 Nuvoton Technology Corp. ***/

 

聯系方式0755-82591179

郵箱:ivy@yingtexin.net

地址:深圳市南山區桃源街道平山社區平山一路2號南山云谷創業園二期11棟410-411

久久精品99久久_亚洲一区二区综合_狠狠色伊人亚洲综合成人_亚洲综合爱爱久久网
内射国产内射夫妻免费频道| 青青草原国产免费| 黄色片免费网址| 男女激情无遮挡| 中国女人做爰视频| 在线免费看v片| 天天干天天综合| 成人三级视频在线播放| 无码av天堂一区二区三区| 中文字幕第66页| 天堂在线中文在线| 九热视频在线观看| 欧美韩国日本在线| 欧美 日韩精品| 无码中文字幕色专区| 黄色一级大片免费| 国产人妻人伦精品| 国产精品一二三在线观看| 午夜在线视频免费观看| 亚洲欧美天堂在线| 波多野结衣网页| 熟女视频一区二区三区| 福利在线小视频| 久久久久福利视频| 蜜臀av性久久久久蜜臀av| 三级网在线观看| 国产精品无码电影在线观看| 成人午夜免费剧场| 日本男女交配视频| 精品人妻人人做人人爽| 僵尸世界大战2 在线播放| 久久成人福利视频| 国产福利视频在线播放| 91精品无人成人www| 五月花丁香婷婷| 日本丰满少妇黄大片在线观看| www亚洲国产| 国产亚洲黄色片| 国产第一页视频| 伊人国产在线视频| 在线观看免费视频污| 久久久久久久久网| 欧美视频免费播放| 欧美一级小视频| 国产毛片久久久久久国产毛片| 日韩中文字幕在线视频观看| 黑鬼大战白妞高潮喷白浆| 亚洲 国产 图片| 欧美精品卡一卡二| 九九热在线免费| 粉嫩av一区二区三区天美传媒| 99热在线这里只有精品| www.超碰97.com| 免费特级黄色片| 九九热免费在线观看| 成人免费在线视频播放| 韩国一区二区av| 中文字幕免费高| aaa毛片在线观看| 国风产精品一区二区| 日本在线视频www| 99久re热视频精品98| 可以免费在线看黄的网站| 天堂v在线视频| 人人爽人人av| 欧美成人精品免费| 午夜啪啪小视频| 欧美视频免费播放| 国产精品12345| 超碰超碰超碰超碰超碰| 国产精品一区二区羞羞答答| 青青视频免费在线观看| 91精品999| 手机在线看福利| 成人在线观看黄| 欧美一区二区激情| 二级片在线观看| 中文字幕中文在线| 91av俱乐部| 黄色片视频在线免费观看| 激情视频小说图片| caoporm在线视频| 国产九九热视频| 91小视频网站| av网站在线不卡| 任你操这里只有精品| 播放灌醉水嫩大学生国内精品| 国内少妇毛片视频| 999久久欧美人妻一区二区| 五月天男人天堂| 黄色网络在线观看| av电影一区二区三区| 99精品视频网站| 老司机午夜免费福利视频| www亚洲国产| 波多野结衣激情| 欧美大片免费播放| www.日本三级| 和岳每晚弄的高潮嗷嗷叫视频| h无码动漫在线观看| 久久久久久久香蕉| 91成人在线观看喷潮教学| 男人插女人视频在线观看| 日韩av新片网| 成年人在线看片| 高潮一区二区三区| 无码人妻精品一区二区三区99v| 裸体大乳女做爰69| 免费看欧美一级片| 茄子视频成人免费观看| 天天爽夜夜爽一区二区三区| 网站在线你懂的| 欧美国产视频一区| 免费在线观看的av网站| 国产喷水theporn| 超薄肉色丝袜足j调教99| 老太脱裤子让老头玩xxxxx| 97xxxxx| 中文 日韩 欧美| 丰满少妇大力进入| 精品亚洲一区二区三区四区| 四虎成人在线播放| 日韩少妇内射免费播放18禁裸乳| 国产精品人人妻人人爽人人牛| 国产三级生活片| 精品视频在线观看一区| 亚洲精品综合在线观看| 亚洲乱码日产精品bd在线观看| 亚洲成熟丰满熟妇高潮xxxxx| 亚洲制服在线观看| 成年人在线看片| 精品人妻大屁股白浆无码| 四季av一区二区| 久久国产午夜精品理论片最新版本| 日本在线观看免费视频| 污污污污污污www网站免费| 免费看a级黄色片| 成人性免费视频| 波多野结衣激情| 自拍偷拍21p| 免费日韩中文字幕| 日韩av高清在线看片| 裸体大乳女做爰69| 思思久久精品视频| 老头吃奶性行交视频| 免费看国产一级片| 国产在线视频综合| 人人妻人人澡人人爽精品欧美一区| 三级4级全黄60分钟| 成人黄色av片| 久久艹国产精品| 欧美 国产 精品| 久久出品必属精品| www.cao超碰| 亚洲小视频网站| 一本一道久久a久久综合蜜桃| 日韩免费毛片视频| 日批视频在线免费看| 黄页免费在线观看视频| 国产va亚洲va在线va| 日韩精品久久一区二区| 特级黄色录像片| 男女裸体影院高潮| 久久香蕉视频网站| 欧美极品少妇无套实战| 久草免费福利在线| 日韩精品xxxx| 欧美大片在线播放| 99精品视频在线看| 日本在线观看免费视频| 天天操天天摸天天爽| 日本成人中文字幕在线| 在线观看日本一区二区| 色一情一区二区| 国产免费色视频| 免费人成在线观看视频播放| 久久亚洲精品无码va白人极品| 国产无限制自拍| 中文字幕无码不卡免费视频| 亚洲精品自拍网| 伊人网在线免费| 黄色片视频在线免费观看| 人妻丰满熟妇av无码区app| 五月天av在线播放| 国产乱子伦精品视频| 精品欧美一区免费观看α√| 久久久精品麻豆| 一级特黄妇女高潮| www.亚洲天堂网| 午夜福利123| 成年人午夜免费视频| 美女黄色片视频| 黄色成人在线免费观看| 欧美精品色婷婷五月综合| jizz18女人| 久久精品国产sm调教网站演员| 成人黄色一区二区| h无码动漫在线观看| 九九视频精品在线观看| 无码人妻精品一区二区蜜桃百度 |