diff --git a/arch/arm/cortex-m4/coreclock.c b/arch/arm/cortex-m4/coreclock.c index 1b03f6d2a..9d0593ec2 100644 --- a/arch/arm/cortex-m4/coreclock.c +++ b/arch/arm/cortex-m4/coreclock.c @@ -51,12 +51,23 @@ /** * @file coreclock.c -* @brief derived from ST standard peripheral library +* @brief support SystemCoreClockUpdate function * @version 1.0 * @author AIIT XUOS Lab -* @date 2021-04-25 +* @date 2021-04-29 */ +/************************************************* +File name: coreclock.c +Description: support SystemCoreClockUpdate function +Others: +History: +1. Date: 2021-04-29 +Author: AIIT XUOS Lab +Modification: +1. take system_stm32f4xx.c for XiUOS +*************************************************/ + #include "stm32f4xx.h" uint32_t system_core_clock = 16000000; diff --git a/arch/arm/cortex-m4/interrupt.c b/arch/arm/cortex-m4/interrupt.c index 029db1e56..d1393528f 100644 --- a/arch/arm/cortex-m4/interrupt.c +++ b/arch/arm/cortex-m4/interrupt.c @@ -10,6 +10,14 @@ * See the Mulan PSL v2 for more details. */ +/** +* @file interrupt.c +* @brief support arm cortex-m4 interrupt function +* @version 1.0 +* @author AIIT XUOS Lab +* @date 2021-04-29 +*/ + #include #include #include diff --git a/arch/arm/cortex-m4/system_init.c b/arch/arm/cortex-m4/system_init.c index 2ac3edce5..bde593cf3 100644 --- a/arch/arm/cortex-m4/system_init.c +++ b/arch/arm/cortex-m4/system_init.c @@ -50,13 +50,24 @@ */ /** -* @file coreclock.c -* @brief derived from ST standard peripheral library +* @file system_init.c +* @brief support SystemInit function * @version 1.0 * @author AIIT XUOS Lab -* @date 2021-04-25 +* @date 2021-04-29 */ +/************************************************* +File name: system_init.c +Description: support SystemInit function +Others: +History: +1. Date: 2021-04-29 +Author: AIIT XUOS Lab +Modification: +1. take system_stm32f4xx.c for XiUOS +*************************************************/ + #include "stm32f4xx.h" #if !defined (HSE_VALUE) diff --git a/arch/risc-v/k210/interrupt.c b/arch/risc-v/k210/interrupt.c index c081d8215..9edc34fff 100644 --- a/arch/risc-v/k210/interrupt.c +++ b/arch/risc-v/k210/interrupt.c @@ -1,15 +1,38 @@ -/* -* Copyright (c) 2020 AIIT XUOS Lab -* XiUOS is licensed under Mulan PSL v2. -* You can use this software according to the terms and conditions of the Mulan PSL v2. -* You may obtain a copy of Mulan PSL v2 at: -* http://license.coscl.org.cn/MulanPSL2 -* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, -* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, -* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. -* See the Mulan PSL v2 for more details. +/* Copyright 2018 Canaan Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** +* @file interrupt.c +* @brief support k210 interrupt configure +* @version 1.0 +* @author AIIT XUOS Lab +* @date 2021-04-29 */ +/************************************************* +File name: interrupt.c +Description: support k210 interrupt configure +Others: take plic.c for references from Canaan k210 SDK +* https://canaan-creative.com/developer +History: +1. Date: 2021-04-29 +Author: AIIT XUOS Lab +Modification: +1. support K210 interrupt configure +*************************************************/ + #include "tick.h" #include #include