@@ -75,6 +75,8 @@ typedef void * PVOID;
7575#define PlatformMutex_TryLock MockPlatformMutex_TryLock
7676#define PlatformMutex_Unlock MockPlatformMutex_Unlock
7777
78+ #define Platform_CreateDetachedThread MockPlatform_CreateDetachedThread
79+
7880#define taskENTER_CRITICAL () PVOID
7981#define taskEXIT_CRITICAL () PVOID
8082
@@ -97,6 +99,24 @@ typedef void * PVOID;
9799#define CELLULAR_URC_TOKEN_WO_PREFIX_TABLE_SIZE ( sizeof( CellularUrcTokenWoPrefixTable ) / sizeof( char * ) )
98100#define CELLULAR_SRC_EXTRA_TOKEN_SUCCESS_TABLE_SIZE ( sizeof( CellularSrcExtraTokenSuccessTable ) / sizeof( char * ) )
99101
102+ #if ( configUSE_16_BIT_TICKS == 1 )
103+ typedef uint16_t TickType_t ;
104+ #define portMAX_DELAY ( TickType_t ) 0xffff
105+ #else
106+ typedef uint64_t TickType_t ;
107+ #define portMAX_DELAY ( TickType_t ) 0xffffffffUL
108+ #endif
109+
110+ /*
111+ * The type that holds event bits always matches TickType_t - therefore the
112+ * number of bits it holds is set by configUSE_16_BIT_TICKS (16 bits if set to 1,
113+ * 32 bits if set to 0.
114+ *
115+ * \defgroup EventBits_t EventBits_t
116+ * \ingroup EventGroup
117+ */
118+ typedef TickType_t EventBits_t ;
119+
100120/**
101121 * @brief Cellular library platform thread API and configuration.
102122 *
@@ -107,9 +127,9 @@ typedef void * PVOID;
107127 * the platform related stack size and priority.
108128 */
109129
110- bool Platform_CreateDetachedThread ( void ( * threadRoutine )( void * ),
130+ bool Platform_CreateDetachedThread ( void ( * threadRoutine )( void * pArgument ),
111131 void * pArgument ,
112- int32_t priority ,
132+ size_t priority ,
113133 size_t stackSize );
114134
115135#define PLATFORM_THREAD_DEFAULT_STACK_SIZE ( 2048U )
@@ -180,6 +200,9 @@ void PlatformMutex_Destroy( PlatformMutex_t * pMutex );
180200void PlatformMutex_Lock ( PlatformMutex_t * pMutex );
181201bool PlatformMutex_TryLock ( PlatformMutex_t * pMutex );
182202void PlatformMutex_Unlock ( PlatformMutex_t * pMutex );
203+ int32_t PlatformEventGroup_SetBitsFromISR ( PlatformEventGroupHandle_t groupEvent ,
204+ EventBits_t event ,
205+ BaseType_t * pHigherPriorityTaskWoken );
183206void * safeMalloc ( size_t xWantedSize );
184207void allocateSocket ( void * pCellularHandle );
185208bool MockxQueueReceive ( int32_t * queue ,
@@ -188,6 +211,18 @@ bool MockxQueueReceive( int32_t * queue,
188211uint16_t MockPlatformEventGroup_Create ();
189212uint16_t MockPlatformEventGroup_WaitBits ();
190213
214+ QueueHandle_t xQueueCreate ( int32_t uxQueueLength ,
215+ uint32_t uxItemSize );
216+ uint16_t vQueueDelete ( QueueHandle_t queue );
217+ BaseType_t xQueueSend ( QueueHandle_t queue ,
218+ void * data ,
219+ uint32_t time );
220+
221+ uint16_t PlatformEventGroup_ClearBits ( PlatformEventGroupHandle_t xEventGroup ,
222+ TickType_t uxBitsToClear );
223+ uint16_t PlatformEventGroup_Delete ( PlatformEventGroupHandle_t groupEvent );
224+ uint16_t PlatformEventGroup_GetBits ( PlatformEventGroupHandle_t groupEvent );
225+
191226/*-----------------------------------------------------------*/
192227
193228/**
@@ -202,12 +237,4 @@ uint16_t MockPlatformEventGroup_WaitBits();
202237#define Platform_Malloc safeMalloc
203238#define Platform_Free free
204239
205- #if ( configUSE_16_BIT_TICKS == 1 )
206- typedef uint16_t TickType_t ;
207- #define portMAX_DELAY ( TickType_t ) 0xffff
208- #else
209- typedef uint64_t TickType_t ;
210- #define portMAX_DELAY ( TickType_t ) 0xffffffffUL
211- #endif
212-
213240#endif /* __CELLULAR_PLATFORM_H__ */
0 commit comments