stm32
红桃Jk
锄禾日当午,code好辛苦
展开
-
stm32 普通io模拟串口程序
本程序中使用GPIOB.5-作为TX,,,GPIOD.6作为RX并将这两个IO口接在led上,能够查看发送和接受的数据状态。使用tim3作为定时器中断,本程序中将波特率设置为 1bps 的原因是想从led灯的状态读取发送和接受的数据下面为我的程序#include <stdio.h>#include "stm32f10x.h"#include "mis...原创 2019-03-09 15:00:09 · 1603 阅读 · 0 评论 -
stm32 IO、定时器基础配置
#include <stdio.h>#include "stm32f10x.h"#include "misc.h" //中断优先级配置文件#include "stm32f10x_tim.h"//定时器配置文件void RCC_Configuration(void); //系统时钟启动使能void GPIO_Configuration(void); //GPIO配...原创 2019-03-09 15:07:44 · 783 阅读 · 0 评论