stm32 GPIO原理: 输入和输出控制

<pre name="code" class="html">#include "stm32f10x.h" int main(void) { //1.PA.0 工做在推揽输出,50MHZ; PA.8输入 浮空输入 GPIOA->CRL=0X03; GPIOA->CRH=0X04; //2. PA.0 输出 = PA.8输入 while(1){ if((GPIOA-
相关文章
相关标签/搜索