diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-01 16:32:16 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-01 16:32:16 +0000 |
commit | 3d182788ee7386b0fa53b4aee08fe8146d67d3b0 (patch) | |
tree | 81d4d87f00e741fd846843cb1e7ce0b7a6fe2080 /os/hal/src | |
parent | 8a433087afe80e92aea1c558965994b53bfcfb48 (diff) | |
download | ChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.tar.gz ChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.tar.bz2 ChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1369 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/can.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/os/hal/src/can.c b/os/hal/src/can.c index 698bcfbc4..7c6cdd656 100644 --- a/os/hal/src/can.c +++ b/os/hal/src/can.c @@ -50,6 +50,8 @@ void canObjectInit(CANDriver *canp) { chSemInit(&canp->cd_rxsem, 0);
chEvtInit(&canp->cd_rxfull_event);
chEvtInit(&canp->cd_txempty_event);
+ chEvtInit(&canp->cd_error_event);
+ canp->cd_status = 0;
#if CAN_USE_SLEEP_MODE
chEvtInit(&canp->cd_sleep_event);
chEvtInit(&canp->cd_wakeup_event);
@@ -90,7 +92,8 @@ void canStop(CANDriver *canp) { "canStop(), #1",
"invalid state");
can_lld_stop(canp);
- canp->cd_state = CAN_STOP;
+ canp->cd_state = CAN_STOP;
+ canp->cd_status = 0;
chSysUnlock();
}
|