include/timers_driver.h
changeset 561 f9be4262c68d
parent 528 0a30e161d63c
child 801 32d146b64a35
equal deleted inserted replaced
560:0bb927393dd0 561:f9be4262c68d
    29 
    29 
    30 #include "timerscfg.h"
    30 #include "timerscfg.h"
    31 #include "timer.h"
    31 #include "timer.h"
    32 
    32 
    33 // For use from CAN driver
    33 // For use from CAN driver
       
    34 
       
    35 
    34 /**
    36 /**
    35  * @ingroup timer
    37  * @ingroup timer
    36  * @brief Acquire mutex
    38  * @brief Acquire mutex
    37  */
    39  */
    38 void EnterMutex(void);
    40 void EnterMutex(void);
    40 /**
    42 /**
    41  * @ingroup timer
    43  * @ingroup timer
    42  * @brief Release mutex
    44  * @brief Release mutex
    43  */
    45  */
    44 void LeaveMutex(void);
    46 void LeaveMutex(void);
       
    47 
    45 void WaitReceiveTaskEnd(TASK_HANDLE*);
    48 void WaitReceiveTaskEnd(TASK_HANDLE*);
    46 
    49 
    47 /**
    50 /**
    48  * @ingroup timer
    51  * @ingroup timer
    49  * @brief Initialize Timer 
    52  * @brief Initialize Timer
    50  * 
       
    51  */
    53  */
    52 void TimerInit(void);
    54 void TimerInit(void);
    53 
    55 
    54 /**
    56 /**
    55  * @ingroup timer
    57  * @ingroup timer
    68  * @ingroup timer
    70  * @ingroup timer
    69  * @brief Stop the timer task
    71  * @brief Stop the timer task
    70  * @param Callback A callback function
    72  * @param Callback A callback function
    71  */
    73  */
    72 void StopTimerLoop(TimerCallback_t Callback);
    74 void StopTimerLoop(TimerCallback_t Callback);
    73 /** @} */
       
    74 
    75 
    75 /**
    76 /**
    76  * @brief Stop the timer task
    77  * @brief Stop the timer task
    77  * @param port CanFestival file descriptor
    78  * @param port CanFestival file descriptor
    78  * @param *handle handle of receive loop thread
    79  * @param *handle handle of receive loop thread