Skip to content

Commit 4eef723

Browse files
committed
Rename kernel files.
1 parent 856b451 commit 4eef723

38 files changed

+132
-152
lines changed

build_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
extern "C" {
1313
#endif
1414

15-
#define ATOS_BUILD_TIME "2025-02-04,16:26"
16-
#define ATOS_COMMIT_HEAD_ID "d85c041e0b12e7bc1bfd22e05f570788e579dc7f"
15+
#define ATOS_BUILD_TIME "2025-02-08,13:51"
16+
#define ATOS_COMMIT_HEAD_ID "856b45196d960eefd586435642a889f397177223"
1717
#define ATOS_VERSION_MAJOR_NUMBER (2u)
1818
#define ATOS_VERSION_MINOR_NUMBER (0u)
19-
#define ATOS_VERSION_PATCH_NUMBER (13u)
19+
#define ATOS_VERSION_PATCH_NUMBER (14u)
2020

2121
#define ATOS_VERSION_MAJOR_NUMBER_MASK (0x03FFu)
2222
#define ATOS_VERSION_MAJOR_NUMBER_POS (22u)

include/CMakeLists.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@ include_directories(${KERNEL_PATH}/include/port)
77

88
target_sources(kernel_include
99
PUBLIC
10-
${KERNEL_PATH}/include/arch/arch.h
11-
${KERNEL_PATH}/include/clock/clock_tick.h
12-
${KERNEL_PATH}/include/port/port.h
10+
${KERNEL_PATH}/include/arch/k_arch.h
11+
${KERNEL_PATH}/include/clock/k_clock_tick.h
12+
${KERNEL_PATH}/include/port/k_port.h
1313

1414
${KERNEL_PATH}/include/at_rtos.h
15-
${KERNEL_PATH}/include/compiler.h
16-
${KERNEL_PATH}/include/configuration.h
17-
${KERNEL_PATH}/include/kernel.h
18-
${KERNEL_PATH}/include/linker.h
19-
${KERNEL_PATH}/include/kstruct.h
15+
${KERNEL_PATH}/include/k_config.h
16+
${KERNEL_PATH}/include/sched_kernel.h
17+
${KERNEL_PATH}/include/k_linker.h
18+
${KERNEL_PATH}/include/k_struct.h
2019
${KERNEL_PATH}/include/postcode.h
21-
${KERNEL_PATH}/include/timer.h
22-
${KERNEL_PATH}/include/trace.h
20+
${KERNEL_PATH}/include/sched_timer.h
21+
${KERNEL_PATH}/include/k_trace.h
2322
${KERNEL_PATH}/include/type_def.h
24-
${KERNEL_PATH}/include/ktype.h
23+
${KERNEL_PATH}/include/k_type.h
2524
${KERNEL_PATH}/include/static_init.h
2625
)
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
* LICENSE file in the root directory of this source tree.
66
**/
77

8-
#ifndef _ARCH_H_
9-
#define _ARCH_H_
8+
#ifndef _K_ARCH_H_
9+
#define _K_ARCH_H_
1010

11-
#include "configuration.h"
12-
13-
#ifdef __cplusplus
14-
extern "C" {
15-
#endif
11+
#include "k_config.h"
1612

1713
typedef enum IRQn {
1814
/****** Cortex-Mx Processor Exceptions Numbers
@@ -116,8 +112,8 @@ typedef enum IRQn {
116112
#error "No ARM Arch is defined in head of this file"
117113
#endif
118114

119-
#ifdef __cplusplus
120-
}
115+
#if !defined(ARCH_NATIVE_GCC)
116+
#include "./arch/arch32/arm/cmsis/include/cmsis_compiler.h"
121117
#endif
122118

123-
#endif /* _ARCH_H_ */
119+
#endif /* _K_ARCH_H_ */

include/at_rtos.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#ifndef _AT_RTOS_H_
88
#define _AT_RTOS_H_
99

10-
#include "ktype.h"
11-
#include "kstruct.h"
12-
#include "configuration.h"
10+
#include "k_type.h"
11+
#include "k_struct.h"
12+
#include "k_config.h"
13+
#include "k_trace.h"
1314
#include "postcode.h"
14-
#include "trace.h"
1515
#include "static_init.h"
1616

1717
#ifdef OS_TYPEDEF_ENABLED
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
**/
7-
#ifndef _CLOCK_TICK_H_
8-
#define _CLOCK_TICK_H_
7+
#ifndef _K_CLOCK_TICK_H_
8+
#define _K_CLOCK_TICK_H_
99

1010
#include "type_def.h"
1111

@@ -25,4 +25,4 @@ void clock_time_enable(void);
2525
void clock_time_disable(void);
2626
void clock_time_init(time_report_handler_t pTime_function);
2727

28-
#endif /* _CLOCK_TICK_H_ */
28+
#endif /* _K_CLOCK_TICK_H_ */

include/compiler.h

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
**/
7-
#ifndef _CONFIGURATION_H_
8-
#define _CONFIGURATION_H_
7+
#ifndef _K_CONFIG_H_
8+
#define _K_CONFIG_H_
99

1010
#include "os_config.h"
1111
#include "../build_version.h"
@@ -119,4 +119,4 @@
119119
#warning Not supported compiler type
120120
#endif
121121

122-
#endif /* _CONFIGURATION_H_ */
122+
#endif /* _K_CONFIG_H_ */

include/linker.h renamed to include/k_linker.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
**/
7-
#ifndef _LINKER_H_
8-
#define _LINKER_H_
7+
#ifndef _K_LINKER_H_
8+
#define _K_LINKER_H_
99

1010
#include "type_def.h"
1111

@@ -97,4 +97,4 @@ void os_memset(void *dst, _u8_t val, _u32_t cnt);
9797
_i32_t os_memcmp(const void *dst, const void *src, _u32_t cnt);
9898
_u32_t os_strlen(const _uchar_t *str);
9999

100-
#endif /* _LINKER_H_ */
100+
#endif /* _K_LINKER_H_ */
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
**/
7-
#ifndef _KSTRUCT_H_
8-
#define _KSTRUCT_H_
7+
#ifndef _K_STRUCT_H_
8+
#define _K_STRUCT_H_
99

1010
#include "type_def.h"
11-
#include "linker.h"
12-
#include "ktype.h"
13-
#include "configuration.h"
11+
#include "k_linker.h"
12+
#include "k_type.h"
13+
#include "k_config.h"
1414

1515
/* Start of section using anonymous unions */
1616
#if defined(__CC_ARM)
@@ -290,4 +290,4 @@ typedef struct {
290290
#pragma warning restore
291291
#endif
292292

293-
#endif /* _KSTRUCT_H_ */
293+
#endif /* _K_STRUCT_H_ */

include/trace.h renamed to include/k_trace.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
**/
7-
#ifndef _TRACE_H_
8-
#define _TRACE_H_
7+
#ifndef _K_TRACE_H_
8+
#define _K_TRACE_H_
99

1010
#include "type_def.h"
11-
#include "linker.h"
12-
#include "kstruct.h"
11+
#include "k_linker.h"
12+
#include "k_struct.h"
1313

1414
typedef void (*pTrace_postcodeFunc_t)(_u32_t, _u32_t);
1515
typedef void (*pTrace_threadFunc_t)(const thread_context_t *pThread);
@@ -21,4 +21,4 @@ _b_t _impl_trace_postcode_failed_get(const pTrace_postcodeFunc_t fn);
2121
void _impl_trace_thread(const pTrace_threadFunc_t fn);
2222
void _impl_trace_analyze(const pTrace_analyzeFunc_t fn);
2323

24-
#endif /* _TRACE_H_ */
24+
#endif /* _K_TRACE_H_ */

0 commit comments

Comments
 (0)