上传文件至 /

This commit is contained in:
2025-07-05 07:59:41 +08:00
parent 9f0b84b83d
commit 625e70432e
5 changed files with 1430 additions and 0 deletions

127
UART.H Normal file
View File

@@ -0,0 +1,127 @@
//****************************************************************************
// @Module UART (Serial Interface)
// @Filename UART.H
// @Project CL2.0.dav
//----------------------------------------------------------------------------
// @Controller Infineon XC886CLM-8FF
//
// @Compiler Keil
//
// @Codegenerator 1.3
//
// @Description: This file contains all function prototypes and macros for
// the UART module.
//
//----------------------------------------------------------------------------
// @Date 2024/12/12 19:56:03
//
//****************************************************************************
// USER CODE BEGIN (UART_Header,1)
// USER CODE END
#ifndef _UART_H_
#define _UART_H_
//****************************************************************************
// @Project Includes
//****************************************************************************
// USER CODE BEGIN (UART_Header,2)
// USER CODE END
//****************************************************************************
// @Macros
//****************************************************************************
// USER CODE BEGIN (UART_Header,3)
// USER CODE END
//****************************************************************************
// @Defines
//****************************************************************************
// USER CODE BEGIN (UART_Header,4)
// USER CODE END
//****************************************************************************
// @Typedefs
//****************************************************************************
// USER CODE BEGIN (UART_Header,5)
// USER CODE END
//****************************************************************************
// @Imported Global Variables
//****************************************************************************
// USER CODE BEGIN (UART_Header,6)
// USER CODE END
//****************************************************************************
// @Global Variables
//****************************************************************************
// USER CODE BEGIN (UART_Header,7)
// USER CODE END
//****************************************************************************
// @Prototypes Of Global Functions
//****************************************************************************
void UART_vInit(void);
ubyte UART_ubGetData8(void);
void UART_vSendData8(ubyte ubData);
// USER CODE BEGIN (UART_Header,8)
// USER CODE END
//****************************************************************************
// @Macro UART_vRxEnable()
//
//----------------------------------------------------------------------------
// @Description This macro releases the receive function of the UART by
// setting bit REN.
//
//----------------------------------------------------------------------------
// @Returnvalue None
//
//----------------------------------------------------------------------------
// @Parameters None
//
//----------------------------------------------------------------------------
// @Date 2024/12/12
//
//****************************************************************************
#define UART_vRxEnable() REN = 1
//****************************************************************************
// @Interrupt Vectors
//****************************************************************************
#define UARTINT 4
// USER CODE BEGIN (UART_Header,9)
// USER CODE END
#endif // ifndef _UART_H_