commit
34383bdcde
|
@ -51,12 +51,23 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file coreclock.c
|
* @file coreclock.c
|
||||||
* @brief derived from ST standard peripheral library
|
* @brief support SystemCoreClockUpdate function
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author AIIT XUOS Lab
|
* @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"
|
#include "stm32f4xx.h"
|
||||||
|
|
||||||
uint32_t system_core_clock = 16000000;
|
uint32_t system_core_clock = 16000000;
|
||||||
|
|
|
@ -10,6 +10,14 @@
|
||||||
* See the Mulan PSL v2 for more details.
|
* 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 <xs_base.h>
|
#include <xs_base.h>
|
||||||
#include <xs_isr.h>
|
#include <xs_isr.h>
|
||||||
#include <misc.h>
|
#include <misc.h>
|
||||||
|
|
|
@ -50,13 +50,24 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file coreclock.c
|
* @file system_init.c
|
||||||
* @brief derived from ST standard peripheral library
|
* @brief support SystemInit function
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @author AIIT XUOS Lab
|
* @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"
|
#include "stm32f4xx.h"
|
||||||
|
|
||||||
#if !defined (HSE_VALUE)
|
#if !defined (HSE_VALUE)
|
||||||
|
|
|
@ -1,15 +1,38 @@
|
||||||
/*
|
/* Copyright 2018 Canaan Inc.
|
||||||
* Copyright (c) 2020 AIIT XUOS Lab
|
*
|
||||||
* XiUOS is licensed under Mulan PSL v2.
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* You can use this software according to the terms and conditions of the Mulan PSL v2.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of Mulan PSL v2 at:
|
* You may obtain a copy of the License at
|
||||||
* http://license.coscl.org.cn/MulanPSL2
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
*
|
||||||
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* See the Mulan PSL v2 for more details.
|
* 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 "tick.h"
|
||||||
#include <clint.h>
|
#include <clint.h>
|
||||||
#include <interrupt.h>
|
#include <interrupt.h>
|
||||||
|
|
Loading…
Reference in New Issue