Skip to content

Commit 4f53743

Browse files
authored
Merge pull request #5734 from Guozhanxin/finsh
[finsh] Fixed RT-Thread spelling
2 parents be892de + 8763d8b commit 4f53743

File tree

9 files changed

+21
-12
lines changed

9 files changed

+21
-12
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_*/

components/finsh/cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ long version(void)
5555

5656
return 0;
5757
}
58-
MSH_CMD_EXPORT(version, show RT - Thread version information);
58+
MSH_CMD_EXPORT(version, show RT-Thread version information);
5959

6060
rt_inline void object_split(int len)
6161
{

components/finsh/msh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int msh_help(int argc, char **argv)
5252

5353
return 0;
5454
}
55-
MSH_CMD_EXPORT_ALIAS(msh_help, help, RT - Thread shell help.);
55+
MSH_CMD_EXPORT_ALIAS(msh_help, help, RT-Thread shell help.);
5656

5757
#ifdef MSH_USING_BUILT_IN_COMMANDS
5858
int cmd_ps(int argc, char **argv)

tools/keil.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ def MDK45Project(tree, target, script):
281281
out.close()
282282

283283
def MDK4Project(target, script):
284+
285+
if os.path.isfile('template.uvproj') is False:
286+
print ('Warning: The template project file [template.uvproj] not found!')
287+
return
288+
284289
template_tree = etree.parse('template.uvproj')
285290

286291
MDK45Project(template_tree, target, script)
@@ -297,6 +302,10 @@ def MDK4Project(target, script):
297302

298303
def MDK5Project(target, script):
299304

305+
if os.path.isfile('template.uvprojx') is False:
306+
print ('Warning: The template project file [template.uvprojx] not found!')
307+
return
308+
300309
template_tree = etree.parse('template.uvprojx')
301310

302311
MDK45Project(template_tree, target, script)

0 commit comments

Comments
 (0)