📄 user.c
字号:
/*******************************************************************************
User functions
*******************************************************************************/
#include <p18cxxx.h>
#include "CANopDriver.h"
#include "CANopErrors.h" //header may be used for user defined errors
/* Read NoddeID and bitrate ***************************************************/
//return values should be read from DIP switches instead from Object Dictionary
unsigned char ReadNodeID(void){
return ODE_CANnodeID;
}
unsigned char ReadBitRate(void){
return ODE_CANbitRate;
}
/* Intialization at node reset ************************************************/
void User_InitResetNode(void){
}
/* Intialization at communication reset ***************************************/
void User_InitResetComm(void){
}
/* Execution from main(), slow, must be nonblocking ***************************/
void User_Main(void){
}
/* Timer function, executed every 1ms from low isr ****************************/
void User_1msISR(void){
}
/* User High Interrupt function ***********************************************/
#pragma interrupt User_IsrHigh
void User_IsrHigh(void){
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -