MCPcopy Create free account
hub / github.com/Seeed-Studio/Seeed_Arduino_CAN / init

Method init

src/can-serial.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void Can232::init(INT8U defaultCanSpeed, const INT8U clock) {
54 dbg_begin(LW232_DEFAULT_BAUD_RATE); // logging through software serial
55 dbg1("CAN ASCII. Welcome to debug");
56
57 instance()->lw232CanSpeedSelection = defaultCanSpeed;
58 instance()->lw232McpModuleClock = clock;
59 instance()->initFunc();
60}
61
62
63MCP_CAN* Can232::MCP_OBJECT = NULL;

Callers

nothing calls this directly

Calls 1

initFuncMethod · 0.80

Tested by

no test coverage detected