aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/can.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/can.c')
-rw-r--r--os/hal/src/can.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/os/hal/src/can.c b/os/hal/src/can.c
index 041409c99..422825a83 100644
--- a/os/hal/src/can.c
+++ b/os/hal/src/can.c
@@ -79,7 +79,6 @@ void canObjectInit(CANDriver *canp) {
chEvtInit(&canp->rxfull_event);
chEvtInit(&canp->txempty_event);
chEvtInit(&canp->error_event);
- canp->status = 0;
#if CAN_USE_SLEEP_MODE
chEvtInit(&canp->sleep_event);
chEvtInit(&canp->wakeup_event);
@@ -136,7 +135,6 @@ void canStop(CANDriver *canp) {
chSemResetI(&canp->txsem, 0);
chSchRescheduleS();
canp->state = CAN_STOP;
- canp->status = 0;
chSysUnlock();
}
@@ -219,24 +217,6 @@ msg_t canReceive(CANDriver *canp, CANRxFrame *crfp, systime_t timeout) {
return RDY_OK;
}
-/**
- * @brief Returns the current status mask and clears it.
- *
- * @param[in] canp pointer to the @p CANDriver object
- * @return The status flags mask.
- *
- * @api
- */
-canstatus_t canGetAndClearFlags(CANDriver *canp) {
- canstatus_t status;
-
- chSysLock();
- status = canp->status;
- canp->status = 0;
- chSysUnlock();
- return status;
-}
-
#if CAN_USE_SLEEP_MODE || defined(__DOXYGEN__)
/**
* @brief Enters the sleep mode.