[开发工具] HAL库GIOP驱动库函数

[复制链接]
 楼主| jf101 发表于 2023-11-13 18:13 | 显示全部楼层 |阅读模式
了解了相关STM32CubeMX相关使用后下面就是针对HAL库函数进行相关学习使用,如HAL_GPIO_ReadPin()函数,就是读取IO状态的函数;
HAL_GPIO_ReadPin
Function Name GPIO_PinState HAL_GPIO_ReadPin (GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin)
Function Description Reads the specified input port pin.
Parameters GPIOx: where x can be (A..G depending on device used) to
select the GPIO peripheral

GPIO_Pin: specifies the port bit to read. This parameter can
be GPIO_PIN_x where x can be (0..15).
Return values The input port pin value.

下面就把HAL库GPIO库函数分享给大家!
GPIOAPI.pdf (340.45 KB, 下载次数: 0)
中国龙芯CDX 发表于 2023-12-28 10:46 | 显示全部楼层
HAL库GPIO库函数直接API就可以使用了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

255

主题

1848

帖子

3

粉丝
快速回复 在线客服 返回列表 返回顶部