Skip to content

Commit b2e2ab2

Browse files
authored
[update] Fix some spelling mistakes. (#5738)
1 parent f9245ef commit b2e2ab2

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

components/drivers/include/ipc/workqueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum
2020
};
2121

2222
/**
23-
* work type defitions
23+
* work type definitions
2424
*/
2525
enum
2626
{

include/rtdef.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* 2021-11-19 Meco Man change version number to v4.1.0
4040
* 2021-12-21 Meco Man re-implement RT_UNUSED
4141
* 2022-01-01 Gabriel improve hooking method
42-
* 2022-01-07 Gabriel move some __on_rt_xxxxx_hook to dedicated c soure files
42+
* 2022-01-07 Gabriel move some __on_rt_xxxxx_hook to dedicated c source files
4343
* 2022-01-12 Meco Man remove RT_THREAD_BLOCK
4444
*/
4545

@@ -106,17 +106,17 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
106106
/**@}*/
107107

108108
/* maximum value of base type */
109-
#define RT_UINT8_MAX 0xff /**< Maxium number of UINT8 */
110-
#define RT_UINT16_MAX 0xffff /**< Maxium number of UINT16 */
111-
#define RT_UINT32_MAX 0xffffffff /**< Maxium number of UINT32 */
112-
#define RT_TICK_MAX RT_UINT32_MAX /**< Maxium number of tick */
109+
#define RT_UINT8_MAX 0xff /**< Maximum number of UINT8 */
110+
#define RT_UINT16_MAX 0xffff /**< Maximum number of UINT16 */
111+
#define RT_UINT32_MAX 0xffffffff /**< Maximum number of UINT32 */
112+
#define RT_TICK_MAX RT_UINT32_MAX /**< Maximum number of tick */
113113

114114
/* maximum value of ipc type */
115-
#define RT_SEM_VALUE_MAX RT_UINT16_MAX /**< Maxium number of semaphore .value */
116-
#define RT_MUTEX_VALUE_MAX RT_UINT16_MAX /**< Maxium number of mutex .value */
117-
#define RT_MUTEX_HOLD_MAX RT_UINT8_MAX /**< Maxium number of mutex .hold */
118-
#define RT_MB_ENTRY_MAX RT_UINT16_MAX /**< Maxium number of mailbox .entry */
119-
#define RT_MQ_ENTRY_MAX RT_UINT16_MAX /**< Maxium number of message queue .entry */
115+
#define RT_SEM_VALUE_MAX RT_UINT16_MAX /**< Maximum number of semaphore .value */
116+
#define RT_MUTEX_VALUE_MAX RT_UINT16_MAX /**< Maximum number of mutex .value */
117+
#define RT_MUTEX_HOLD_MAX RT_UINT8_MAX /**< Maximum number of mutex .hold */
118+
#define RT_MB_ENTRY_MAX RT_UINT16_MAX /**< Maximum number of mailbox .entry */
119+
#define RT_MQ_ENTRY_MAX RT_UINT16_MAX /**< Maximum number of message queue .entry */
120120

121121
#define RT_UNUSED(x) ((void)x)
122122

@@ -255,15 +255,15 @@ typedef int (*init_fn_t)(void);
255255
#define INIT_BOARD_EXPORT(fn) INIT_EXPORT(fn, "1")
256256

257257
/* pre/device/component/env/app init routines will be called in init_thread */
258-
/* components pre-initialization (pure software initilization) */
258+
/* components pre-initialization (pure software initialization) */
259259
#define INIT_PREV_EXPORT(fn) INIT_EXPORT(fn, "2")
260260
/* device initialization */
261261
#define INIT_DEVICE_EXPORT(fn) INIT_EXPORT(fn, "3")
262262
/* components initialization (dfs, lwip, ...) */
263263
#define INIT_COMPONENT_EXPORT(fn) INIT_EXPORT(fn, "4")
264264
/* environment initialization (mount disk, ...) */
265265
#define INIT_ENV_EXPORT(fn) INIT_EXPORT(fn, "5")
266-
/* appliation initialization (rtgui application etc ...) */
266+
/* application initialization (rtgui application etc ...) */
267267
#define INIT_APP_EXPORT(fn) INIT_EXPORT(fn, "6")
268268

269269
#if !defined(RT_USING_FINSH)
@@ -753,7 +753,7 @@ typedef struct rt_mutex *rt_mutex_t;
753753

754754
#ifdef RT_USING_EVENT
755755
/**
756-
* flag defintions in event
756+
* flag definitions in event
757757
*/
758758
#define RT_EVENT_FLAG_AND 0x01 /**< logic and */
759759
#define RT_EVENT_FLAG_OR 0x02 /**< logic or */
@@ -959,7 +959,7 @@ enum rt_device_class_type
959959
};
960960

961961
/**
962-
* device flags defitions
962+
* device flags definitions
963963
*/
964964
#define RT_DEVICE_FLAG_DEACTIVATE 0x000 /**< device is not not initialized */
965965

@@ -1115,7 +1115,7 @@ struct rt_device_blk_sectors
11151115
#define RTGRAPHIC_CTRL_PAN_DISPLAY 10
11161116
#define RTGRAPHIC_CTRL_WAIT_VSYNC 11
11171117

1118-
/* graphic deice */
1118+
/* graphic device */
11191119
enum
11201120
{
11211121
RTGRAPHIC_PIXEL_FORMAT_MONO = 0,

include/rthw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* 2006-04-25 Bernard add rt_hw_context_switch_interrupt declaration
1010
* 2006-09-24 Bernard add rt_hw_context_switch_to declaration
1111
* 2012-12-29 Bernard add rt_hw_exception_install declaration
12-
* 2017-10-17 Hichard add some micros
12+
* 2017-10-17 Hichard add some macros
1313
* 2018-11-17 Jesven add rt_hw_spinlock_t
1414
* add smp support
1515
*/

0 commit comments

Comments
 (0)