20260324
This commit is contained in:
37
IAPV1.1/Driver/usart/usart5.h
Normal file
37
IAPV1.1/Driver/usart/usart5.h
Normal file
@ -0,0 +1,37 @@
|
||||
#ifndef _usart5_H
|
||||
#define _usart5_H
|
||||
#include "bsp.h"
|
||||
#include "general_type.h"
|
||||
#include "stm32l1xx_usart.h"
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined ( __CC_ARM )
|
||||
#pragma anon_unions
|
||||
#endif
|
||||
|
||||
#define Usart5_MAX_RECV_LEN 100 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>
|
||||
|
||||
void Usart5_Configuration(u32 baund);
|
||||
void Usart5_ReceiveBuff_Clear(void);
|
||||
void u5_printf(char* fmt,...);
|
||||
typedef struct STRUCT_Usart5_Fram //<2F><><EFBFBD><EFBFBD>֡<EFBFBD>ṹ<EFBFBD><E1B9B9>
|
||||
{
|
||||
char Usart5_RX_BUF[Usart5_MAX_RECV_LEN];
|
||||
union
|
||||
{
|
||||
__IO u16 InfAll;
|
||||
struct
|
||||
{
|
||||
__IO u16 FramLength :15; // 14:0
|
||||
__IO u16 FramFinishFlag :1; // 15
|
||||
}InfBit;
|
||||
};
|
||||
|
||||
}Usart5_Fram_Record_Struct;
|
||||
|
||||
extern Usart5_Fram_Record_Struct Usart5_Fram_Record_Structs;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user