mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-22 00:39:18 +08:00
fb61c7960b
* 本次提交包括①BSP驱动新增②F103库更新③GCC、IAR适配及MDK更新④README文件及由更新驱动引起的脚本改动。 详情如下: 一、BSP驱动新增 这是本次PR的主要目的,现新增了如下BSP驱动: ADC、DAC、RTC、PWM、HWTIMER、I2C、SPI和WDT等八个驱动文件。 二、F103库更新: 本次提交使用2022年3月初极海官网发布的最新F103库,主要增加了版权声明、USB驱动及其他代码调整。 三、编译器适配: 1、新增GCC编译支持,在ENV工具下编译能成功且输出的bin文件能够使开发板闪灯。 2、新增IAR工程支持。 3、由F103的SDK更新,MDK的工程也进行了相应更新。 四、其他 1、README文件做了修改,加入了scons编译后的jlink下载说明和官网链接。 2、Kconfig、SConscript脚本根据驱动更新做了修改。 * 格式化代码(AStyle + Formatting) * 增加BSP APM版权声明 * 在ci添加当前bsp的路径,以能够验证gcc能否正常编译 * 路径的“\”改为“/”
40 lines
1.6 KiB
C
40 lines
1.6 KiB
C
/**************************************************************************//**
|
|
* @file cmsis_version.h
|
|
* @brief CMSIS Core(M) Version definitions
|
|
* @version V5.0.2
|
|
* @date 19. April 2017
|
|
******************************************************************************/
|
|
/*
|
|
* Copyright (c) 2009-2017 ARM Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* 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
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#if defined ( __ICCARM__ )
|
|
#pragma system_include /* treat file as system include file for MISRA check */
|
|
#elif defined (__clang__)
|
|
#pragma clang system_header /* treat file as system include file */
|
|
#endif
|
|
|
|
#ifndef __CMSIS_VERSION_H
|
|
#define __CMSIS_VERSION_H
|
|
|
|
/* CMSIS Version definitions */
|
|
#define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */
|
|
#define __CM_CMSIS_VERSION_SUB ( 1U) /*!< [15:0] CMSIS Core(M) sub version */
|
|
#define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \
|
|
__CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */
|
|
#endif
|