中级会员
 
- 积分
- 228
- 金钱
- 228
- 注册时间
- 2019-7-14
- 在线时间
- 85 小时
|

楼主 |
发表于 2022-7-19 08:40:09
|
显示全部楼层
/**
* @brief Writes data to the specified GPIO data port.
* @param GPIOx: where x can be (A..K) to select the GPIO peripheral for STM32F405xx/407xx and STM32F415xx/417xx devices
* x can be (A..I) to select the GPIO peripheral for STM32F42xxx/43xxx devices.
* x can be (A, B, C, D and H) to select the GPIO peripheral for STM32F401xx devices.
* @param PortVal: specifies the value to be written to the port output data register.
* @retval None
*/
void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal)
{
/* Check the parameters */
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
GPIOx->ODR = PortVal;
}
这个是不是就不行了啊?该怎么改啊,不想自己一位一位操作,好多口的 |
|