This commit is contained in:
2025-06-18 09:08:17 +08:00
commit 7999439a8f
363 changed files with 313769 additions and 0 deletions

38
SYSTEM/usart/usart.h Normal file
View File

@ -0,0 +1,38 @@
#ifndef __USART_H
#define __USART_H
#include "stdio.h"
#include "sys.h"
//////////////////////////////////////////////////////////////////////////////////
//???????????????<3F><>????????????????????????<3F><>????
//ALIENTEK STM32??????
//????1?????
//???????@ALIENTEK
//???????:www.openedv.com
//???????:2012/8/18
//?<3F><>??V1.5
//??????<3F><>?????????
//Copyright(C) ?????????????????????? 2009-2019
//All rights reserved
//********************************************************************************
//V1.3??????
//???????????????????????????.
//???????printf?????
//??????????????????.
//??????printf?????????????bug
//V1.4??????
//1,??????????IO??bug
//2,?????USART_RX_STA,??????????????????2??14?<3F><>?
//3,??????USART_REC_LEN,??????<3F><>???????????????????(??????2??14?<3F><>?)
//4,?????EN_USART1_RX???????
//V1.5??????
//1,???????UCOSII?????
#define USART_REC_LEN 200 //??????????????? 200
#define EN_USART1_RX 1 //????1??/?????0??????1????
extern char USART_RX_BUF[USART_REC_LEN]; //???????,???USART_REC_LEN?????.????????<3F><>?
extern u16 USART_RX_STA; //?????????
//????????<3F><>??????????????????
void uart_init(u32 bound);
#endif