欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: STM32F1_F4串口通信例程 [打印本頁]

作者: zhujunlin    時間: 2019-5-17 18:06
標題: STM32F1_F4串口通信例程
#include "SysTick.h"
#include "usart.h"
#include "led.h"

int main()
{         
        u8 i;
        u16 data=12344;
        float f=12.12;
        char ch[]="Hello world!";
        Systick_Init(72);
        NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
        USART1_Init(9600);
        LED_Init();
        
        while(1)
        {
                i++;
                if(i%20==0)
                {
                        led0=!led0;
                        printf("輸出整型為:%d\n",data);
                        printf("輸出整型為:%0.2f\n",f);
                        printf("輸出整型為:%s\n",ch);
                }
                delay_ms(10);               
        }
}





STM32F1-串口通信實驗.7z

188.97 KB, 下載次數: 29, 下載積分: 黑幣 -5

串口實驗詳細例程






歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1