mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
fixed line endings - mixed LF and CR+LF present - please keep it to either one of those or my editor gets crazy
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2448 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
bbe013fc82
commit
6c3b887ae4
@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
/**
|
||||
* Event callback information
|
||||
* Event callback information
|
||||
*/
|
||||
typedef struct {
|
||||
UAVObjEvent ev; /** The actual event */
|
||||
@ -72,7 +72,7 @@ static uint32_t randomizePeriod(uint32_t periodMs);
|
||||
|
||||
/**
|
||||
* Initialize the dispatcher
|
||||
* \return Success (0), failure (-1)
|
||||
* \return Success (0), failure (-1)
|
||||
*/
|
||||
int32_t EventDispatcherInitialize()
|
||||
{
|
||||
@ -121,7 +121,7 @@ void EventClearStats()
|
||||
* returns imidiatelly, the callback is invoked from the event task.
|
||||
* \param[in] ev The event to be dispatched
|
||||
* \param[in] cb The callback function
|
||||
* \return Success (0), failure (-1)
|
||||
* \return Success (0), failure (-1)
|
||||
*/
|
||||
int32_t EventCallbackDispatch(UAVObjEvent* ev, UAVObjEventCallback cb)
|
||||
{
|
||||
@ -188,7 +188,7 @@ int32_t EventPeriodicQueueUpdate(UAVObjEvent* ev, xQueueHandle queue, int32_t pe
|
||||
* \param[in] cb The callback to be invoked or zero if none
|
||||
* \param[in] queue The queue or zero if none
|
||||
* \param[in] periodMs The period the event is generated
|
||||
* \return Success (0), failure (-1)
|
||||
* \return Success (0), failure (-1)
|
||||
*/
|
||||
static int32_t eventPeriodicCreate(UAVObjEvent* ev, UAVObjEventCallback cb, xQueueHandle queue, int32_t periodMs)
|
||||
{
|
||||
@ -262,7 +262,7 @@ static int32_t eventPeriodicUpdate(UAVObjEvent* ev, UAVObjEventCallback cb, xQue
|
||||
}
|
||||
|
||||
/**
|
||||
* Event task, responsible of invoking callbacks.
|
||||
* Event task, responsible of invoking callbacks.
|
||||
*/
|
||||
static void eventTask()
|
||||
{
|
||||
@ -358,7 +358,7 @@ static int32_t processPeriodicUpdates()
|
||||
/**
|
||||
* Return a psedorandom integer from 0 to periodMs
|
||||
* Based on the Park-Miller-Carta Pseudo-Random Number Generator
|
||||
* http://www.firstpr.com.au/dsp/rand31/
|
||||
* http://www.firstpr.com.au/dsp/rand31/
|
||||
*/
|
||||
static uint32_t randomizePeriod(uint32_t periodMs)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user