標題:
STM32移植UCOSIII基礎(chǔ)工程源碼
[打印本頁]
作者:
蒼穹問道者
時間:
2019-2-5 20:36
標題:
STM32移植UCOSIII基礎(chǔ)工程源碼
STM32移植UCOSIII基礎(chǔ)工程
單片機源程序如下:
#include "sys.h"
#include "delay.h"
#include "led.h"
#include "usart.h"
#include "key.h"
#include "i2c.h"
#include "24xx.h"
#include "dma_mm.h"
#include "dma_mp.h"
//extern const uint32_t aSRC_Const_Buffer[32];
//extern uint32_t aDST_Buffer[32];
extern uint8_t SendBuff[5000];
int main()
{
// uint8_t TranslateStatus;
// uint8_t Len=32;
// uint8_t le=0;
uint32_t i;
delay_init();
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
LEDInit();
USART1_Init(115200);
KEY_Init();
//DMA_MM_Init();
DMA_MP_Init();
printf("這是我的DMA實驗\r\n");
for ( i=0; i<5000; i++)
{
SendBuff[i] = 'P';
if(i%100==0)
{
printf("\r\n");
}
}
USART_DMACmd(USART1,USART_DMAReq_Tx,ENABLE);
while(1)
{
}
}
復(fù)制代碼
所有資料51hei提供下載:
固件庫模板創(chuàng)建 -點亮LED.7z
(564.65 KB, 下載次數(shù): 21)
2019-2-6 01:41 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1