includes.h

来自「用iAR编写的AD转换程序」· C头文件 代码 · 共 42 行

H
42
字号
#pragma language=extended

#ifndef ENABLE_BIT_DEFINITIONS
#define ENABLE_BIT_DEFINITIONS
// Enable the bit definitions in the iom16.h file
#endif
#include <iom16.h>
#include <ina90.h>

#define  UART_BEGIN_STX      0xAA
#define  UART_END_STX        0xFF
#define  RX_BUFFER_SIZE        6
#define  TX_BUFFER_SIZE        10

#define  AD_BUF_SIZE           3

#define Gate1    PB4 
#define Gate2    PB5
#define Gate3    PB6
#define Gate4    PB7
#define DispClk  PC6
#define DispData PC7 

#define  UART_CHANGE_PWM_EN    0
#define  AD_CHANGE_PWM_EN      1

#define  COLOR_BLACK     0                       /* VT102 Color Codes                                  */
#define  COLOR_RED       1
#define  COLOR_GREEN     2
#define  COLOR_BROWN     3
#define  COLOR_BLUE      4
#define  COLOR_MAGENTA   5
#define  COLOR_CYAN      6
#define  COLOR_WHITE     7


typedef  unsigned char uchar;
typedef  unsigned int  uint;



⌨️ 快捷键说明

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