Skip to content

Commit a4f09b5

Browse files
Andreas Larssonandreas.larsson
authored andcommitted
Added cbMAIN_dispatchEventQueue
1 parent 32dfe73 commit a4f09b5

File tree

1 file changed

+8
-0
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers

1 file changed

+8
-0
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers/cb_main.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ extern void cbMAIN_startOS(void);
110110
/**
111111
* Get event queue. Used for running a function in the same thread context as the driver.
112112
* Can not be called before cbMAIN_initOS/cbMAIN_initBt/cbMAIN_initWlan.
113+
* Use cbMAIN_dispatchEventQueue to trigger the driver to call the queued up functions.
113114
* @return EventQueue Pointer to the event queue where function calls can be enqueued.
114115
*/
115116
extern EventQueue* cbMAIN_getEventQueue(void);
@@ -128,4 +129,11 @@ extern void cbMAIN_driverLock(void);
128129
*/
129130
extern void cbMAIN_driverUnlock(void);
130131

132+
/**
133+
* Dispatch event queue. Should be called to trigger calls that have been queued up in the driver context
134+
*
135+
* @return void
136+
*/
137+
extern void cbMAIN_dispatchEventQueue(void);
138+
131139
#endif /*_CB_MAIN_H_*/

0 commit comments

Comments
 (0)