git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5928 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2013-07-05 10:03:21 +00:00
parent 628ab84568
commit 8bd5eb3a68
4 changed files with 3 additions and 13 deletions

View File

@ -122,16 +122,6 @@ typedef enum {
* @brief Converts a mailbox index to a bit mask.
*/
#define CAN_MAILBOX_TO_MASK(mbx) (1 << ((mbx) - 1))
/**
* @brief Adds some flags to the CAN status mask.
*
* @param[in] canp pointer to the @p CANDriver object
* @param[in] mask flags to be added to the status mask
*
* @iclass
*/
#define canAddFlagsI(canp, mask) ((canp)->status |= (mask))
/** @} */
/*===========================================================================*/

View File

@ -131,10 +131,10 @@ void canStop(CANDriver *canp) {
chDbgAssert((canp->state == CAN_STOP) || (canp->state == CAN_READY),
"canStop(), #1", "invalid state");
can_lld_stop(canp);
canp->state = CAN_STOP;
chSemResetI(&canp->rxsem, 0);
chSemResetI(&canp->txsem, 0);
chSchRescheduleS();
canp->state = CAN_STOP;
chSysUnlock();
}

View File

@ -120,7 +120,7 @@ typedef void (*evhandler_t)(eventid_t);
* @note This function can be invoked before the kernel is initialized
* because it just prepares a @p EventSource structure.
*
* @param[in] esp pointer to the @p EventSource structure
* @param[out] esp pointer to the @p EventSource structure
*
* @init
*/

View File

@ -69,7 +69,7 @@
* different threads.
*
* @param[in] esp pointer to the @p EventSource structure
* @param[in] elp pointer to the @p EventListener structure
* @param[out] elp pointer to the @p EventListener structure
* @param[in] mask the mask of event flags to be ORed to the thread when
* the event source is broadcasted
*