@@ -151,7 +151,7 @@ static void _saveData( char * pLine,
151151 LogDebug ( ( "_saveData : Save data %p with length %u" , pLine , ( unsigned int ) dataLen ) );
152152
153153 pNew = ( CellularATCommandLine_t * ) Platform_Malloc ( sizeof ( CellularATCommandLine_t ) );
154- configASSERT ( ( pNew != NULL ) );
154+ CELLULAR_CONFIG_ASSERT ( ( pNew != NULL ) );
155155
156156 /* Reuse the pktio buffer instead of allocate. */
157157 pNew -> pLine = pLine ;
@@ -287,7 +287,7 @@ static CellularATCommandResponse_t * _Cellular_AtResponseNew( void )
287287 CellularATCommandResponse_t * pNew = NULL ;
288288
289289 pNew = ( CellularATCommandResponse_t * ) Platform_Malloc ( sizeof ( CellularATCommandResponse_t ) );
290- configASSERT ( ( pNew != NULL ) );
290+ CELLULAR_CONFIG_ASSERT ( ( pNew != NULL ) );
291291
292292 ( void ) memset ( ( void * ) pNew , 0 , sizeof ( CellularATCommandResponse_t ) );
293293
@@ -520,7 +520,7 @@ static CellularCommInterfaceError_t _Cellular_PktRxCallBack( void * pUserData,
520520 CellularCommInterfaceHandle_t commInterfaceHandle )
521521{
522522 const CellularContext_t * pContext = ( CellularContext_t * ) pUserData ;
523- BaseType_t xHigherPriorityTaskWoken = pdFALSE , xResult = pdFALSE ;
523+ PlatformBaseType_t xHigherPriorityTaskWoken = platformFALSE , xResult = platformFALSE ;
524524 CellularCommInterfaceError_t retComm = IOT_COMM_INTERFACE_SUCCESS ;
525525
526526 ( void ) commInterfaceHandle ; /* Comm if is not used in this function. */
@@ -532,13 +532,13 @@ static CellularCommInterfaceError_t _Cellular_PktRxCallBack( void * pUserData,
532532 }
533533 else
534534 {
535- xResult = ( BaseType_t ) PlatformEventGroup_SetBitsFromISR ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent ,
536- ( EventBits_t ) PKTIO_EVT_MASK_RX_DATA ,
537- & xHigherPriorityTaskWoken );
535+ xResult = PlatformEventGroup_SetBitsFromISR ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent ,
536+ ( PlatformEventBits_t ) PKTIO_EVT_MASK_RX_DATA ,
537+ & xHigherPriorityTaskWoken );
538538
539- if ( xResult == pdPASS )
539+ if ( xResult == platformPASS )
540540 {
541- if ( xHigherPriorityTaskWoken == pdTRUE )
541+ if ( xHigherPriorityTaskWoken == platformTRUE )
542542 {
543543 retComm = IOT_COMM_INTERFACE_SUCCESS ;
544544 }
@@ -1201,7 +1201,7 @@ static uint32_t _handleRxDataEvent( CellularContext_t * pContext )
12011201static void _pktioReadThread ( void * pUserData )
12021202{
12031203 CellularContext_t * pContext = ( CellularContext_t * ) pUserData ;
1204- PlatformEventGroup_EventBits uxBits = 0 ;
1204+ PlatformEventBits_t uxBits = 0 ;
12051205 uint32_t bytesRead = 0U ;
12061206
12071207 /* Open main communication port. */
@@ -1210,24 +1210,24 @@ static void _pktioReadThread( void * pUserData )
12101210 & ( pContext -> hPktioCommIntf ) ) == IOT_COMM_INTERFACE_SUCCESS ) )
12111211 {
12121212 /* Send thread started event. */
1213- ( void ) PlatformEventGroup_SetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent , ( EventBits_t ) PKTIO_EVT_MASK_STARTED );
1213+ ( void ) PlatformEventGroup_SetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent , ( PlatformEventBits_t ) PKTIO_EVT_MASK_STARTED );
12141214
12151215 do
12161216 {
12171217 /* Wait events for abort thread or rx data available. */
1218- uxBits = ( PlatformEventGroup_EventBits ) PlatformEventGroup_WaitBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent ,
1219- ( ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_ABORT | ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_RX_DATA ),
1220- pdTRUE ,
1221- pdFALSE ,
1222- portMAX_DELAY );
1218+ uxBits = PlatformEventGroup_WaitBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent ,
1219+ ( ( PlatformEventBits_t ) PKTIO_EVT_MASK_ABORT | ( PlatformEventBits_t ) PKTIO_EVT_MASK_RX_DATA ),
1220+ platformTRUE ,
1221+ platformFALSE ,
1222+ platformMAX_DELAY );
12231223
1224- if ( ( uxBits & ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_ABORT ) != 0U )
1224+ if ( ( uxBits & ( PlatformEventBits_t ) PKTIO_EVT_MASK_ABORT ) != 0U )
12251225 {
12261226 LogDebug ( ( "Abort received, cleaning up!" ) );
12271227 FREE_AT_RESPONSE_AND_SET_NULL ( pContext -> pAtCmdResp );
12281228 break ;
12291229 }
1230- else if ( ( uxBits & ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_RX_DATA ) != 0U )
1230+ else if ( ( uxBits & ( PlatformEventBits_t ) PKTIO_EVT_MASK_RX_DATA ) != 0U )
12311231 {
12321232 /* Keep Reading until there is no more bytes in comm interface. */
12331233 do
@@ -1250,7 +1250,7 @@ static void _pktioReadThread( void * pUserData )
12501250 LogError ( ( "Comm port open failed" ) );
12511251 }
12521252
1253- ( void ) PlatformEventGroup_SetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent , ( EventBits_t ) PKTIO_EVT_MASK_ABORTED );
1253+ ( void ) PlatformEventGroup_SetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent , ( PlatformEventBits_t ) PKTIO_EVT_MASK_ABORTED );
12541254
12551255 /* Call the shutdown callback if it is defined. */
12561256 if ( pContext -> pPktioShutdownCB != NULL )
@@ -1263,15 +1263,15 @@ static void _pktioReadThread( void * pUserData )
12631263
12641264static void _PktioInitProcessReadThreadStatus ( CellularContext_t * pContext )
12651265{
1266- PlatformEventGroup_EventBits uxBits = 0 ;
1266+ PlatformEventBits_t uxBits = 0 ;
12671267
1268- uxBits = ( PlatformEventGroup_EventBits ) PlatformEventGroup_WaitBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent ,
1269- ( ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_STARTED | ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_ABORTED ),
1270- pdTRUE ,
1271- pdFALSE ,
1272- ( ( PlatformTickType ) ~( 0UL ) ) );
1268+ uxBits = ( PlatformEventBits_t ) PlatformEventGroup_WaitBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent ,
1269+ ( ( PlatformEventBits_t ) PKTIO_EVT_MASK_STARTED | ( PlatformEventBits_t ) PKTIO_EVT_MASK_ABORTED ),
1270+ platformTRUE ,
1271+ platformFALSE ,
1272+ ( ( PlatformTickType_t ) ~( 0UL ) ) );
12731273
1274- if ( ( uxBits & ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_ABORTED ) != ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_ABORTED )
1274+ if ( ( uxBits & ( PlatformEventBits_t ) PKTIO_EVT_MASK_ABORTED ) != ( PlatformEventBits_t ) PKTIO_EVT_MASK_ABORTED )
12751275 {
12761276 pContext -> bPktioUp = true;
12771277 }
@@ -1367,7 +1367,7 @@ CellularPktStatus_t _Cellular_PktioInit( CellularContext_t * pContext,
13671367 {
13681368 pContext -> pPktioHandlepktCB = handlePacketCb ;
13691369 ( void ) PlatformEventGroup_ClearBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent ,
1370- ( ( PlatformEventGroup_EventBits ) PKTIO_EVT_MASK_ALL_EVENTS ) );
1370+ ( ( PlatformEventBits_t ) PKTIO_EVT_MASK_ALL_EVENTS ) );
13711371
13721372 /* Create the Read thread. */
13731373 status = Platform_CreateDetachedThread ( _pktioReadThread ,
@@ -1516,19 +1516,19 @@ uint32_t _Cellular_PktioSendData( CellularContext_t * pContext,
15161516
15171517void _Cellular_PktioShutdown ( CellularContext_t * pContext )
15181518{
1519- PlatformEventGroup_EventBits uxBits = 0 ;
1519+ PlatformEventBits_t uxBits = 0 ;
15201520
15211521 if ( ( pContext != NULL ) && ( pContext -> bPktioUp ) )
15221522 {
15231523 if ( pContext -> pPktioCommEvent != NULL )
15241524 {
1525- ( void ) PlatformEventGroup_SetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent , ( EventBits_t ) PKTIO_EVT_MASK_ABORT );
1526- uxBits = ( PlatformEventGroup_EventBits ) PlatformEventGroup_GetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent );
1525+ ( void ) PlatformEventGroup_SetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent , ( PlatformEventBits_t ) PKTIO_EVT_MASK_ABORT );
1526+ uxBits = ( PlatformEventBits_t ) PlatformEventGroup_GetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent );
15271527
1528- while ( ( PlatformEventGroup_EventBits ) ( uxBits & PKTIO_EVT_MASK_ABORTED ) != ( PlatformEventGroup_EventBits ) ( PKTIO_EVT_MASK_ABORTED ) )
1528+ while ( ( PlatformEventBits_t ) ( uxBits & PKTIO_EVT_MASK_ABORTED ) != ( PlatformEventBits_t ) ( PKTIO_EVT_MASK_ABORTED ) )
15291529 {
15301530 Platform_Delay ( PKTIO_SHUTDOWN_WAIT_INTERVAL_MS );
1531- uxBits = ( PlatformEventGroup_EventBits ) PlatformEventGroup_GetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent );
1531+ uxBits = ( PlatformEventBits_t ) PlatformEventGroup_GetBits ( ( PlatformEventGroupHandle_t ) pContext -> pPktioCommEvent );
15321532 }
15331533
15341534 ( void ) PlatformEventGroup_Delete ( pContext -> pPktioCommEvent );
0 commit comments