aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/can.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-16 09:26:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-16 09:26:46 +0000
commitc145c837da830279f68f6ba0431d856cc6bf67f2 (patch)
treec0696ba90e6ca8c19c2969d4463b3fabfccb4be2 /os/hal/src/can.c
parentf90a0f37906a9363a6e702d8ac1c4c8257370efa (diff)
downloadChibiOS-c145c837da830279f68f6ba0431d856cc6bf67f2.tar.gz
ChibiOS-c145c837da830279f68f6ba0431d856cc6bf67f2.tar.bz2
ChibiOS-c145c837da830279f68f6ba0431d856cc6bf67f2.zip
Removed flags handling in CAN driver, now it is done using the new event flags.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4672 35acf78f-673a-0410-8e92-d51de3d6d3f4
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.