Skip to content

Commit

Permalink
Merge pull request coryjfowler#25 from slaff/fix/spelling-manual-fixes
Browse files Browse the repository at this point in the history
Manual spelling fixes.
  • Loading branch information
coryjfowler authored Dec 15, 2021
2 parents 53fd798 + 00b536a commit 42dd1e8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions examples/CAN_sleep/CAN_sleep.ino
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void loop()
Serial.println(F("SLEEPING..."));

// Put MCP2515 into sleep mode
// This can sometimes take upto around 100ms depending on what the chip is currently doing
// This can sometimes take up to around 100ms depending on what the chip is currently doing
CAN0.setMode(MCP_SLEEP);

Serial.println(F("SLEEP"));
Expand All @@ -82,7 +82,7 @@ void loop()

// Put the microcontroller to sleep
cli(); // Disable interrupts
if(digitalRead(CAN0_INT)) // Make sure we havn't missed an interrupt between the digitalRead() above and now. If an interrupt happens between now and sei()/sleep_cpu() then sleep_cpu() will immediately wake up again
if(digitalRead(CAN0_INT)) // Make sure we haven't missed an interrupt between the digitalRead() above and now. If an interrupt happens between now and sei()/sleep_cpu() then sleep_cpu() will immediately wake up again
{
sleep_enable();
sleep_bod_disable();
Expand Down
6 changes: 3 additions & 3 deletions examples/OBD2_PID_Request/OBD2_PID_Request.ino
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void setup(){
// // Allow all Extended IDs
// CAN0.init_Mask(1,0x80000000); // Init second mask...
// CAN0.init_Filt(2,0x80000000); // Init third filter...
// CAN0.init_Filt(3,0x80000000); // Init fouth filter...
// CAN0.init_Filt(3,0x80000000); // Init fourth filter...
// CAN0.init_Filt(4,0x80000000); // Init fifth filter...
// CAN0.init_Filt(5,0x80000000); // Init sixth filter...

Expand All @@ -74,7 +74,7 @@ void setup(){

CAN0.init_Mask(1,0x7F00000); // Init second mask...
CAN0.init_Filt(2,0x7DF0000); // Init third filter...
CAN0.init_Filt(3,0x7E10000); // Init fouth filter...
CAN0.init_Filt(3,0x7E10000); // Init fourth filter...
CAN0.init_Filt(4,0x7DF0000); // Init fifth filter...
CAN0.init_Filt(5,0x7E10000); // Init sixth filter...

Expand All @@ -86,7 +86,7 @@ void setup(){

CAN0.init_Mask(1,0x90FF0000); // Init second mask...
CAN0.init_Filt(2,0x90DA0000); // Init third filter...
CAN0.init_Filt(3,0x90DB0000); // Init fouth filter...
CAN0.init_Filt(3,0x90DB0000); // Init fourth filter...
CAN0.init_Filt(4,0x90DA0000); // Init fifth filter...
CAN0.init_Filt(5,0x90DB0000); // Init sixth filter...
#endif
Expand Down
10 changes: 5 additions & 5 deletions examples/OBD_Sim/OBD_Sim.ino
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void setup()

CAN0.init_Mask(1,0x7F00000); // Init second mask...
CAN0.init_Filt(2,0x7DF0000); // Init third filter...
CAN0.init_Filt(3,0x7E10000); // Init fouth filter...
CAN0.init_Filt(3,0x7E10000); // Init fourth filter...
CAN0.init_Filt(4,0x7DF0000); // Init fifth filter...
CAN0.init_Filt(5,0x7E10000); // Init sixth filter...

Expand All @@ -73,7 +73,7 @@ void setup()

CAN0.init_Mask(1,0x90FFFF00); // Init second mask...
CAN0.init_Filt(2,0x90DB3300); // Init third filter...
CAN0.init_Filt(3,0x90DA0100); // Init fouth filter...
CAN0.init_Filt(3,0x90DA0100); // Init fourth filter...
CAN0.init_Filt(4,0x90DB3300); // Init fifth filter...
CAN0.init_Filt(5,0x90DA0100); // Init sixth filter...
#endif
Expand Down Expand Up @@ -219,7 +219,7 @@ void obdReq(byte *data){
// }
// else if(pid == 0x1D){ // Oxygen sensors present (in 4 banks)
// }
// else if(pid == 0x1E){ // Auxillary input status
// else if(pid == 0x1E){ // Auxiliary input status
// }
// else if(pid == 0x1F){ // Run time since engine start
// }
Expand Down Expand Up @@ -320,9 +320,9 @@ void obdReq(byte *data){
// }
// else if(pid == 0x46){ // Ambient air temperature
// }
// else if(pid == 0x47){ // Absolute throttle postion B
// else if(pid == 0x47){ // Absolute throttle position B
// }
// else if(pid == 0x48){ // Absolute throttle postion C
// else if(pid == 0x48){ // Absolute throttle position C
// }
// else if(pid == 0x49){ // Accelerator pedal position D
// }
Expand Down
10 changes: 5 additions & 5 deletions mcp_can.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ class MCP_CAN

public:
MCP_CAN(INT8U _CS);
INT8U begin(INT8U idmodeset, INT8U speedset, INT8U clockset); // Initilize controller prameters
INT8U init_Mask(INT8U num, INT8U ext, INT32U ulData); // Initilize Mask(s)
INT8U init_Mask(INT8U num, INT32U ulData); // Initilize Mask(s)
INT8U init_Filt(INT8U num, INT8U ext, INT32U ulData); // Initilize Filter(s)
INT8U init_Filt(INT8U num, INT32U ulData); // Initilize Filter(s)
INT8U begin(INT8U idmodeset, INT8U speedset, INT8U clockset); // Initialize controller parameters
INT8U init_Mask(INT8U num, INT8U ext, INT32U ulData); // Initialize Mask(s)
INT8U init_Mask(INT8U num, INT32U ulData); // Initialize Mask(s)
INT8U init_Filt(INT8U num, INT8U ext, INT32U ulData); // Initialize Filter(s)
INT8U init_Filt(INT8U num, INT32U ulData); // Initialize Filter(s)
void setSleepWakeup(INT8U enable); // Enable or disable the wake up interrupt (If disabled the MCP2515 will not be woken up by CAN bus activity)
INT8U setMode(INT8U opMode); // Set operational mode
INT8U sendMsgBuf(INT32U id, INT8U ext, INT8U len, INT8U *buf); // Send message to transmit buffer
Expand Down

0 comments on commit 42dd1e8

Please sign in to comment.