Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在YTM32B1LE05H0MLHT芯片中读取PTC14引脚电平需要右移多少位&那个引脚号
PINS_DRV_ReadPin(GPIOC, (1<<14));
不应该是右移?怎么是左移
zzr12345 用这个read pins是读整组GPIOC的pin脚状态,右移获取单个pin脚状态:PINS_DRV_ReadPins(GPIOC)>>14&(0x01U);
ysog 这个read pin可以直接读取某个特定引脚电平,直接填写参数即可,不需要偏移:PINS_DRV_ReadPin(GPIOC, 14);
快速上手云途开发生态
发帖前请查看
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...