sci_cfg.h
来自「ucosII在TMS320LF2407成功移植的源代码」· C头文件 代码 · 共 45 行
H
45 行
/*
*********************************************************************************************************
* CONSTANTS
*********************************************************************************************************
*/
#ifndef _SCI_CFG_H_
#define _SCI_CFG_H_
//#include "includes.h"
/*
*********************************************************************************************************
* CONSTANTS
*********************************************************************************************************
*/
#ifndef NUL
#define NUL 0x00
#endif
/* ERROR CODES */
#define COMM_NO_ERR 0 /* Function call was successful */
#define COMM_RX_EMPTY 2 /* Rx buffer is empty, no character available */
#define COMM_TX_FULL 3 /* Tx buffer is full, could not deposit character */
#define COMM_TX_EMPTY 4 /* If the Tx buffer is empty. */
#define COMM_RX_TIMEOUT 5 /* If a timeout occurred while waiting for a character*/
#define COMM_TX_TIMEOUT 6 /* If a timeout occurred while waiting to send a char.*/
#define COMM_PARITY_NONE 0 /* Defines for setting parity */
#define COMM_PARITY_ODD 1
#define COMM_PARITY_EVEN 2
#define HIGH_PRIORITY 0
#define LOW_PRIORITY 1
#define COMM_RX_BUF_SIZE 64 /* Number of characters in Rx ring buffer */
#define COMM_TX_BUF_SIZE 64 /* Number of characters in Tx ring buffer */
//#define OS_ENTER_CRITICAL() asm(" SETC INTM");
//#define OS_EXIT_CRITICAL() asm(" CLRC INTM");
#define MULTITASK 1
#endif /* End of _SCI_CFG_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?