f326_usb0_uart.h

来自「基于F326单片机的RS232转USB程序」· C头文件 代码 · 共 37 行

H
37
字号
//-----------------------------------------------------------------------------
// F326_USB0_Uart.h
//-----------------------------------------------------------------------------
//
// Header file for mouse routines.
//

#ifndef  _UART_H_
#define  _UART_H_

// WORD type definition, for KEIL Compiler
#ifndef _WORD_DEF_                     // Compiler Specific, written
                                       // for Little Endian
#define _WORD_DEF_

typedef union {unsigned int i; unsigned char c[2];} WORD;

#define LSB 1                          // All words sent to and received
                                       //from the host are
#define MSB 0                          // little endian, this is switched
                                       // by software when neccessary.
                                       // These sections of code have been
                                       // marked with "Compiler Specific"
                                       // as above for easier modification

#endif   /* _WORD_DEF_ */

extern unsigned char Uart_Buffer[10];

extern WORD Map_Buffer[2];

extern unsigned char UartDataOK;

// void Uart0SendString(unsigned char *StrHead,unsigned char Number);


#endif  /* _UART_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?