Skip to content

Commit

Permalink
COREA-20, CanSM will now request CanIf controller to SLEEP when no co…
Browse files Browse the repository at this point in the history
…mmunication is requested. This allows Ecu to enter sleep without waking itself (if wakeup on Can pin). CanIf no longer wakes up can controller if CanIf is requested to SLEEP.
  • Loading branch information
hebe committed Nov 19, 2014
1 parent 38c164c commit f1773df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions communication/CanIf/CanIf.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ Std_ReturnType CanIf_SetControllerMode(uint8 Controller,
return E_NOT_OK;
}
CanIf_Global.channelData[channel].ControllerMode = CANIF_CS_SLEEP;
break;
}

case CANIF_CS_STOPPED:
Expand Down
7 changes: 0 additions & 7 deletions communication/CanSM/CanSM.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,7 @@ Std_ReturnType CanSM_Internal_RequestCanIfMode( NetworkHandleType NetworkHandle,

switch (ComM_Mode) {
case COMM_NO_COMMUNICATION:
/* CAN wake-up capability is not implemented so we cannot set
* controllers into sleep because then we would be unable to
* wake except on internal requests.
*/
#if 0
CanIf_Mode = CANIF_CS_SLEEP;
#endif
CanIf_Mode = CANIF_CS_STARTED;
break;
case COMM_FULL_COMMUNICATION:
CanIf_Mode = CANIF_CS_STARTED;
Expand Down

0 comments on commit f1773df

Please sign in to comment.