Merge pull request #26 from RT-Thread/master

update
This commit is contained in:
Meco Jianting Man 2021-03-10 17:26:22 +08:00 committed by GitHub
commit 849c99d2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
183 changed files with 464 additions and 489 deletions

View File

@ -17,7 +17,7 @@ if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc' PLATFORM = 'gcc'
EXEC_PATH = r'/usr/bin' EXEC_PATH = r'/usr/bin'
else: else:
print 'Please make sure your toolchains is GNU GCC!' print ('Please make sure your toolchains is GNU GCC!')
exit(0) exit(0)
if os.getenv('RTT_EXEC_PATH'): if os.getenv('RTT_EXEC_PATH'):

View File

@ -30,7 +30,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
print('build M0 code first') print('build M0 code first')
if sys.platform.startswith('linux'): if sys.platform.startswith('linux'):
import glob import glob
ocwd = os.getcwdu() ocwd = os.getcwd()
os.chdir('../M0') os.chdir('../M0')
res = os.system('scons') res = os.system('scons')
if res: if res:
@ -41,7 +41,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
os.chdir(ocwd) os.chdir(ocwd)
else: else:
# Assume Windows. # Assume Windows.
ocwd = os.getcwdu() ocwd = os.getcwd()
os.chdir('..\M0') os.chdir('..\M0')
os.system('scons.bat') os.system('scons.bat')
os.chdir(ocwd) os.chdir(ocwd)

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
#define UART1_RX_DMA_INSTANCE DMA1_Channel3 #define UART1_RX_DMA_INSTANCE DMA1_Channel3
#define UART1_RX_DMA_IRQ DMA1_Ch2_3_DMA2_Ch1_2_IRQn #define UART1_RX_DMA_IRQ DMA1_Ch2_3_DMA2_Ch1_2_IRQn
#elif defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE) #elif defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE)
#define SPI1_DMA_RX_TX_IRQHandler DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler #define SPI1_DMA_RX_TX_IRQHandler DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler
#define SPI1_RX_DMA_RCC RCC_AHBENR_DMA1EN #define SPI1_RX_DMA_RCC RCC_AHBENR_DMA1EN
#define SPI1_RX_DMA_INSTANCE DMA1_Channel2 #define SPI1_RX_DMA_INSTANCE DMA1_Channel2
#define SPI1_RX_DMA_IRQ DMA1_Ch2_3_DMA2_Ch1_2_IRQn #define SPI1_RX_DMA_IRQ DMA1_Ch2_3_DMA2_Ch1_2_IRQn

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -59,7 +59,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -49,7 +49,7 @@ extern "C" {
} }
#endif /* UART2_CONFIG */ #endif /* UART2_CONFIG */
#endif /* BSP_USING_UART2 */ #endif /* BSP_USING_UART2 */
#if defined(BSP_UART2_RX_USING_DMA) #if defined(BSP_UART2_RX_USING_DMA)
#ifndef UART2_DMA_RX_CONFIG #ifndef UART2_DMA_RX_CONFIG
#define UART2_DMA_RX_CONFIG \ #define UART2_DMA_RX_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -29,7 +29,7 @@ extern "C" {
.Init.DiscontinuousConvMode = DISABLE, \ .Init.DiscontinuousConvMode = DISABLE, \
.Init.NbrOfDiscConversion = 1, \ .Init.NbrOfDiscConversion = 1, \
.Init.ExternalTrigConv = ADC_SOFTWARE_START, \ .Init.ExternalTrigConv = ADC_SOFTWARE_START, \
} }
#endif /* ADC1_CONFIG */ #endif /* ADC1_CONFIG */
#endif /* BSP_USING_ADC1 */ #endif /* BSP_USING_ADC1 */
@ -45,7 +45,7 @@ extern "C" {
.Init.DiscontinuousConvMode = DISABLE, \ .Init.DiscontinuousConvMode = DISABLE, \
.Init.NbrOfDiscConversion = 1, \ .Init.NbrOfDiscConversion = 1, \
.Init.ExternalTrigConv = ADC_SOFTWARE_START, \ .Init.ExternalTrigConv = ADC_SOFTWARE_START, \
} }
#endif /* ADC2_CONFIG */ #endif /* ADC2_CONFIG */
#endif /* BSP_USING_ADC2 */ #endif /* BSP_USING_ADC2 */
@ -61,7 +61,7 @@ extern "C" {
.Init.DiscontinuousConvMode = DISABLE, \ .Init.DiscontinuousConvMode = DISABLE, \
.Init.NbrOfDiscConversion = 1, \ .Init.NbrOfDiscConversion = 1, \
.Init.ExternalTrigConv = ADC_SOFTWARE_START, \ .Init.ExternalTrigConv = ADC_SOFTWARE_START, \
} }
#endif /* ADC3_CONFIG */ #endif /* ADC3_CONFIG */
#endif /* BSP_USING_ADC3 */ #endif /* BSP_USING_ADC3 */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -59,7 +59,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -91,7 +91,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -134,7 +134,7 @@ extern "C" {
#endif #endif
/* DMA2 stream3 */ /* DMA2 stream3 */
#if defined(BSP_SPI1_TX_USING_DMA) && !defined(SPI1_TX_DMA_INSTANCE) #if defined(BSP_SPI1_TX_USING_DMA) && !defined(SPI1_TX_DMA_INSTANCE)
#define SPI1_DMA_TX_IRQHandler DMA2_Stream3_IRQHandler #define SPI1_DMA_TX_IRQHandler DMA2_Stream3_IRQHandler
#define SPI1_TX_DMA_RCC RCC_AHB1ENR_DMA2EN #define SPI1_TX_DMA_RCC RCC_AHB1ENR_DMA2EN
#define SPI1_TX_DMA_INSTANCE DMA2_Stream3 #define SPI1_TX_DMA_INSTANCE DMA2_Stream3

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -61,7 +61,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -95,7 +95,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -8,7 +8,7 @@
* 2018-10-30 SummerGift first version * 2018-10-30 SummerGift first version
* 2019-01-03 zylx modify dma support * 2019-01-03 zylx modify dma support
*/ */
#ifndef __UART_CONFIG_H__ #ifndef __UART_CONFIG_H__
#define __UART_CONFIG_H__ #define __UART_CONFIG_H__
@ -27,7 +27,7 @@ extern "C" {
.irq_type = USART1_IRQn, \ .irq_type = USART1_IRQn, \
} }
#endif /* UART1_CONFIG */ #endif /* UART1_CONFIG */
#if defined(BSP_UART1_RX_USING_DMA) #if defined(BSP_UART1_RX_USING_DMA)
#ifndef UART1_DMA_RX_CONFIG #ifndef UART1_DMA_RX_CONFIG
#define UART1_DMA_RX_CONFIG \ #define UART1_DMA_RX_CONFIG \
@ -74,7 +74,7 @@ extern "C" {
} }
#endif /* UART2_DMA_RX_CONFIG */ #endif /* UART2_DMA_RX_CONFIG */
#endif /* BSP_UART2_RX_USING_DMA */ #endif /* BSP_UART2_RX_USING_DMA */
#if defined(BSP_UART2_TX_USING_DMA) #if defined(BSP_UART2_TX_USING_DMA)
#ifndef UART2_DMA_TX_CONFIG #ifndef UART2_DMA_TX_CONFIG
#define UART2_DMA_TX_CONFIG \ #define UART2_DMA_TX_CONFIG \
@ -109,7 +109,7 @@ extern "C" {
} }
#endif /* UART3_DMA_RX_CONFIG */ #endif /* UART3_DMA_RX_CONFIG */
#endif /* BSP_UART3_RX_USING_DMA */ #endif /* BSP_UART3_RX_USING_DMA */
#if defined(BSP_UART3_TX_USING_DMA) #if defined(BSP_UART3_TX_USING_DMA)
#ifndef UART3_DMA_TX_CONFIG #ifndef UART3_DMA_TX_CONFIG
#define UART3_DMA_TX_CONFIG \ #define UART3_DMA_TX_CONFIG \
@ -179,7 +179,7 @@ extern "C" {
} }
#endif /* UART5_DMA_RX_CONFIG */ #endif /* UART5_DMA_RX_CONFIG */
#endif /* BSP_UART5_RX_USING_DMA */ #endif /* BSP_UART5_RX_USING_DMA */
#if defined(BSP_UART5_TX_USING_DMA) #if defined(BSP_UART5_TX_USING_DMA)
#ifndef UART5_DMA_TX_CONFIG #ifndef UART5_DMA_TX_CONFIG
#define UART5_DMA_TX_CONFIG \ #define UART5_DMA_TX_CONFIG \
@ -214,7 +214,7 @@ extern "C" {
} }
#endif /* UART6_DMA_RX_CONFIG */ #endif /* UART6_DMA_RX_CONFIG */
#endif /* BSP_UART6_RX_USING_DMA */ #endif /* BSP_UART6_RX_USING_DMA */
#if defined(BSP_UART6_TX_USING_DMA) #if defined(BSP_UART6_TX_USING_DMA)
#ifndef UART6_DMA_TX_CONFIG #ifndef UART6_DMA_TX_CONFIG
#define UART6_DMA_TX_CONFIG \ #define UART6_DMA_TX_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,11 +1,11 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2018-12-22 zylx first version * 2018-12-22 zylx first version
*/ */
#ifndef __QSPI_CONFIG_H__ #ifndef __QSPI_CONFIG_H__

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -61,7 +61,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -95,7 +95,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \
@ -129,7 +129,7 @@ extern "C" {
} }
#endif /* SPI4_BUS_CONFIG */ #endif /* SPI4_BUS_CONFIG */
#endif /* BSP_USING_SPI4 */ #endif /* BSP_USING_SPI4 */
#ifdef BSP_SPI4_TX_USING_DMA #ifdef BSP_SPI4_TX_USING_DMA
#ifndef SPI4_TX_DMA_CONFIG #ifndef SPI4_TX_DMA_CONFIG
#define SPI4_TX_DMA_CONFIG \ #define SPI4_TX_DMA_CONFIG \
@ -163,7 +163,7 @@ extern "C" {
} }
#endif /* SPI5_BUS_CONFIG */ #endif /* SPI5_BUS_CONFIG */
#endif /* BSP_USING_SPI5 */ #endif /* BSP_USING_SPI5 */
#ifdef BSP_SPI5_TX_USING_DMA #ifdef BSP_SPI5_TX_USING_DMA
#ifndef SPI5_TX_DMA_CONFIG #ifndef SPI5_TX_DMA_CONFIG
#define SPI5_TX_DMA_CONFIG \ #define SPI5_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -8,7 +8,7 @@
* 2018-10-30 SummerGift first version * 2018-10-30 SummerGift first version
* 2019-01-03 zylx modify dma support * 2019-01-03 zylx modify dma support
*/ */
#ifndef __UART_CONFIG_H__ #ifndef __UART_CONFIG_H__
#define __UART_CONFIG_H__ #define __UART_CONFIG_H__
@ -27,7 +27,7 @@ extern "C" {
.irq_type = USART1_IRQn, \ .irq_type = USART1_IRQn, \
} }
#endif /* UART1_CONFIG */ #endif /* UART1_CONFIG */
#if defined(BSP_UART1_RX_USING_DMA) #if defined(BSP_UART1_RX_USING_DMA)
#ifndef UART1_DMA_RX_CONFIG #ifndef UART1_DMA_RX_CONFIG
#define UART1_DMA_RX_CONFIG \ #define UART1_DMA_RX_CONFIG \
@ -74,7 +74,7 @@ extern "C" {
} }
#endif /* UART2_DMA_RX_CONFIG */ #endif /* UART2_DMA_RX_CONFIG */
#endif /* BSP_UART2_RX_USING_DMA */ #endif /* BSP_UART2_RX_USING_DMA */
#if defined(BSP_UART2_TX_USING_DMA) #if defined(BSP_UART2_TX_USING_DMA)
#ifndef UART2_DMA_TX_CONFIG #ifndef UART2_DMA_TX_CONFIG
#define UART2_DMA_TX_CONFIG \ #define UART2_DMA_TX_CONFIG \
@ -109,7 +109,7 @@ extern "C" {
} }
#endif /* UART3_DMA_RX_CONFIG */ #endif /* UART3_DMA_RX_CONFIG */
#endif /* BSP_UART3_RX_USING_DMA */ #endif /* BSP_UART3_RX_USING_DMA */
#if defined(BSP_UART3_TX_USING_DMA) #if defined(BSP_UART3_TX_USING_DMA)
#ifndef UART3_DMA_TX_CONFIG #ifndef UART3_DMA_TX_CONFIG
#define UART3_DMA_TX_CONFIG \ #define UART3_DMA_TX_CONFIG \
@ -179,7 +179,7 @@ extern "C" {
} }
#endif /* UART5_DMA_RX_CONFIG */ #endif /* UART5_DMA_RX_CONFIG */
#endif /* BSP_UART5_RX_USING_DMA */ #endif /* BSP_UART5_RX_USING_DMA */
#if defined(BSP_UART5_TX_USING_DMA) #if defined(BSP_UART5_TX_USING_DMA)
#ifndef UART5_DMA_TX_CONFIG #ifndef UART5_DMA_TX_CONFIG
#define UART5_DMA_TX_CONFIG \ #define UART5_DMA_TX_CONFIG \
@ -214,7 +214,7 @@ extern "C" {
} }
#endif /* UART6_DMA_RX_CONFIG */ #endif /* UART6_DMA_RX_CONFIG */
#endif /* BSP_UART6_RX_USING_DMA */ #endif /* BSP_UART6_RX_USING_DMA */
#if defined(BSP_UART6_TX_USING_DMA) #if defined(BSP_UART6_TX_USING_DMA)
#ifndef UART6_DMA_TX_CONFIG #ifndef UART6_DMA_TX_CONFIG
#define UART6_DMA_TX_CONFIG \ #define UART6_DMA_TX_CONFIG \
@ -249,7 +249,7 @@ extern "C" {
} }
#endif /* UART7_DMA_RX_CONFIG */ #endif /* UART7_DMA_RX_CONFIG */
#endif /* BSP_UART7_RX_USING_DMA */ #endif /* BSP_UART7_RX_USING_DMA */
#if defined(BSP_UART7_TX_USING_DMA) #if defined(BSP_UART7_TX_USING_DMA)
#ifndef UART7_DMA_TX_CONFIG #ifndef UART7_DMA_TX_CONFIG
#define UART7_DMA_TX_CONFIG \ #define UART7_DMA_TX_CONFIG \
@ -284,7 +284,7 @@ extern "C" {
} }
#endif /* UART8_DMA_RX_CONFIG */ #endif /* UART8_DMA_RX_CONFIG */
#endif /* BSP_UART8_RX_USING_DMA */ #endif /* BSP_UART8_RX_USING_DMA */
#if defined(BSP_UART8_TX_USING_DMA) #if defined(BSP_UART8_TX_USING_DMA)
#ifndef UART8_DMA_TX_CONFIG #ifndef UART8_DMA_TX_CONFIG
#define UART8_DMA_TX_CONFIG \ #define UART8_DMA_TX_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,11 +1,11 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2018-12-22 zylx first version * 2018-12-22 zylx first version
*/ */
#ifndef __QSPI_CONFIG_H__ #ifndef __QSPI_CONFIG_H__

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -26,7 +26,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -60,7 +60,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -94,7 +94,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \
@ -128,7 +128,7 @@ extern "C" {
} }
#endif /* SPI4_BUS_CONFIG */ #endif /* SPI4_BUS_CONFIG */
#endif /* BSP_USING_SPI4 */ #endif /* BSP_USING_SPI4 */
#ifdef BSP_SPI4_TX_USING_DMA #ifdef BSP_SPI4_TX_USING_DMA
#ifndef SPI4_TX_DMA_CONFIG #ifndef SPI4_TX_DMA_CONFIG
#define SPI4_TX_DMA_CONFIG \ #define SPI4_TX_DMA_CONFIG \
@ -162,7 +162,7 @@ extern "C" {
} }
#endif /* SPI5_BUS_CONFIG */ #endif /* SPI5_BUS_CONFIG */
#endif /* BSP_USING_SPI5 */ #endif /* BSP_USING_SPI5 */
#ifdef BSP_SPI5_TX_USING_DMA #ifdef BSP_SPI5_TX_USING_DMA
#ifndef SPI5_TX_DMA_CONFIG #ifndef SPI5_TX_DMA_CONFIG
#define SPI5_TX_DMA_CONFIG \ #define SPI5_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -8,7 +8,7 @@
* 2018-10-30 SummerGift first version * 2018-10-30 SummerGift first version
* 2019-01-05 zylx modify dma support * 2019-01-05 zylx modify dma support
*/ */
#ifndef __UART_CONFIG_H__ #ifndef __UART_CONFIG_H__
#define __UART_CONFIG_H__ #define __UART_CONFIG_H__
@ -19,7 +19,7 @@ extern "C" {
#endif #endif
#if defined(BSP_USING_UART1) #if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG #ifndef UART1_CONFIG
#define UART1_CONFIG \ #define UART1_CONFIG \
{ \ { \
.name = "uart1", \ .name = "uart1", \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -61,7 +61,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,11 +1,11 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2018-12-22 zylx first version * 2018-12-22 zylx first version
*/ */
#ifndef __QSPI_CONFIG_H__ #ifndef __QSPI_CONFIG_H__

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -61,7 +61,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -95,7 +95,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \
@ -129,7 +129,7 @@ extern "C" {
} }
#endif /* SPI4_BUS_CONFIG */ #endif /* SPI4_BUS_CONFIG */
#endif /* BSP_USING_SPI4 */ #endif /* BSP_USING_SPI4 */
#ifdef BSP_SPI4_TX_USING_DMA #ifdef BSP_SPI4_TX_USING_DMA
#ifndef SPI4_TX_DMA_CONFIG #ifndef SPI4_TX_DMA_CONFIG
#define SPI4_TX_DMA_CONFIG \ #define SPI4_TX_DMA_CONFIG \
@ -163,7 +163,7 @@ extern "C" {
} }
#endif /* SPI5_BUS_CONFIG */ #endif /* SPI5_BUS_CONFIG */
#endif /* BSP_USING_SPI5 */ #endif /* BSP_USING_SPI5 */
#ifdef BSP_SPI5_TX_USING_DMA #ifdef BSP_SPI5_TX_USING_DMA
#ifndef SPI5_TX_DMA_CONFIG #ifndef SPI5_TX_DMA_CONFIG
#define SPI5_TX_DMA_CONFIG \ #define SPI5_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -9,7 +9,7 @@
* 2019-01-03 zylx modify dma support * 2019-01-03 zylx modify dma support
* 2019-10-03 xuzhuoyi modify for STM32G4 * 2019-10-03 xuzhuoyi modify for STM32G4
*/ */
#ifndef __UART_CONFIG_H__ #ifndef __UART_CONFIG_H__
#define __UART_CONFIG_H__ #define __UART_CONFIG_H__
@ -50,7 +50,7 @@ extern "C" {
.irq_type = USART1_IRQn, \ .irq_type = USART1_IRQn, \
} }
#endif /* UART1_CONFIG */ #endif /* UART1_CONFIG */
#if defined(BSP_UART1_RX_USING_DMA) #if defined(BSP_UART1_RX_USING_DMA)
#ifndef UART1_DMA_RX_CONFIG #ifndef UART1_DMA_RX_CONFIG
#define UART1_DMA_RX_CONFIG \ #define UART1_DMA_RX_CONFIG \
@ -97,7 +97,7 @@ extern "C" {
} }
#endif /* UART2_DMA_RX_CONFIG */ #endif /* UART2_DMA_RX_CONFIG */
#endif /* BSP_UART2_RX_USING_DMA */ #endif /* BSP_UART2_RX_USING_DMA */
#if defined(BSP_UART2_TX_USING_DMA) #if defined(BSP_UART2_TX_USING_DMA)
#ifndef UART2_DMA_TX_CONFIG #ifndef UART2_DMA_TX_CONFIG
#define UART2_DMA_TX_CONFIG \ #define UART2_DMA_TX_CONFIG \
@ -132,7 +132,7 @@ extern "C" {
} }
#endif /* UART3_DMA_RX_CONFIG */ #endif /* UART3_DMA_RX_CONFIG */
#endif /* BSP_UART3_RX_USING_DMA */ #endif /* BSP_UART3_RX_USING_DMA */
#if defined(BSP_UART3_TX_USING_DMA) #if defined(BSP_UART3_TX_USING_DMA)
#ifndef UART3_DMA_TX_CONFIG #ifndef UART3_DMA_TX_CONFIG
#define UART3_DMA_TX_CONFIG \ #define UART3_DMA_TX_CONFIG \
@ -202,7 +202,7 @@ extern "C" {
} }
#endif /* UART5_DMA_RX_CONFIG */ #endif /* UART5_DMA_RX_CONFIG */
#endif /* BSP_UART5_RX_USING_DMA */ #endif /* BSP_UART5_RX_USING_DMA */
#if defined(BSP_UART5_TX_USING_DMA) #if defined(BSP_UART5_TX_USING_DMA)
#ifndef UART5_DMA_TX_CONFIG #ifndef UART5_DMA_TX_CONFIG
#define UART5_DMA_TX_CONFIG \ #define UART5_DMA_TX_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,11 +1,11 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2018-12-22 zylx first version * 2018-12-22 zylx first version
*/ */
#ifndef __QSPI_CONFIG_H__ #ifndef __QSPI_CONFIG_H__

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -26,7 +26,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -60,7 +60,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -94,7 +94,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \
@ -128,7 +128,7 @@ extern "C" {
} }
#endif /* SPI4_BUS_CONFIG */ #endif /* SPI4_BUS_CONFIG */
#endif /* BSP_USING_SPI4 */ #endif /* BSP_USING_SPI4 */
#ifdef BSP_SPI4_TX_USING_DMA #ifdef BSP_SPI4_TX_USING_DMA
#ifndef SPI4_TX_DMA_CONFIG #ifndef SPI4_TX_DMA_CONFIG
#define SPI4_TX_DMA_CONFIG \ #define SPI4_TX_DMA_CONFIG \
@ -162,7 +162,7 @@ extern "C" {
} }
#endif /* SPI5_BUS_CONFIG */ #endif /* SPI5_BUS_CONFIG */
#endif /* BSP_USING_SPI5 */ #endif /* BSP_USING_SPI5 */
#ifdef BSP_SPI5_TX_USING_DMA #ifdef BSP_SPI5_TX_USING_DMA
#ifndef SPI5_TX_DMA_CONFIG #ifndef SPI5_TX_DMA_CONFIG
#define SPI5_TX_DMA_CONFIG \ #define SPI5_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -9,7 +9,7 @@
* 2019-01-05 zylx modify dma support * 2019-01-05 zylx modify dma support
* 2020-05-02 whj4674672 support stm32h7 uart dma * 2020-05-02 whj4674672 support stm32h7 uart dma
*/ */
#ifndef __UART_CONFIG_H__ #ifndef __UART_CONFIG_H__
#define __UART_CONFIG_H__ #define __UART_CONFIG_H__
@ -20,7 +20,7 @@ extern "C" {
#endif #endif
#if defined(BSP_USING_UART1) #if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG #ifndef UART1_CONFIG
#define UART1_CONFIG \ #define UART1_CONFIG \
{ \ { \
.name = "uart1", \ .name = "uart1", \
@ -75,7 +75,7 @@ extern "C" {
} }
#endif /* UART2_DMA_TX_CONFIG */ #endif /* UART2_DMA_TX_CONFIG */
#endif /* BSP_UART2_TX_USING_DMA */ #endif /* BSP_UART2_TX_USING_DMA */
#if defined(BSP_USING_UART3) #if defined(BSP_USING_UART3)
#ifndef UART3_CONFIG #ifndef UART3_CONFIG
#define UART3_CONFIG \ #define UART3_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -49,7 +49,7 @@ extern "C" {
} }
#endif /* UART2_CONFIG */ #endif /* UART2_CONFIG */
#endif /* BSP_USING_UART2 */ #endif /* BSP_USING_UART2 */
#if defined(BSP_UART2_RX_USING_DMA) #if defined(BSP_UART2_RX_USING_DMA)
#ifndef UART2_DMA_RX_CONFIG #ifndef UART2_DMA_RX_CONFIG
#define UART2_DMA_RX_CONFIG \ #define UART2_DMA_RX_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -29,7 +29,7 @@ extern "C" {
.Init.DiscontinuousConvMode = DISABLE, \ .Init.DiscontinuousConvMode = DISABLE, \
.Init.NbrOfDiscConversion = 1, \ .Init.NbrOfDiscConversion = 1, \
.Init.ExternalTrigConv = ADC_SOFTWARE_START, \ .Init.ExternalTrigConv = ADC_SOFTWARE_START, \
} }
#endif /* ADC1_CONFIG */ #endif /* ADC1_CONFIG */
#endif /* BSP_USING_ADC1 */ #endif /* BSP_USING_ADC1 */
@ -45,7 +45,7 @@ extern "C" {
.Init.DiscontinuousConvMode = DISABLE, \ .Init.DiscontinuousConvMode = DISABLE, \
.Init.NbrOfDiscConversion = 1, \ .Init.NbrOfDiscConversion = 1, \
.Init.ExternalTrigConv = ADC_SOFTWARE_START, \ .Init.ExternalTrigConv = ADC_SOFTWARE_START, \
} }
#endif /* ADC2_CONFIG */ #endif /* ADC2_CONFIG */
#endif /* BSP_USING_ADC2 */ #endif /* BSP_USING_ADC2 */
@ -61,7 +61,7 @@ extern "C" {
.Init.DiscontinuousConvMode = DISABLE, \ .Init.DiscontinuousConvMode = DISABLE, \
.Init.NbrOfDiscConversion = 1, \ .Init.NbrOfDiscConversion = 1, \
.Init.ExternalTrigConv = ADC_SOFTWARE_START, \ .Init.ExternalTrigConv = ADC_SOFTWARE_START, \
} }
#endif /* ADC3_CONFIG */ #endif /* ADC3_CONFIG */
#endif /* BSP_USING_ADC3 */ #endif /* BSP_USING_ADC3 */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -27,7 +27,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -59,7 +59,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -91,7 +91,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,11 +1,11 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2018-12-22 zylx first version * 2018-12-22 zylx first version
*/ */
#ifndef __QSPI_CONFIG_H__ #ifndef __QSPI_CONFIG_H__
@ -28,7 +28,7 @@ extern "C" {
} }
#endif /* QSPI_BUS_CONFIG */ #endif /* QSPI_BUS_CONFIG */
#endif /* BSP_USING_QSPI */ #endif /* BSP_USING_QSPI */
#ifdef BSP_QSPI_USING_DMA #ifdef BSP_QSPI_USING_DMA
#ifndef QSPI_DMA_CONFIG #ifndef QSPI_DMA_CONFIG
#define QSPI_DMA_CONFIG \ #define QSPI_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -60,7 +60,7 @@ extern "C" {
.dma_irq = UART1_RX_DMA_IRQ, \ .dma_irq = UART1_RX_DMA_IRQ, \
} }
#endif /* UART1_DMA_RX_CONFIG */ #endif /* UART1_DMA_RX_CONFIG */
#endif /* BSP_UART1_RX_USING_DMA */ #endif /* BSP_UART1_RX_USING_DMA */
#if defined(BSP_UART1_TX_USING_DMA) #if defined(BSP_UART1_TX_USING_DMA)
#ifndef UART1_DMA_TX_CONFIG #ifndef UART1_DMA_TX_CONFIG
@ -146,6 +146,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2022, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -47,7 +47,7 @@ extern "C" {
#define SPI5_RX_DMA_CHANNEL DMA_REQUEST_SPI5_RX #define SPI5_RX_DMA_CHANNEL DMA_REQUEST_SPI5_RX
#define SPI5_RX_DMA_IRQ DMA2_Stream0_IRQn #define SPI5_RX_DMA_IRQ DMA2_Stream0_IRQn
#endif #endif
/* DMA2 stream1 */ /* DMA2 stream1 */
#if defined(BSP_UART3_TX_USING_DMA) && !defined(BSP_UART3_TX_USING_INSTANCE) #if defined(BSP_UART3_TX_USING_DMA) && !defined(BSP_UART3_TX_USING_INSTANCE)
#define UART3_DMA_TX_IRQHandler DMA2_Stream1_IRQHandler #define UART3_DMA_TX_IRQHandler DMA2_Stream1_IRQHandler
@ -78,7 +78,7 @@ extern "C" {
#define UART4_RX_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN #define UART4_RX_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN
#define UART4_RX_DMA_INSTANCE DMA2_Stream3 #define UART4_RX_DMA_INSTANCE DMA2_Stream3
#define UART4_RX_DMA_CHANNEL DMA_REQUEST_UART4_RX #define UART4_RX_DMA_CHANNEL DMA_REQUEST_UART4_RX
#define UART4_RX_DMA_IRQ DMA2_Stream3_IRQn #define UART4_RX_DMA_IRQ DMA2_Stream3_IRQn
#endif #endif
/* DMA2 stream4 */ /* DMA2 stream4 */
@ -87,7 +87,7 @@ extern "C" {
#define UART4_TX_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN #define UART4_TX_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN
#define UART4_TX_DMA_INSTANCE DMA2_Stream4 #define UART4_TX_DMA_INSTANCE DMA2_Stream4
#define UART4_TX_DMA_CHANNEL DMA_REQUEST_UART4_TX #define UART4_TX_DMA_CHANNEL DMA_REQUEST_UART4_TX
#define UART4_TX_DMA_IRQ DMA2_Stream4_IRQn #define UART4_TX_DMA_IRQ DMA2_Stream4_IRQn
#endif #endif
/* DMA2 stream5 */ /* DMA2 stream5 */
@ -105,7 +105,7 @@ extern "C" {
#define CRYP2_IN_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN #define CRYP2_IN_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN
#define CRYP2_IN_DMA_INSTANCE DMA2_Stream6 #define CRYP2_IN_DMA_INSTANCE DMA2_Stream6
#define CRYP2_IN_DMA_CHANNEL DMA_REQUEST_CRYP2_IN #define CRYP2_IN_DMA_CHANNEL DMA_REQUEST_CRYP2_IN
#define CRYP2_IN_DMA_IRQ DMA2_Stream6_IRQn #define CRYP2_IN_DMA_IRQ DMA2_Stream6_IRQn
#endif #endif
/* DMA2 stream7 */ /* DMA2 stream7 */
@ -114,9 +114,9 @@ extern "C" {
#define HASH2_IN_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN #define HASH2_IN_DMA_RCC RCC_MC_AHB2ENSETR_DMA2EN
#define HASH2_IN_DMA_INSTANCE DMA2_Stream7 #define HASH2_IN_DMA_INSTANCE DMA2_Stream7
#define HASH2_IN_DMA_CHANNEL DMA_REQUEST_HASH2_IN #define HASH2_IN_DMA_CHANNEL DMA_REQUEST_HASH2_IN
#define HASH2_IN_DMA_IRQ DMA2_Stream7_IRQn #define HASH2_IN_DMA_IRQ DMA2_Stream7_IRQn
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,11 +1,11 @@
/* /*
* Copyright (c) 2006-2022, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2018-12-22 zylx first version * 2018-12-22 zylx first version
*/ */
#ifndef __QSPI_CONFIG_H__ #ifndef __QSPI_CONFIG_H__

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -26,7 +26,7 @@ extern "C" {
} }
#endif /* SPI1_BUS_CONFIG */ #endif /* SPI1_BUS_CONFIG */
#endif /* BSP_USING_SPI1 */ #endif /* BSP_USING_SPI1 */
#ifdef BSP_SPI1_TX_USING_DMA #ifdef BSP_SPI1_TX_USING_DMA
#ifndef SPI1_TX_DMA_CONFIG #ifndef SPI1_TX_DMA_CONFIG
#define SPI1_TX_DMA_CONFIG \ #define SPI1_TX_DMA_CONFIG \
@ -60,7 +60,7 @@ extern "C" {
} }
#endif /* SPI2_BUS_CONFIG */ #endif /* SPI2_BUS_CONFIG */
#endif /* BSP_USING_SPI2 */ #endif /* BSP_USING_SPI2 */
#ifdef BSP_SPI2_TX_USING_DMA #ifdef BSP_SPI2_TX_USING_DMA
#ifndef SPI2_TX_DMA_CONFIG #ifndef SPI2_TX_DMA_CONFIG
#define SPI2_TX_DMA_CONFIG \ #define SPI2_TX_DMA_CONFIG \
@ -94,7 +94,7 @@ extern "C" {
} }
#endif /* SPI3_BUS_CONFIG */ #endif /* SPI3_BUS_CONFIG */
#endif /* BSP_USING_SPI3 */ #endif /* BSP_USING_SPI3 */
#ifdef BSP_SPI3_TX_USING_DMA #ifdef BSP_SPI3_TX_USING_DMA
#ifndef SPI3_TX_DMA_CONFIG #ifndef SPI3_TX_DMA_CONFIG
#define SPI3_TX_DMA_CONFIG \ #define SPI3_TX_DMA_CONFIG \
@ -128,7 +128,7 @@ extern "C" {
} }
#endif /* SPI4_BUS_CONFIG */ #endif /* SPI4_BUS_CONFIG */
#endif /* BSP_USING_SPI4 */ #endif /* BSP_USING_SPI4 */
#ifdef BSP_SPI4_TX_USING_DMA #ifdef BSP_SPI4_TX_USING_DMA
#ifndef SPI4_TX_DMA_CONFIG #ifndef SPI4_TX_DMA_CONFIG
#define SPI4_TX_DMA_CONFIG \ #define SPI4_TX_DMA_CONFIG \
@ -162,7 +162,7 @@ extern "C" {
} }
#endif /* SPI5_BUS_CONFIG */ #endif /* SPI5_BUS_CONFIG */
#endif /* BSP_USING_SPI5 */ #endif /* BSP_USING_SPI5 */
#ifdef BSP_SPI5_TX_USING_DMA #ifdef BSP_SPI5_TX_USING_DMA
#ifndef SPI5_TX_DMA_CONFIG #ifndef SPI5_TX_DMA_CONFIG
#define SPI5_TX_DMA_CONFIG \ #define SPI5_TX_DMA_CONFIG \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -8,7 +8,7 @@
* 2018-10-30 SummerGift first version * 2018-10-30 SummerGift first version
* 2019-01-03 zylx modify dma support * 2019-01-03 zylx modify dma support
*/ */
#ifndef __UART_CONFIG_H__ #ifndef __UART_CONFIG_H__
#define __UART_CONFIG_H__ #define __UART_CONFIG_H__
@ -27,7 +27,7 @@ extern "C" {
.irq_type = USART1_IRQn, \ .irq_type = USART1_IRQn, \
} }
#endif /* UART1_CONFIG */ #endif /* UART1_CONFIG */
#if defined(BSP_UART1_RX_USING_DMA) #if defined(BSP_UART1_RX_USING_DMA)
#ifndef UART1_DMA_RX_CONFIG #ifndef UART1_DMA_RX_CONFIG
#define UART1_DMA_RX_CONFIG \ #define UART1_DMA_RX_CONFIG \
@ -74,7 +74,7 @@ extern "C" {
} }
#endif /* UART2_DMA_RX_CONFIG */ #endif /* UART2_DMA_RX_CONFIG */
#endif /* BSP_UART2_RX_USING_DMA */ #endif /* BSP_UART2_RX_USING_DMA */
#if defined(BSP_UART2_TX_USING_DMA) #if defined(BSP_UART2_TX_USING_DMA)
#ifndef UART2_DMA_TX_CONFIG #ifndef UART2_DMA_TX_CONFIG
#define UART2_DMA_TX_CONFIG \ #define UART2_DMA_TX_CONFIG \
@ -109,7 +109,7 @@ extern "C" {
} }
#endif /* UART3_DMA_RX_CONFIG */ #endif /* UART3_DMA_RX_CONFIG */
#endif /* BSP_UART3_RX_USING_DMA */ #endif /* BSP_UART3_RX_USING_DMA */
#if defined(BSP_UART3_TX_USING_DMA) #if defined(BSP_UART3_TX_USING_DMA)
#ifndef UART3_DMA_TX_CONFIG #ifndef UART3_DMA_TX_CONFIG
#define UART3_DMA_TX_CONFIG \ #define UART3_DMA_TX_CONFIG \
@ -179,7 +179,7 @@ extern "C" {
} }
#endif /* UART5_DMA_RX_CONFIG */ #endif /* UART5_DMA_RX_CONFIG */
#endif /* BSP_UART5_RX_USING_DMA */ #endif /* BSP_UART5_RX_USING_DMA */
#if defined(BSP_UART5_TX_USING_DMA) #if defined(BSP_UART5_TX_USING_DMA)
#ifndef UART5_DMA_TX_CONFIG #ifndef UART5_DMA_TX_CONFIG
#define UART5_DMA_TX_CONFIG \ #define UART5_DMA_TX_CONFIG \
@ -214,7 +214,7 @@ extern "C" {
} }
#endif /* UART6_DMA_RX_CONFIG */ #endif /* UART6_DMA_RX_CONFIG */
#endif /* BSP_UART6_RX_USING_DMA */ #endif /* BSP_UART6_RX_USING_DMA */
#if defined(BSP_UART6_TX_USING_DMA) #if defined(BSP_UART6_TX_USING_DMA)
#ifndef UART6_DMA_TX_CONFIG #ifndef UART6_DMA_TX_CONFIG
#define UART6_DMA_TX_CONFIG \ #define UART6_DMA_TX_CONFIG \

View File

@ -1,10 +1,10 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2020-10-14 Dozingfiretruck first version * 2020-10-14 Dozingfiretruck first version
*/ */

View File

@ -1,11 +1,11 @@
/* /*
* Copyright (c) 2006-2018, RT-Thread Development Team * Copyright (c) 2006-2021, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* Date Author Notes * Date Author Notes
* 2020-10-14 Dozingfiretruck first version * 2020-10-14 Dozingfiretruck first version
*/ */

Some files were not shown because too many files have changed in this diff Show More