Skip to content

Commit 1071def

Browse files
committed
Add init function interface in At_RTOS.
1 parent b31c4cf commit 1071def

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
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-08,13:51"
16-
#define ATOS_COMMIT_HEAD_ID "856b45196d960eefd586435642a889f397177223"
15+
#define ATOS_BUILD_TIME "2025-02-08,16:28"
16+
#define ATOS_COMMIT_HEAD_ID "b31c4cff12d8f6c409fb649fe15ccc78a7c18e75"
1717
#define ATOS_VERSION_MAJOR_NUMBER (2u)
1818
#define ATOS_VERSION_MINOR_NUMBER (0u)
19-
#define ATOS_VERSION_PATCH_NUMBER (14u)
19+
#define ATOS_VERSION_PATCH_NUMBER (15u)
2020

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

include/at_rtos.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ typedef struct evt_val os_evt_val_t;
8181
#define OS_SUBSCRIBE_INIT(id_name, pDataAddr, size) INIT_OS_SUBSCRIBE_DEFINE(id_name, pDataAddr, size)
8282
#define OS_PUBLISH_INIT(id_name, pDataAddr, size) INIT_OS_PUBLISH_DEFINE(id_name, pDataAddr, size)
8383

84+
#define OS_FUNC_PRIO_0 (INIT_LEVEL_0)
85+
#define OS_FUNC_PRIO_1 (INIT_LEVEL_1)
86+
#define OS_FUNC_PRIO_2 (INIT_LEVEL_2)
87+
#define OS_FUNC_PRIO_3 (INIT_LEVEL_3)
88+
#define OS_FUNC_PRIO_4 (INIT_LEVEL_4)
89+
#define OS_FUNC_INIT(init_fn, prio) INIT_FUNC_DEFINE(init_fn, prio)
90+
8491
extern _u32_t impl_kernel_irq_disable(void);
8592
extern void impl_kernel_irq_enable(_u32_t val);
8693
struct foreach_item {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "At-RTOS",
33
"homepage": "https://github.com/At-EC/At-RTOS",
4-
"version": "2.0.14",
5-
"timestamp": "2025-02-08,13:51",
6-
"commit_id": "d85c041e0b12e7bc1bfd22e05f570788e579dc7f"
4+
"version": "2.0.15",
5+
"timestamp": "2025-02-08,16:28",
6+
"commit_id": "856b45196d960eefd586435642a889f397177223"
77
}

0 commit comments

Comments
 (0)