Merge branch 'master' of gitee.com:openharmony/kernel_liteos_m into 0529hook_fix
This commit is contained in:
commit
b4cfdcfbf5
4
BUILD.gn
4
BUILD.gn
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -15,11 +15,17 @@ The OpenHarmony LiteOS Cortex-M is the kernel designed for the lightweight opera
|
||||||
|
|
||||||
## Directory Structure<a name="section161941989596"></a>
|
## Directory Structure<a name="section161941989596"></a>
|
||||||
|
|
||||||
|
The directory structure is listed as below, for the detailed directories, please refer to [arch_spec.md](arch_spec.md).
|
||||||
|
|
||||||
```
|
```
|
||||||
/kernel/liteos_m
|
/kernel/liteos_m
|
||||||
├── components # Optional components
|
├── components # Optional components
|
||||||
|
│ ├── backtrace # Backtrace support
|
||||||
│ ├── cppsupport # C++ support
|
│ ├── cppsupport # C++ support
|
||||||
│ └── cpup # CPU possession (CPUP)
|
│ ├── cpup # CPU possession (CPUP)
|
||||||
|
│ ├── exchook # Exception hook
|
||||||
|
│ ├── fs # File system
|
||||||
|
│ └── net # Network support
|
||||||
├── kal # Kernel abstraction layer
|
├── kal # Kernel abstraction layer
|
||||||
│ ├── cmsis # CMSIS-compliant API support
|
│ ├── cmsis # CMSIS-compliant API support
|
||||||
│ └── posix # POSIX API support
|
│ └── posix # POSIX API support
|
||||||
|
|
14
README_zh.md
14
README_zh.md
|
@ -15,11 +15,17 @@ OpenHarmony LiteOS-M内核是面向IoT领域构建的轻量级物联网操作系
|
||||||
|
|
||||||
## 目录<a name="section161941989596"></a>
|
## 目录<a name="section161941989596"></a>
|
||||||
|
|
||||||
|
目录结构如下,详细目录请参考[arch_spec_zh.md](arch_spec_zh.md)。
|
||||||
|
|
||||||
```
|
```
|
||||||
/kernel/liteos_m
|
/kernel/liteos_m
|
||||||
├── components # 可选组件
|
├── components # 可选组件
|
||||||
|
│ ├── backtrace # 回溯栈支持
|
||||||
│ ├── cppsupport # C++支持
|
│ ├── cppsupport # C++支持
|
||||||
│ └── cpup # CPUP功能
|
│ ├── cpup # CPUP功能
|
||||||
|
│ ├── exchook # 异常钩子
|
||||||
|
│ ├── fs # 文件系统
|
||||||
|
│ └── net # Network功能
|
||||||
├── kal # 内核抽象层
|
├── kal # 内核抽象层
|
||||||
│ ├── cmsis # cmsis标准接口支持
|
│ ├── cmsis # cmsis标准接口支持
|
||||||
│ └── posix # posix标准接口支持
|
│ └── posix # posix标准接口支持
|
||||||
|
@ -41,11 +47,11 @@ OpenHarmony LiteOS-M内核是面向IoT领域构建的轻量级物联网操作系
|
||||||
|
|
||||||
## 使用说明<a name="section3732185231214"></a>
|
## 使用说明<a name="section3732185231214"></a>
|
||||||
|
|
||||||
OpenHarmony LiteOS-M内核的编译构建系统是一个基于gn和ninja的组件化构建系统,支持按组件配置、裁剪和拼装,按需构建出定制化的产品。编译构建系统的详细信息可以参考[官方开源站点编译系统介绍](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/porting/%E7%BC%96%E8%AF%91%E7%B3%BB%E7%BB%9F%E4%BB%8B%E7%BB%8D.md)。本文主要介绍如何基于gn和ninja编译LiteOS-M工程,GCC+Makefile、IAR、Keil MDK等编译方式可以参考社区爱好者贡献的站点。
|
OpenHarmony LiteOS-M内核的编译构建系统是一个基于gn和ninja的组件化构建系统,支持按组件配置、裁剪和拼装,按需构建出定制化的产品。编译构建系统的详细信息可以参考[轻量和小型系统编译构建指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/%E8%BD%BB%E9%87%8F%E5%92%8C%E5%B0%8F%E5%9E%8B%E7%B3%BB%E7%BB%9F%E7%BC%96%E8%AF%91%E6%9E%84%E5%BB%BA%E6%8C%87%E5%AF%BC.md)。本文主要介绍如何基于gn和ninja编译LiteOS-M工程,GCC+Makefile、IAR、Keil MDK等编译方式可以参考社区爱好者贡献的站点。
|
||||||
|
|
||||||
### 搭建系统基础环境
|
### 搭建系统基础环境
|
||||||
|
|
||||||
在搭建各个开发板环境前,需要完成OpenHarmony系统基础环境搭建。系统基础环境主要是指OpenHarmony的编译环境和开发环境,详细介绍请参考官方站点[搭建系统基础环境](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/%E6%90%AD%E5%BB%BA%E7%B3%BB%E7%BB%9F%E5%9F%BA%E7%A1%80%E7%8E%AF%E5%A2%83.md)。开发者需要根据环境搭建文档,完成下述软件的安装:Python3.7+、gn、ninja、hb。对于LiteOS-M内核,还需要安装Make构建工具和[ARM GCC编译工具链](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads)。
|
在搭建各个开发板环境前,需要完成OpenHarmony系统基础环境搭建。系统基础环境主要是指OpenHarmony的编译环境和开发环境,详细介绍请参考官方站点[Ubuntu编译环境准备](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/Ubuntu%E7%BC%96%E8%AF%91%E7%8E%AF%E5%A2%83%E5%87%86%E5%A4%87.md)。开发者需要根据环境搭建文档,完成下述软件的安装:Python3.7+、gn、ninja、hb。对于LiteOS-M内核,还需要安装Make构建工具和[ARM GCC编译工具链](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads)。
|
||||||
|
|
||||||
### 获取OpenHarmony源码
|
### 获取OpenHarmony源码
|
||||||
|
|
||||||
|
@ -62,6 +68,8 @@ git clone https://gitee.com/harylee/nucleo_f767zi.git
|
||||||
假设克隆到的代码目录为`~/nucleo_f767zi`。 执行如下命令把代码目录的`device`、`vendor`目录复制到`openHarmony`工程的相应目录。
|
假设克隆到的代码目录为`~/nucleo_f767zi`。 执行如下命令把代码目录的`device`、`vendor`目录复制到`openHarmony`工程的相应目录。
|
||||||
|
|
||||||
```
|
```
|
||||||
|
mkdir ~/openHarmony/device/st
|
||||||
|
|
||||||
cp -r ~/nucleo_f767zi/device/st/nucleo_f767zi ~/openHarmony/device/st/nucleo_f767zi
|
cp -r ~/nucleo_f767zi/device/st/nucleo_f767zi ~/openHarmony/device/st/nucleo_f767zi
|
||||||
|
|
||||||
chmod +x ~/openHarmony/device/st/nucleo_f767zi/build.sh
|
chmod +x ~/openHarmony/device/st/nucleo_f767zi/build.sh
|
||||||
|
|
94
arch_spec.md
94
arch_spec.md
|
@ -1,52 +1,76 @@
|
||||||
```
|
```
|
||||||
.
|
.
|
||||||
├── components --- Optional components
|
├── components --- Components available for porting and header files exposed externally
|
||||||
|
│ ├── backtrace --- Backtrace
|
||||||
│ ├── cppsupport --- C++
|
│ ├── cppsupport --- C++
|
||||||
│ └── cpup --- CPUP
|
│ ├── cpup --- CPUP
|
||||||
├── kal --- Kernel Abstraction Layer
|
│ ├── exchook --- Exception hook
|
||||||
│ ├── cmsis --- cmsis
|
│ ├── fs --- File System
|
||||||
│ └── posix --- posix
|
│ └── net --- Network
|
||||||
├── kernel --- Minimalistic kernel funtionalities
|
├── kal --- Kernel Abstraction Layer, APIs exposed externally, including CMSIS APIs and part of POSIX APIs
|
||||||
│ ├── arch --- Support for hardware architectures
|
│ ├── cmsis --- CMSIS
|
||||||
│ │ ├── arm --- arm32
|
│ └── posix --- POSIX
|
||||||
│ │ │ └── cortex-m4 --- cortex-m4
|
├── kernel --- Code for defining the minimum kernel function set
|
||||||
│ │ │ └── iar
|
│ ├── arch --- Code of the kernel instruction architecture layer
|
||||||
│ │ │ ├── los_atomic.h
|
│ │ ├── arm --- ARM32 architecture
|
||||||
│ │ │ ├── los_context.h
|
│ │ │ ├── cortex-m3 --- Cortex-m3 architecture
|
||||||
│ │ │ ├── los_interrupt.h
|
│ │ │ │ └── keil --- Implementation of the Keil toolchain
|
||||||
│ │ │ └── los_mpu.h
|
│ │ │ ├── cortex-m33 --- Cortex-m33 architecture
|
||||||
|
│ │ │ │ │── gcc --- Implementation of the GCC toolchain
|
||||||
|
│ │ │ │ └── iar --- Implementation of the IAR toolchain
|
||||||
|
│ │ │ └── cortex-m4 --- Cortex-m4 architecture
|
||||||
|
│ │ │ │ │── gcc --- Implementation of the GCC toolchain
|
||||||
|
│ │ │ │ └── iar --- Implementation of the IAR toolchain
|
||||||
|
│ │ │ └── cortex-m7 --- Cortex-m7 architecture
|
||||||
|
│ │ │ │ │── gcc --- Implementation of the GCC toolchain
|
||||||
|
│ │ │ │ └── iar --- Implementation of the IAR toolchain
|
||||||
|
│ │ ├── risc-v --- Risc-v architecture
|
||||||
|
│ │ │ ├── nuclei --- Nuclei architecture
|
||||||
|
│ │ │ │ └── gcc --- Implementation of the GCC toolchain
|
||||||
|
│ │ │ └── riscv32 --- Riscv32 architecture
|
||||||
|
│ │ │ │ └── gcc --- Implementation of the GCC toolchain
|
||||||
│ │ └── include
|
│ │ └── include
|
||||||
│ │ ├── los_arch_atomic.h --- Atomic operations
|
│ │ ├── los_arch.h --- Arch initialization
|
||||||
│ │ ├── los_arch_context.h --- Context switch
|
│ │ ├── los_atomic.h --- Atomic operations
|
||||||
│ │ ├── los_arch.h --- Initialization
|
│ │ ├── los_context.h --- Context switch
|
||||||
│ │ └── los_arch_interrupt.h --- Interrupts
|
│ │ ├── los_interrupt.h --- Interrupts
|
||||||
|
│ │ ├── los_mpu.h --- Memory protection unit operations
|
||||||
|
│ │ └── los_timer.h --- Timer operations
|
||||||
│ ├── include
|
│ ├── include
|
||||||
│ │ ├── los_config.h --- Configuration parameters
|
│ │ ├── los_config.h --- Configuration parameters
|
||||||
│ │ ├── los_event.h --- Events management
|
│ │ ├── los_event.h --- Events management
|
||||||
│ │ ├── los_liteos.h --- Kernel types and functions
|
│ │ ├── los_membox.h --- Membox management
|
||||||
│ │ ├── los_memory.h --- Heap memory management
|
│ │ ├── los_memory.h --- Heap memory management
|
||||||
│ │ ├── los_mutex.h --- Mutex
|
│ │ ├── los_mux.h --- Mutex
|
||||||
│ │ ├── los_queue.h --- Queue
|
│ │ ├── los_queue.h --- Queue
|
||||||
│ │ ├── los_scheduler.h --- Scheduler
|
│ │ ├── los_sched.h --- Scheduler
|
||||||
│ │ ├── los_sem.h --- Semaphores
|
│ │ ├── los_sem.h --- Semaphores
|
||||||
|
│ │ ├── los_sortlink.h --- Sort link
|
||||||
|
│ │ ├── los_swtmr.h --- Timer
|
||||||
│ │ ├── los_task.h --- Tasks
|
│ │ ├── los_task.h --- Tasks
|
||||||
│ │ └── los_timer.h --- Timer
|
│ │ └── los_tick.h --- Tick
|
||||||
│ └── src
|
│ └── src
|
||||||
├── targets
|
├── targets
|
||||||
│ └── targets
|
│ └── targets
|
||||||
│ └── cortex-m4_stm32f429ig_fire-challenger_iar
|
│ └── riscv_nuclei_demo_soc_gcc
|
||||||
│ ├── board
|
│ │ ├── GCC --- Compilation config
|
||||||
│ ├── dprintf.c
|
│ │ ├── OS_CONFIG --- Board config
|
||||||
│ ├── Libraries
|
│ │ ├── SoC --- SOC codes
|
||||||
│ ├── main.c
|
│ │ └── Src --- Application codes
|
||||||
│ ├── project
|
│ └── riscv_nuclei_gd32vf103_soc_gcc
|
||||||
│ ├── target_config.h --- Hardware target configuration
|
│ └── riscv_sifive_fe310_gcc
|
||||||
│ └── Utilities
|
|
||||||
└── utils
|
└── utils
|
||||||
├── include
|
├── internal
|
||||||
│ ├── los_compiler.h --- Compiler configuration
|
├── BUILD.gn --- Gn build config file
|
||||||
│ ├── los_debug.h --- Debugging facilities
|
├── los_compiler.h --- Compiler configuration
|
||||||
│ ├── los_error.h --- Errors codes and definitions
|
├── los_debug.c --- Debugging facilities
|
||||||
│ └── los_list.h
|
├── los_debug.h
|
||||||
|
├── los_error.c --- Errors codes and definitions
|
||||||
|
├── los_error.h
|
||||||
|
├── los_hook.c --- Hook function facilities
|
||||||
|
├── los_hook.h
|
||||||
|
├── los_list.h --- Doubly linked list
|
||||||
|
└── los_reg.h --- Register macros
|
||||||
└── src
|
└── src
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,76 @@
|
||||||
|
```
|
||||||
|
.
|
||||||
|
├── components --- 移植可选组件,依赖内核,单独对外提供头文件
|
||||||
|
│ ├── backtrace --- 回溯栈支持
|
||||||
|
│ ├── cppsupport --- C++支持
|
||||||
|
│ ├── cpup --- CPUP功能
|
||||||
|
│ ├── exchook --- 异常钩子
|
||||||
|
│ ├── fs --- 文件系统
|
||||||
|
│ └── net --- 网络功能
|
||||||
|
├── kal --- 内核抽象层,提供内核对外接口,当前支持CMSIS接口和部分POSIX接口
|
||||||
|
│ ├── cmsis --- CMSIS标准支持
|
||||||
|
│ └── posix --- POSIX标准支持
|
||||||
|
├── kernel --- 内核最小功能集代码
|
||||||
|
│ ├── arch --- 内核指令架构层代码
|
||||||
|
│ │ ├── arm --- ARM32架构
|
||||||
|
│ │ │ ├── cortex-m3 --- Cortex-m3架构
|
||||||
|
│ │ │ │ └── keil --- Keil编译工具链实现
|
||||||
|
│ │ │ ├── cortex-m33 --- Cortex-m33架构
|
||||||
|
│ │ │ │ │── gcc --- GCC编译工具链实现
|
||||||
|
│ │ │ │ └── iar --- IAR编译工具链实现
|
||||||
|
│ │ │ └── cortex-m4 --- Cortex-m4架构
|
||||||
|
│ │ │ │ │── gcc --- GCC编译工具链实现
|
||||||
|
│ │ │ │ └── iar --- IAR编译工具链实现
|
||||||
|
│ │ │ └── cortex-m7 --- Cortex-m7架构
|
||||||
|
│ │ │ │ │── gcc --- GCC编译工具链实现
|
||||||
|
│ │ │ │ └── iar --- IAR编译工具链实现
|
||||||
|
│ │ ├── risc-v --- Risc-v架构
|
||||||
|
│ │ │ ├── nuclei --- Nuclei架构
|
||||||
|
│ │ │ │ └── gcc --- GCC编译工具链实现
|
||||||
|
│ │ │ └── riscv32 --- Riscv32架构
|
||||||
|
│ │ │ │ └── gcc --- GCC编译工具链实现
|
||||||
|
│ │ └── include
|
||||||
|
│ │ ├── los_arch.h --- 定义arch初始化
|
||||||
|
│ │ ├── los_atomic.h --- 定义通用arch原子操作
|
||||||
|
│ │ ├── los_context.h --- 定义通用arch上下文切换
|
||||||
|
│ │ ├── los_interrupt.h --- 定义通用arch中断
|
||||||
|
│ │ ├── los_mpu.h --- 定义通用arch内存保护
|
||||||
|
│ │ └── los_timer.h --- 定义通用arch定时器
|
||||||
|
│ ├── include
|
||||||
|
│ │ ├── los_config.h --- 功能开关和配置参数
|
||||||
|
│ │ ├── los_event.h --- 事件
|
||||||
|
│ │ ├── los_membox.h --- 静态内存管理
|
||||||
|
│ │ ├── los_memory.h --- 动态内存管理
|
||||||
|
│ │ ├── los_mux.h --- 互斥锁
|
||||||
|
│ │ ├── los_queue.h --- 队列
|
||||||
|
│ │ ├── los_sched.h --- 调度算法
|
||||||
|
│ │ ├── los_sem.h --- 信号量
|
||||||
|
│ │ ├── los_sortlink.h --- 排序链表
|
||||||
|
│ │ ├── los_swtmr.h --- 定时器
|
||||||
|
│ │ ├── los_task.h --- 任务
|
||||||
|
│ │ └── los_tick.h --- Tick时钟
|
||||||
|
└── src
|
||||||
|
├── targets
|
||||||
|
│ └── targets
|
||||||
|
│ └── riscv_nuclei_demo_soc_gcc
|
||||||
|
│ │ ├── GCC --- 编译相关
|
||||||
|
│ │ ├── OS_CONFIG --- 开发板配置功能开关和配置参数
|
||||||
|
│ │ ├── SoC --- SOC相关代码
|
||||||
|
│ │ └── Src --- Application相关代码
|
||||||
|
│ └── riscv_nuclei_gd32vf103_soc_gcc
|
||||||
|
│ └── riscv_sifive_fe310_gcc
|
||||||
|
└── utils
|
||||||
|
├── internal
|
||||||
|
├── BUILD.gn --- Gn构建文件
|
||||||
|
├── los_compiler.h --- 编译工具配置,类型定义
|
||||||
|
├── los_debug.c --- Debug,printf相关
|
||||||
|
├── los_debug.h
|
||||||
|
├── los_error.c --- 错误处理
|
||||||
|
├── los_error.h
|
||||||
|
├── los_hook.c --- 钩子函数注册和调用
|
||||||
|
├── los_hook.h
|
||||||
|
├── los_list.h --- 双向链表
|
||||||
|
└── los_reg.h --- 寄存器读写宏定义
|
||||||
|
└── src
|
||||||
|
```
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -188,11 +188,7 @@ int timer_settime(timer_t timerID, int flags,
|
||||||
intSave = LOS_IntLock();
|
intSave = LOS_IntLock();
|
||||||
swtmr = OS_SWT_FROM_SID(swtmrID);
|
swtmr = OS_SWT_FROM_SID(swtmrID);
|
||||||
swtmr->ucMode = (interval ? LOS_SWTMR_MODE_PERIOD : LOS_SWTMR_MODE_NO_SELFDELETE);
|
swtmr->ucMode = (interval ? LOS_SWTMR_MODE_PERIOD : LOS_SWTMR_MODE_NO_SELFDELETE);
|
||||||
if (interval) {
|
swtmr->uwInterval = (interval ? interval : expiry);
|
||||||
swtmr->uwInterval = interval;
|
|
||||||
} else {
|
|
||||||
swtmr->uwInterval = expiry;
|
|
||||||
}
|
|
||||||
|
|
||||||
LOS_IntRestore(intSave);
|
LOS_IntRestore(intSave);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
* Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
|
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
# Copyright (c) 2020-2021, Huawei Device Co., Ltd. All rights reserved.
|
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without modification,
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# are permitted provided that the following conditions are met:
|
# are permitted provided that the following conditions are met:
|
||||||
|
|
Loading…
Reference in New Issue