Skip to content

Commit 8763d8b

Browse files
committed
[bsp/imxrt] fix compile warnings.
1 parent 71841b8 commit 8763d8b

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,4 +809,4 @@ void OSA_InstallIntHandler(uint32_t IRQNumber, void (*handler)(void));
809809
}
810810
#endif
811811
/*! @}*/
812-
#endif
812+
#endif

bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
#define FSL_OSA_TASK_ENABLE 1U
3434
#endif /* OSA_USED */
3535

36-
#endif /* _FSL_OS_ABSTRACTION_CONFIG_H_ */
36+
#endif /* _FSL_OS_ABSTRACTION_CONFIG_H_ */

bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ osa_status_t OSA_SemaphoreDestroy(osa_semaphore_handle_t semaphoreHandle)
379379
*END**************************************************************************/
380380
osa_status_t OSA_SemaphoreWait(osa_semaphore_handle_t semaphoreHandle, uint32_t millisec)
381381
{
382-
uint32_t timeoutTicks;
382+
int32_t timeoutTicks;
383383
assert(semaphoreHandle);
384384
rt_sem_t sem = (rt_sem_t)(void *)(uint32_t *)(*(uint32_t *)semaphoreHandle);
385385

@@ -460,7 +460,7 @@ osa_status_t OSA_MutexCreate(osa_mutex_handle_t mutexHandle)
460460
osa_status_t OSA_MutexLock(osa_mutex_handle_t mutexHandle, uint32_t millisec)
461461
{
462462
assert(mutexHandle);
463-
uint32_t timeoutTicks;
463+
int32_t timeoutTicks;
464464
rt_mutex_t mutex = (rt_mutex_t)(void *)(uint32_t *)(*(uint32_t *)mutexHandle);
465465

466466
/* Convert timeout from millisecond to tick. */
@@ -642,7 +642,7 @@ osa_status_t OSA_EventWait(osa_event_handle_t eventHandle,
642642
{
643643
assert(eventHandle);
644644
rt_uint8_t option = 0;
645-
rt_uint32_t timeoutTicks;
645+
rt_int32_t timeoutTicks;
646646
rt_uint32_t flagsSave;
647647
osa_event_struct_t *pEventStruct = (osa_event_struct_t *)eventHandle;
648648

@@ -778,7 +778,7 @@ osa_status_t OSA_MsgQGet(osa_msgq_handle_t msgqHandle, osa_msg_handle_t pMessage
778778
assert(msgqHandle);
779779
rt_mq_t handler = (rt_mq_t)(void *)(uint32_t *)(*(uint32_t *)msgqHandle);
780780

781-
uint32_t timeoutTicks;
781+
int32_t timeoutTicks;
782782

783783
if (millisec == osaWaitForever_c)
784784
{
@@ -914,4 +914,4 @@ int main(void)
914914
vTaskStartScheduler();
915915
return 0;
916916
}
917-
#endif /* FSL_OSA_TASK_ENABLE */
917+
#endif /* FSL_OSA_TASK_ENABLE */

bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ extern void DefaultISR(void);
127127
/*! @}*/
128128
/*! @}*/
129129

130-
#endif // __FSL_OS_ABSTRACTION_RTTHREAD_H__
130+
#endif // __FSL_OS_ABSTRACTION_RTTHREAD_H__

bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,4 @@ uint32_t LIST_GetSize(list_handle_t list)
472472
uint32_t LIST_GetAvailableSize(list_handle_t list)
473473
{
474474
return ((uint32_t)list->max - (uint32_t)list->size); /*Gets the number of free places in the list*/
475-
}
475+
}

bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@ uint32_t LIST_GetAvailableSize(list_handle_t list);
200200
}
201201
#endif
202202
/*! @}*/
203-
#endif /*_GENERIC_LIST_H_*/
203+
#endif /*_GENERIC_LIST_H_*/

0 commit comments

Comments
 (0)