From c145c837da830279f68f6ba0431d856cc6bf67f2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 16 Sep 2012 09:26:46 +0000 Subject: 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 --- os/hal/src/can.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'os/hal/src') 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. -- cgit v1.2.3