mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-07-27 19:55:59 +00:00
Move: rename CAN232 api init() to attach()
This commit is contained in:
@@ -61,7 +61,7 @@ void Can232::init(INT8U defaultCanSpeed, const INT8U clock) {
|
|||||||
|
|
||||||
MCP_CAN* Can232::MCP_OBJECT = NULL;
|
MCP_CAN* Can232::MCP_OBJECT = NULL;
|
||||||
|
|
||||||
void Can232::init(MCP_CAN *CAN) {
|
void Can232::attach(MCP_CAN *CAN) {
|
||||||
MCP_OBJECT = CAN;
|
MCP_OBJECT = CAN;
|
||||||
#define lw232CAN (*MCP_OBJECT)
|
#define lw232CAN (*MCP_OBJECT)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ class Can232
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void init(INT8U defaultCanSpeed = LW232_DEFAULT_CAN_RATE, const INT8U clock = LW232_DEFAULT_CLOCK_FREQ);
|
static void init(INT8U defaultCanSpeed = LW232_DEFAULT_CAN_RATE, const INT8U clock = LW232_DEFAULT_CLOCK_FREQ);
|
||||||
static void init(MCP_CAN *can);
|
static void attach(MCP_CAN *can);
|
||||||
static void setFilter(INT8U (*userFunc)(INT32U));
|
static void setFilter(INT8U (*userFunc)(INT32U));
|
||||||
static void loop();
|
static void loop();
|
||||||
static void serialEvent();
|
static void serialEvent();
|
||||||
|
|||||||
Reference in New Issue
Block a user