說明:每發送一次數據,LED等閃爍一下本文引用地址:http://www.104case.com/article/201611/318055.htm/**說明:*PA0:KEY1;PA1:KEY2;*PA2:LED1;PA3:LED2;*PA9:USART1_TX;PA10:USART1_RX*/#include "stm32f10x.h"#include "stm32f10x_rcc.h"#include "stm32f10x_gpio.h"#include "stm32f10x_usart.h"#include "system_stm32f10x.h"#include "stdio.h"#define PUTCHAR_PROTOTYPE int __io_putchar(int ch) void RCC_Configuration(void);void GPIO_Configuration(void); void delay_ms(u16 time);void USART_Configuration(void);int main(){SystemInit();RCC_Configuration();GPIO_Configuration(); USART_Configuration();while(1) //循環逐字輸出,到結束字
主站蜘蛛池模板:
喜德县|
凯里市|
连城县|
乐东|
安吉县|
疏勒县|
翁源县|
汉沽区|
云梦县|
古蔺县|
旬阳县|
丰原市|
泰来县|
无为县|
儋州市|
万源市|
临高县|
巨野县|
星子县|
瑞安市|
山西省|
南投市|
营山县|
佛山市|
武邑县|
西乡县|
莱州市|
扎兰屯市|
化州市|
观塘区|
青龙|
内黄县|
昌宁县|
广丰县|
星座|
永康市|
玉溪市|
台南县|
澎湖县|
尚志市|
绩溪县|