Skip to content

Commit

Permalink
Add static object init, preempt and cooperation schedule feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
At-EC committed Jan 4, 2025
1 parent 0f76bfa commit 89d6ae5
Show file tree
Hide file tree
Showing 39 changed files with 1,859 additions and 3,812 deletions.
6 changes: 3 additions & 3 deletions build_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
extern "C" {
#endif

#define ATOS_BUILD_TIME "2024-11-09,17:36"
#define ATOS_COMMIT_HEAD_ID "1b1d7b46ad853be05c9457cb5678884d09469fa3"
#define ATOS_BUILD_TIME "2025-01-04,14:34"
#define ATOS_COMMIT_HEAD_ID "0f76bfa999392681d06420ef38fe42551267c450"
#define ATOS_VERSION_MAJOR_NUMBER (1u)
#define ATOS_VERSION_MINOR_NUMBER (7u)
#define ATOS_VERSION_PATCH_NUMBER (6u)
#define ATOS_VERSION_PATCH_NUMBER (7u)

#define ATOS_VERSION_MAJOR_NUMBER_MASK (0x03FFu)
#define ATOS_VERSION_MAJOR_NUMBER_POS (22u)
Expand Down
8 changes: 0 additions & 8 deletions clock/clock_native_gcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
**/

#include "clock_tick.h"
#include "configuration.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* Data structure for location time clock
*/
Expand Down Expand Up @@ -137,6 +132,3 @@ void clock_time_init(time_report_handler_t pTime_function)
/* Nothing need to do for kernel cmake sample build. */
}

#ifdef __cplusplus
}
#endif
8 changes: 0 additions & 8 deletions clock/clock_systick.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
**/

#include "clock_tick.h"
#include "configuration.h"
#include "arch.h"
#include "ktype.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Convert the microsecond to clock count */
#define _CONVERT_MICROSENCOND_TO_COUNT(us) ((u32_t)(us) * (PORTAL_SYSTEM_CORE_CLOCK_MHZ)-1u)

Expand Down Expand Up @@ -259,6 +254,3 @@ void clock_time_init(time_report_handler_t pTime_function)
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk;
}

#ifdef __cplusplus
}
#endif
4 changes: 2 additions & 2 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include_directories(${KERNEL_PATH}/include/kernel)
target_sources(kernel_include
PUBLIC
${KERNEL_PATH}/include/arch.h

${KERNEL_PATH}/include/kernel/at_rtos.h
${KERNEL_PATH}/include/kernel/compiler.h
${KERNEL_PATH}/include/kernel/configuration.h
Expand All @@ -16,6 +16,6 @@ target_sources(kernel_include
${KERNEL_PATH}/include/kernel/postcode.h
${KERNEL_PATH}/include/kernel/timer.h
${KERNEL_PATH}/include/kernel/trace.h
${KERNEL_PATH}/include/kernel/typedef.h
${KERNEL_PATH}/include/kernel/type_def.h
${KERNEL_PATH}/include/kernel/ktype.h
)
11 changes: 1 addition & 10 deletions include/clock_tick.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
**/

#ifndef _CLOCK_TICK_H_
#define _CLOCK_TICK_H_

#include "typedef.h"

#ifdef __cplusplus
extern "C" {
#endif
#include "type_def.h"

/**
* Function pointer structure for the clock tells how much time has passed.
Expand All @@ -30,8 +25,4 @@ void clock_time_enable(void);
void clock_time_disable(void);
void clock_time_init(time_report_handler_t pTime_function);

#ifdef __cplusplus
}
#endif

#endif /* _CLOCK_TICK_H_ */
Loading

0 comments on commit 89d6ae5

Please sign in to comment.