(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin); /** * @} */ /** @addtogroup GPIO_Exported_Functions_Group2 IO operation functions * @{ */ /* IO operation functions ***/ GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); 如何使用呢? 代码语言:javascript 代码...
voidHAL_GPIO_Init(GPIO_TypeDef*GPIOx,GPIO_InitTypeDef*GPIO_Init); voidHAL_GPIO_DeInit(GPIO_TypeDef*GPIOx,uint32_tGPIO_Pin); /** *@} */ /**@addtogroupGPIO_Exported_Functions_Group2IOoperationfunctions *@{ */ /*IOoperationfunctions***/ GPIO_PinStateHAL_GPIO_ReadPin(GPIO_TypeDef*GPIOx,...
voidHAL_GPIO_Init(GPIO_TypeDef*GPIOx,GPIO_InitTypeDef*GPIO_Init); voidHAL_GPIO_DeInit(GPIO_TypeDef*GPIOx,uint32_tGPIO_Pin); /** *@} */ /**@addtogroupGPIO_Exported_Functions_Group2IOoperationfunctions *@{ */ /*IOoperationfunctions***/ GPIO_PinStateHAL_GPIO_ReadPin(GPIO_TypeDef*GPIOx,...
uint32_t u32PinMask, uint32_t u32Mode);voidGPIO_EnableInt(GPIO_T *port, uint32_t u32Pin, uint32_t u32IntAttribs);voidGPIO_DisableInt(GPIO_T *port, uint32_t u32Pin);/*@}*//*end of group GPIO_EXPORTED_FUNCTIONS*//*
#ifdef USE_FULL_ASSERT#defineassert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))/*Exported functions ---*/voidassert_failed(uint8_t*file, uint32_t line);#else#defineassert_param(expr) ((void)0) 这是和有意思的调试程序,用于设计者debug的东西...
(INTERFACE) == GPIO_ETH_MediaInterface_RMII)) /** * @} */ /** * @} */ /** @defgroup GPIO_Exported_Macros //导出 宏 * @{ */ /** * @} */ /** @defgroup GPIO_Exported_Functions * @{ */ void GPIO_DeInit(GPIO_TypeDef* GPIOx); //取消初始化 void GPIO_AFIODeInit(void);...
If the GPIO has been applied by other drivers, it cannot be exported successfully, and subsequent read and write operations cannot be performed. Involving the multiplexing of IO functions, if the function of the pin is already GPIO, the above method can be used; otherwise, the pinctrl state ...
get_functions_count 返回pin controller支持的function的数目 get_function_name 给定一个selector(index),获取指定function的name get_function_groups 给定一个selector(index),获取指定function的pin groups信息 set_mux 将指定的pin group(group_selector)设置为指定的function(func_selector) struct pinconf_ops *...
How to define which functions of GPIO can be reused, and how to switch the functions while running? I2C4 is taken as an example to give a brief introduction. You can learn from the specification table, the functions of I2C4_SDA and I2C4_SCL are defined as follows: In /kernel/arch/arm...
1 #define FLAG_EXPORT 2 /* protected by sysfs_lock */ #define FLAG_SYSFS 3 /* exported via...