1、GPIO 电灯 推挽输出 PB5
2、GPIO 按键 浮空输入 PA0
3、写IO高电平 HAL_GPIO_WritePin(GPIOB,GPIO_Pin_5,1);
4、读取IO电平 HAL_GPIO_ReadPin(GPIOA,GPIO_Pin_5);
5、外部中断把GPIO设为EXTI_Lin 然后写中断处理函数,stm32f10x.in.c——>EXTIO_IRQHadler(){};
6、串口,发:HAL_uART_Transmit(&huart,"ABC",3(字节数),1000(超时时间));7、串口,收:HAL_UART_Receive(&huart,A(定义变量函数),10(字节数),1000(超时时间));8、延时函数:HAL_Delay(100);