wangchen
d469da29c6
feat: M33平台支持GCC环境的Trustzone
...
【背景】M33平台当前仅支持IAR环境的tz,不满足云雀平台需求。
【修改方案】
1. 将 M33当前已有的IAR trustzone修改为gcc可用。
【影响】
对现有的产品编译不会有影响。
re #I3Y85I
Signed-off-by: wangchen <253227059@qq.com>
2021-06-29 15:16:57 +08:00
openharmony_ci
d0efdfc20d
!169 feat: L0支持低功耗投票框架
...
Merge pull request !169 from zhushengle/PM
2021-06-22 11:55:22 +00:00
zhushengle
558ce14bec
feat: L0 支持低功耗框架
...
1.【需求描述】
L0 支持低功耗投票框架, 使内核与应用、驱动分离开,通过注册及投票机制控制系统的低功耗模式,
减低系统功耗,提升设备电池寿命。
2.【方案描述】
(1).提供注册机制,使驱动与内核分离
(2).提供投票机制,判断系统运行模式
(3).记录持锁设备,便于回溯
进入:系统运行进入idle任务时判断当前的功耗模式,如果上层应用未对当前功耗模式(deep和shutdown)
持锁,则系统准备进入当前模式,首先所有设备依次进入当前模式,如果有设备进入当前模式失败,则恢复
已进入当前模式的所有设备,并且功耗模式变为normal模式;设备依次进入当前功耗模式后cpu再进入当前
功耗模式。
恢复:功耗模式为deep时,需要恢复逻辑,时系统恢复运行。当有中断出发时,系统会退出低功耗模式,
恢复顺序为:首先cpu先恢复,然后设备依次恢复。
BREAKING CHANGE:
1.原调度中基于tick timer的低功耗扩展和当前的pm模块合并,删除原对外接口LOS_SchedSleepInit,
变为pm模块统一提供的LOS_PmRegistered接口.
2.原来在arch los_timer.h下提供的低功耗模式为枚举LOS_SysSleepEnum,其中OS_SYS_NORMAL_SLEEP
和OS_SYS_DEEP_SLEEP不符合对外定义,统一修改为LOS_SYS_NORMAL_SLEEP和LOS_SYS_DEEP_SLEEP,
并移至los_pm.h中.
3.VOID HalEnterSleep(LOS_SysSleepEnum sleep) 变更为UINT32 HalEnterSleep(VOID).
Close #I3UDNV
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Id5382c42c8055ba7850895a3f575130a73e38a65
2021-06-22 13:15:06 +08:00
kenneth
eb668eb9e0
fix: add API LOS_HwiCreate and LOS_HwDelete
...
新增对外接口LOS_HwiCreate、LOS_HwiDelete
close #I3R75F
Signed-off-by: kenneth <459864689@qq.com>
2021-06-18 08:53:22 +08:00
kenneth
ef12c89c7a
fix: fix print format compilation warning
...
fix print format compilation warning by changing 0x%x to 0x%p
close https://gitee.com/openharmony/kernel_liteos_m/issues/I3OFSQ
Signed-off-by: kenneth <459864689@qq.com>
2021-06-10 14:52:47 +08:00
kenneth
bff65877a2
fix: correct the counter of exception type
...
correct the counter of exception type from 19 to 21
close https://gitee.com/openharmony/kernel_liteos_m/issues/I3SR54
Signed-off-by: kenneth <459864689@qq.com>
2021-06-03 20:45:12 +08:00
arvinzzz
2d9bbd2769
fix: 修复不规范的copyright
...
close: #I3SPJ1
Change-Id: I6cb01024ef342a0190f5dc9f6cb3a1e815692832
Signed-off-by: arvinzzz <fcykztyu@163.com>
Change-Id: I45c63592b08d29587778209de6af17f932dc86d0
2021-06-02 11:07:59 +08:00
kenneth
c3eb3e59e6
fix: fix __cplusplus typo
...
remove extra c in macro definition __cpluscplus
close https://gitee.com/openharmony/kernel_liteos_m/issues/I3QQAF
2021-05-18 09:51:34 +08:00
openharmony_ci
5ef2efb347
!118 支持IAR工具的Cortex-m33 TrustZone
...
Merge pull request !118 from JerryH/master
2021-05-17 21:59:13 +08:00
openharmony_ci
0be2ecfdd0
!110 fix: corrent spelling
...
Merge pull request !110 from rtos-lover/los_debug
2021-05-15 09:41:16 +08:00
YOUR_NAME
bcc34e22ed
fix: modify the return type of LOS_IntLock from UINTPTR to UINT32.
...
Change-Id: I6207e5cb7d612a154a88de4e9e274c67127361d8
2021-05-14 11:33:05 +08:00
YOUR_NAME
c70ef201f3
Add Cortex-m33 TrustZone about IAR
...
close #I3MX1F
Change-Id: I449b01ad7ac714412a26bb9f3a6b723a6c74ca3f
2021-05-11 10:45:52 +08:00
rtos-lover
02ac3ade30
fix:correct spelling
...
corrent those typos in log_debug.h los_exc.S
close https://gitee.com/openharmony/kernel_liteos_m/issues/I3PVZV
2021-05-08 10:00:57 +08:00
openharmony_ci
032f96e7d6
!102 fix: include file log_config.h in los_mpu.c
...
Merge pull request !102 from kenneth/master
2021-04-30 08:35:44 +08:00
kenneth
1932d714a5
fix: include file log_config.h in los_mpu.c
...
include log_config.h in kernel\arch\arm\cortex-m7\iar\los_mpu.c to solve compilation issue
close https://gitee.com/openharmony/kernel_liteos_m/issues/I3OHY2
2021-04-29 15:23:44 +08:00
zhushengle
2f9bfcc6ee
fix: L0 GN compilation problem
...
Close: #I3ORHS
Change-Id: Ia105084336f2ba66f91546226a9383646a0148ce
2021-04-29 10:38:54 +08:00
openharmony_ci
1f725147f3
!96 fix:Fixed kernel error with header protector and header comment description.
...
Merge pull request !96 from zhushengle/others
2021-04-28 09:09:07 +08:00
openharmony_ci
e638d1a41a
!60 Add support for Nuclei RISC-V 32 bit processor in LiteOS-M of OpenHarmony
...
Merge pull request !60 from linzewenTin/dev_nuclei
2021-04-27 20:43:55 +08:00
zhushengle
3907238b0f
fix:Fixed kernel error with header protector and header comment description.
...
Close #I3O4SF
Change-Id: I544cde728fb8131d199a21be440ae02da2fe21fb
2021-04-26 21:13:55 +08:00
Caoruihong
4d556fbe90
use top third_party
...
Change-Id: I382b10ef7a6adc328777349bce142e58895f7c8d
2021-04-26 17:11:56 +08:00
linzewen
70620b1cb6
Kernel: Remove unused function
...
Signed-off-by: linzewen <linzewen@nucleisys.com>
2021-04-25 20:58:53 -07:00
linzewen
4475439ca1
Kernel:Fix typo
...
Signed-off-by: linzewen <linzewen@nucleisys.com>
2021-04-25 20:08:41 -07:00
linzewen
dab3a81ac7
Kernel: Update task switch and delete some unused variables
...
Signed-off-by: linzewen <linzewen@nucleisys.com>
2021-04-25 19:55:37 -07:00
openharmony_ci
b8cd812303
!83 fix:Provide a system CPU wait interface
...
Merge pull request !83 from zhushengle/master
2021-04-25 17:32:38 +08:00
linzewen
1639cf484d
Target:Fix typo
...
Signed-off-by: linzewen <linzewen@nucleisys.com>
2021-04-25 02:25:13 -07:00
linzewen
6c60393567
kernel: update nuclei risc-v porting code
...
Signed-off-by: linzewen <linzewen@nucleisys.com>
2021-04-25 02:19:24 -07:00
linzewen
4170e57f18
Fix some issues
...
Move some functions from head file to c file
Change interrupt function argument
The "hwiPrio" argument high 16 bit for level and low 16 bit for priority
Signed-off-by: linzewen <linzewen@nucleisys.com>
2021-04-25 02:19:24 -07:00
linzewen
6c8da43bc9
Add Nuclei RISC-V support
...
This kernel is setup for rv32 arch with gcc compiler.
Signed-off-by: linzewen <linzewen@nucleisys.com>
2021-04-25 02:19:24 -07:00
openharmony_ci
f96848e4ce
!85 fix some typos
...
Merge pull request !85 from kenneth/master
2021-04-25 15:30:16 +08:00
openharmony_ci
8168885709
!82 加入FatFs同时修正BUILD.gn中third_party路径
...
Merge pull request !82 from Caoruihong/fix_thirdparty_path
2021-04-23 17:57:13 +08:00
zhushengle
adaf6cf7c5
fix:Change the interface to LOS_UDelay and change the input parameter to microsecond.
...
Close #I3NT3Y
Change-Id: Iae33e0aff59480342b07bb4fd2e66969a09affb3
2021-04-23 17:33:27 +08:00
kenneth
f6b8cab253
fix: fix some typo issues
...
change 'LOS_MOUDLE_ID' to 'LOS_MODULE_ID', change 'a interrupt' to 'an interrupt', change 'HalIsIntAcvive' to 'HalIsIntActive' and other typos.
close https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNOQ , https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNR6 , https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNTL , https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNQ1
2021-04-23 17:19:01 +08:00
openharmony_ci
3ca3a3e250
!80 fix: fix some misspell in comments
...
Merge pull request !80 from rtos-lover/master
2021-04-23 14:42:16 +08:00
Caoruihong
ad1e09ff77
add third_party FatFs and fix BUILD.gn
...
Change-Id: I456530ca5282d6c4b0904d04ae0a0a5ff155391a
2021-04-23 12:05:48 +08:00
zhushengle
afdda22821
fix:Solution of conflict
...
Change-Id: If2565e5942ca019865720d56dd8bda1617044e6d
2021-04-22 14:33:20 +08:00
openharmony_ci
77581810c3
!77 通过git submodule使用third_party组件
...
Merge pull request !77 from Caoruihong/third_party
2021-04-22 11:48:25 +08:00
rtos-lover
457281427b
fix: fix misspell in comments
...
change misspell __cpluscplus to __cplusplus
close https://gitee.com/openharmony/kernel_liteos_m/issues/I3NG3P?from=project-issue
2021-04-21 18:29:53 +08:00
Caoruihong
14f0d7286a
move noreturn attribute in front
...
Change-Id: I267fa3fcaa068fe9465231a5edac531b1b539eda
2021-04-21 17:19:07 +08:00
Caoruihong
b70f2c3e91
use third_party by git submodules
...
Change-Id: I1e2fe3e887c5ec528921534d4618d89d8cf90759
2021-04-21 16:53:49 +08:00
zhushengle
793d2139b2
fix:Solution of conflict.
...
Close #I3IK07
Change-Id: I6913691a28c90b54fbda233209d43b981884f10c
2021-04-20 14:56:26 +08:00
Caoruihong
3cea0e42b1
remove __cplusplus guards in .c files
...
Change-Id: Ie25b83a42d3ca35c3a6d624ef01f425a85957d7f
2021-04-19 18:19:28 +08:00
zhushengle
bad8c3d53b
IssueNo:#I3IK07
...
Description:LOS_SysCycleGet replace HalCpuCycleGet
Sig:kernel
Feature or Bugfix:Feature
Binary Source:No
Change-Id: Ife3a4d351818f718f58d3624b5ee6dd127113378
2021-04-17 16:07:51 +08:00
zhushengle
c5f517667a
IssueNo:#I3IK07
...
Description:Resolve the conflict.
Feature or Bugfix:Feature
Binary Source:No
Change-Id: I882dcb9e523cab30e6ab4889099984fe0302f92e
2021-04-17 11:03:45 +08:00
zhushengle
3ae472f739
IssueNo:#I3IK07
...
Description:HalGetCpuCycle cancel the weak attribute
Sig:kernel
Feature or Bugfix:Feature
Binary Source:No
Change-Id: Ic88577e70626f760a8831ef98d7cda95b9dfaad4
2021-04-17 10:49:39 +08:00
openharmony_ci
d11a206619
!72 为LOS_Panic等函数添加noreturn属性
...
Merge pull request !72 from Caoruihong/noreturn
2021-04-17 09:24:12 +08:00
openharmony_ci
7fdbff3851
!66 优化HalSetRtcTime之类接口定义及说明
...
Merge pull request !66 from Caoruihong/RtcTime
2021-04-17 09:23:49 +08:00
Caoruihong
6bf6efdc7e
add noreturn attribute for LOS_Panic LOS_Reboot and HalSysExit
...
Change-Id: I65bbdd3d60aa754a389f9371649a96483d2a6f8a
2021-04-16 19:32:01 +08:00
zhushengle
49be405820
Merge remote-tracking branch 'origin/master' into HEAD
...
Change-Id: I9a1458b1344f89ca04cab96c3599c9cfea757929
2021-04-16 19:22:07 +08:00
Caoruihong
1732679354
optimize Hal<Set/Get>Rtc<Time/Timezone> APIs
...
Change-Id: I2ba4b2d05c59f6c7532526fff0f2587b5b6719f0
2021-04-16 11:58:05 +08:00
arvinzzz
84a9f65597
Description: The hook adaptation layer adds support for interrupts on other platforms.
...
Change-Id: I09636885b2edf893322ea5fb0eabef02266875a0
2021-04-15 15:53:30 +08:00