📄 sci_cfg.h
字号:
/*
*********************************************************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -