📄 cpcore.c
字号:
/*****************************************************************************\* CANpie ** ** File : cpcore.c ** Description : CANpie core functions ** Author : Uwe Koppe ** e-mail : koppe@microcontrol.net ** ** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ** ** History ** Vers. Date Comment Aut. ** ----- ---------- --------------------------------------------- ---- ** 0.1 11.02.1999 Initial version UK ** 0.2 29.04.1999 Changed structures, new data type definitions UK ** 0.3 04.09.1999 Adaption to version 0.3 of the CANpie Doc. UK ** 0.4 18.01.2000 Adaption to Keil C compiler UK ** 0.5 - no changes - ** 0.6 15.06.2000 set to CANpie release 0.6 UK ** 0.7 02.11.2000 new functions for buffer operations UK ** 0.8 15.02.2001 set to CANpie release 0.8 UK ** *\*****************************************************************************/#include "cpconfig.h"#include "cpcore.h"#include "cpfifo.h"#include "cpfilter.h"#include "cpmacro.h"/*-------------------------------------------------------------------** Global variables used for the core functions***/static _U08 CpVar_CAN_Status[CP_CHANNEL_MAX];_U08 (* CpInt_ReceiveHandler[CP_CHANNEL_MAX] )(CpStruct_CAN *);_U08 (* CpInt_TransmitHandler[CP_CHANNEL_MAX])(CpStruct_CAN *);_U08 (* CpInt_ErrorHandler[CP_CHANNEL_MAX] )(_U08);//-------------------------------------------------------------------// the 碈pVar_InitFlag
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -