Skip to content

Commit a4a01ed

Browse files
authored
Merge pull request #38 from RT-Thread/master
update
2 parents b2f23f2 + b7a5319 commit a4a01ed

File tree

249 files changed

+47960
-98705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+47960
-98705
lines changed

.github/workflows/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
- {RTT_BSP: "stm32/stm32f103-onenet-nbiot", RTT_TOOL_CHAIN: "sourcery-arm"}
7979
- {RTT_BSP: "stm32/stm32f103-yf-ufun", RTT_TOOL_CHAIN: "sourcery-arm"}
8080
- {RTT_BSP: "stm32/stm32f107-uc-eval", RTT_TOOL_CHAIN: "sourcery-arm"}
81+
- {RTT_BSP: "stm32/stm32f207-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"}
8182
- {RTT_BSP: "stm32/stm32f401-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"}
8283
- {RTT_BSP: "stm32/stm32f405-smdz-breadfruit", RTT_TOOL_CHAIN: "sourcery-arm"}
8384
- {RTT_BSP: "stm32/stm32f407-atk-explorer", RTT_TOOL_CHAIN: "sourcery-arm"}
@@ -119,7 +120,6 @@ jobs:
119120
- {RTT_BSP: "stm32/stm32mp157a-st-discovery", RTT_TOOL_CHAIN: "sourcery-arm"}
120121
- {RTT_BSP: "stm32/stm32mp157a-st-ev1", RTT_TOOL_CHAIN: "sourcery-arm"}
121122
- {RTT_BSP: "stm32/stm32wb55-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"}
122-
- {RTT_BSP: "stm32f20x", RTT_TOOL_CHAIN: "sourcery-arm"}
123123
- {RTT_BSP: "swm320", RTT_TOOL_CHAIN: "sourcery-arm"}
124124
- {RTT_BSP: "swm320-lq100", RTT_TOOL_CHAIN: "sourcery-arm"}
125125
- {RTT_BSP: "beaglebone", RTT_TOOL_CHAIN: "sourcery-arm"}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ ncscope.*
3535
#ctag files
3636
tags
3737

38+
.idea
39+
CMakeLists.txt
40+
cmake-build-debug

bsp/at32/Libraries/AT32_Std_Driver/AT32F4xx_StdPeriph_Driver/inc/at32f4xx_comp.h

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
/**
2-
******************************************************************************
3-
* @file at32f4xx_comp.h
4-
* @author Artery
5-
* @version V1.0.1
6-
* @date 20-April-2012
7-
* @brief This file contains all the functions prototypes for the COMP firmware
8-
* library.
9-
******************************************************************************
10-
* @attention
11-
*
12-
* <h2><center>&copy; COPYRIGHT 2012 Artery</center></h2>
13-
*
14-
* Licensed under Artery Liberty SW License Agreement V2, (the "License");
15-
* You may not use this file except in compliance with the License.
16-
*
17-
* Unless required by applicable law or agreed to in writing, software
18-
* distributed under the License is distributed on an "AS IS" BASIS,
19-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20-
* See the License for the specific language governing permissions and
21-
* limitations under the License.
22-
*
23-
******************************************************************************
24-
*/
2+
**************************************************************************
3+
* File Name : at32f4xx_comp.h
4+
* Description : at32f4xx COMP header file
5+
* Date : 2018-10-08
6+
* Version : V1.0.5
7+
**************************************************************************
8+
*/
9+
2510

2611
/* Define to prevent recursive inclusion -------------------------------------*/
2712
#ifndef __AT32F4XX_COMP_H

bsp/at32/Libraries/AT32_Std_Driver/AT32F4xx_StdPeriph_Driver/inc/misc.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
/*
2-
**************************************************************************
3-
* Copyright (C) 2016 by ARTERY Technology Co., Ltd. All Rights Reserved.
4-
**************************************************************************
5-
* THIS SOURCE FILE IS DISTRIBUTED IN THE HOPE THAT CAN REDUCE EFFORTS AND
6-
* TIME, BUT WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
7-
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
8-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
9-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
11-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
12-
* DEALINGS IN THE SOFTWARE.
132
**************************************************************************
143
* File Name : misc.h
154
* Description : at32f4xx MISC header file

bsp/at32/Libraries/AT32_Std_Driver/AT32F4xx_StdPeriph_Driver/src/at32f4xx_comp.c

Lines changed: 7 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,11 @@
11
/**
2-
******************************************************************************
3-
* @file at32f4xx_comp.c
4-
* @author Artery
5-
* @version V1.0.1
6-
* @date 20-April-2012
7-
* @brief This file provides firmware functions to manage the following
8-
* functionalities of the comparators (COMP1 and COMP2) peripheral:
9-
* + Comparators configuration
10-
* + Window mode control
11-
*
12-
* @verbatim
13-
*
14-
===============================================================================
15-
##### How to use this driver #####
16-
===============================================================================
17-
[..]
18-
19-
The device integrates two analog comparators COMP1 and COMP2:
20-
(+) The non inverting input is set to PA1 for COMP1 and to PA3
21-
for COMP2.
22-
23-
(+) The inverting input can be selected among: DAC_OUT1,
24-
1/4 VREFINT, 1/2 VERFINT, 3/4 VREFINT, VREFINT,
25-
I/O (PA0 for COMP1 and PA2 for COMP2)
26-
27-
(+) The COMP output is internally is available using COMP_GetOutputState()
28-
and can be set on GPIO pins: PA0, PA6, PA11 for COMP1
29-
and PA2, PA7, PA12 for COMP2
30-
31-
(+) The COMP output can be redirected to embedded timers (TIM1, TIM2
32-
and TIM3)
33-
34-
(+) The two comparators COMP1 and COMP2 can be combined in window
35-
mode and only COMP1 non inverting (PA1) can be used as non-
36-
inverting input.
37-
38-
(+) The two comparators COMP1 and COMP2 have interrupt capability
39-
with wake-up from Sleep and Stop modes (through the EXTI controller).
40-
COMP1 and COMP2 outputs are internally connected to EXTI Line 21
41-
and EXTI Line 22 respectively.
42-
43-
44-
##### How to configure the comparator #####
45-
===============================================================================
46-
[..]
47-
This driver provides functions to configure and program the Comparators
48-
of all AT32F4xx devices.
49-
50-
[..] To use the comparator, perform the following steps:
51-
52-
(#) Enable the SYSCFG APB clock to get write access to comparator
53-
register using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
54-
55-
(#) Configure the comparator input in analog mode using GPIO_Init()
56-
57-
(#) Configure the comparator output in alternate function mode
58-
using GPIO_Init() and use GPIO_PinAFConfig() function to map the
59-
comparator output to the GPIO pin
60-
61-
(#) Configure the comparator using COMP_Init() function:
62-
(++) Select the inverting input
63-
(++) Select the output polarity
64-
(++) Select the output redirection
65-
(++) Select the hysteresis level
66-
(++) Select the power mode
67-
68-
(#) Enable the comparator using COMP_Cmd() function
69-
70-
(#) If required enable the COMP interrupt by configuring and enabling
71-
EXTI line in Interrupt mode and selecting the desired sensitivity
72-
level using EXTI_Init() function. After that enable the comparator
73-
interrupt vector using NVIC_Init() function.
74-
75-
@endverbatim
76-
*
77-
******************************************************************************
78-
* @attention
79-
*
80-
* <h2><center>&copy; COPYRIGHT 2012 Artery</center></h2>
81-
*
82-
* Licensed under Artery Liberty SW License Agreement V2, (the "License");
83-
* You may not use this file except in compliance with the License.
84-
*
85-
* Unless required by applicable law or agreed to in writing, software
86-
* distributed under the License is distributed on an "AS IS" BASIS,
87-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88-
* See the License for the specific language governing permissions and
89-
* limitations under the License.
90-
*
91-
******************************************************************************
92-
*/
2+
**************************************************************************
3+
* File Name : at32f4xx_comp.c
4+
* Description : at32f4xx COMP source file
5+
* Date : 2018-02-26
6+
* Version : V1.0.4
7+
**************************************************************************
8+
*/
939

9410
/* Includes ------------------------------------------------------------------*/
9511
#include "at32f4xx_comp.h"

bsp/at32/Libraries/AT32_Std_Driver/CMSIS/AT32/AT32F4xx/src/system_at32f4xx.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66
* @date 2019-05-27
77
* @brief CMSIS Cortex-M4 system source file
88
******************************************************************************
9-
* @attention
10-
*
11-
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12-
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13-
* TIME. AS A RESULT, ARTERYTEK SHALL NOT BE HELD LIABLE FOR ANY
14-
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15-
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16-
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17-
*
18-
* <h2><center>&copy; COPYRIGHT 2018 ArteryTek</center></h2>
19-
******************************************************************************
209
*/
2110

2211
/** @addtogroup CMSIS

bsp/at32/at32f403a-start/board/msp/at32_msp.c

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
/**
2-
******************************************************************************
3-
* @file at32_msp.c
4-
* @author Artery Technology
5-
* @version V1.0.1
6-
* @date 2021-02-09
7-
* @brief Msp source file
8-
******************************************************************************
9-
* @attention
10-
*
11-
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12-
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13-
* TIME. AS A RESULT, ARTERYTEK SHALL NOT BE HELD LIABLE FOR ANY
14-
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15-
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16-
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17-
*
18-
* <h2><center>&copy; COPYRIGHT 2018 ArteryTek</center></h2>
19-
******************************************************************************
20-
*/
1+
/*
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2021-04-13 shelton first version
9+
*/
2110

2211
#include <at32f4xx.h>
2312
#include <rtthread.h>

bsp/at32/at32f403a-start/board/msp/at32_msp.h

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
1-
/**
2-
******************************************************************************
3-
* @file at32_msp.h
4-
* @author Artery Technology
5-
* @version V1.0.1
6-
* @date 2021-02-09
7-
* @brief Msp header file
8-
******************************************************************************
9-
* @attention
10-
*
11-
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12-
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13-
* TIME. AS A RESULT, ARTERYTEK SHALL NOT BE HELD LIABLE FOR ANY
14-
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15-
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16-
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17-
*
18-
* <h2><center>&copy; COPYRIGHT 2018 ArteryTek</center></h2>
19-
******************************************************************************
20-
*/
21-
1+
/*
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2021-04-13 shelton first version
9+
*/
10+
2211
#ifndef __AT32_MSP_H__
2312
#define __AT32_MSP_H__
2413

bsp/at32/at32f403a-start/board/msp/system_at32f4xx.c

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
/**
2-
******************************************************************************
3-
* @file system_at32f4xx.c
4-
* @author Artery Technology
5-
* @version V1.0.0
6-
* @date 2019-05-27
7-
* @brief CMSIS Cortex-M4 system source file
8-
******************************************************************************
9-
* @attention
10-
*
11-
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12-
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13-
* TIME. AS A RESULT, ARTERYTEK SHALL NOT BE HELD LIABLE FOR ANY
14-
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15-
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16-
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17-
*
18-
* <h2><center>&copy; COPYRIGHT 2018 ArteryTek</center></h2>
19-
******************************************************************************
20-
*/
1+
/*
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2021-04-13 shelton first version
9+
*/
2110

2211
/** @addtogroup CMSIS
2312
* @{

bsp/at32/at32f407-start/board/msp/at32_msp.c

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
/**
2-
******************************************************************************
3-
* @file at32_msp.c
4-
* @author Artery Technology
5-
* @version V1.0.1
6-
* @date 2021-02-09
7-
* @brief Msp source file
8-
******************************************************************************
9-
* @attention
10-
*
11-
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12-
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13-
* TIME. AS A RESULT, ARTERYTEK SHALL NOT BE HELD LIABLE FOR ANY
14-
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15-
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16-
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17-
*
18-
* <h2><center>&copy; COPYRIGHT 2018 ArteryTek</center></h2>
19-
******************************************************************************
20-
*/
1+
/*
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2021-04-13 shelton first version
9+
*/
2110

2211
#include <at32f4xx.h>
2312
#include <rtthread.h>

0 commit comments

Comments
 (0)