Files
CMS79F5335_Demo/范例程序(C语言)/IH-CMS79F53X5-C-V1.0/__REL_IhDebug.h
2026-10-19 15:33:00 +08:00

56 lines
2.6 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**************************************************************************
**************************************************************************/
#ifndef _REL_IHDEBUG_
#define _REL_IHDEBUG_
#if _MODE_IHDEBUG_
/**************************************************************************
--------------------------------- 常量定义 --------------------------------
**************************************************************************/
#define C_IhDebug_Baudrate 9600 //波特率(最大支持波特率为9600)
//-------------------------------------------------------------------------
#define C_IhDebug_SendTypeID 0 //发送数据类型ID
#define C_IhDebug_SendCntSum 15 //一共需要发送结构体个数
#define C_IhDebug_SendCntOnce 2 //一次循环最多发送结构体个数
//*************************************************************************
const unsigned char REL_IhDebug_Baudrate = 1000000 / C_IhDebug_Baudrate - 1;
//-------------------------------------------------------------------------
const unsigned char REL_IhDebug_SendTypeID = C_IhDebug_SendTypeID;
const unsigned char REL_IhDebug_SendCntOnce = C_IhDebug_SendCntOnce;
#if (C_IhDebug_SendCntSum % C_IhDebug_SendCntOnce)
const unsigned char REL_IhDebug_PackIDX_Max = C_IhDebug_SendCntSum / C_IhDebug_SendCntOnce;
const unsigned char REL_IhDebug_PackSend_CntFinal = C_IhDebug_SendCntSum % C_IhDebug_SendCntOnce;
#else
const unsigned char REL_IhDebug_PackIDX_Max = (C_IhDebug_SendCntSum - 1) / C_IhDebug_SendCntOnce;
const unsigned char REL_IhDebug_PackSend_CntFinal = C_IhDebug_SendCntOnce;
#endif
/**************************************************************************
--------------------------------- 变量定义 --------------------------------
**************************************************************************/
volatile unsigned int PPGTMR_TestPPG;
volatile unsigned int SlopeCurr_Test;
//-------------------------------------------------------------------------
volatile bit B_Test_PGA;
volatile bit B_Test_CM_RA0;
volatile bit B_Test_CM_RB7;
volatile bit B_Test_PanCheck;
volatile bit B_Test_PPGOut;
volatile bit B_Test_SlopeCurr;
volatile bit B_ErrorCheck_Dis;
volatile bit B_LosePanCheck_Dis;
/**************************************************************************
--------------------------------- 函数声明 --------------------------------
**************************************************************************/
extern void REL_IhDebug_Main();
extern void REL_IhDebug_Int();
/**************************************************************************
**************************************************************************/
#endif
#endif