帮楼主找到了,库函数里有的,就是GPIO的库函数。
/**
* [url=home.php?mod=space&uid=247401]@brief[/url] 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.
* It could be BIT0 ~ BIT15 for PA and PB GPIO port.
* It could be BIT0 ~ BIT3, BIT6 ~ BIT11, BIT14 and BIT15 for PC GPIO port.
* It could be BIT6, BIT7, BIT14 and BIT15 for PD GPIO port.
* It could be BIT5 for PE GPIO port.
* It could be BIT0, BIT1 and BIT4 ~ BIT8 for PF GPIO port.
*
* [url=home.php?mod=space&uid=266161]@return[/url] None
*
* [url=home.php?mod=space&uid=1543424]@Details[/url] Disable I/O digital input path of specified GPIO pin.
*/
#define GPIO_DISABLE_DIGITAL_PATH(port, u32PinMask) ((port)->OFFD |= ((u32PinMask)<<16))
|