Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
289b4316
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
289b4316
编写于
1月 09, 2019
作者:
S
SummerGift
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][stm32] add extern "C" for header file
上级
0d025a69
变更
56
显示空白变更内容
内联
并排
Showing
56 changed file
with
450 addition
and
3 deletion
+450
-3
bsp/stm32/libraries/HAL_Drivers/config/f0/adc_config.h
bsp/stm32/libraries/HAL_Drivers/config/f0/adc_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f0/dma_config.h
bsp/stm32/libraries/HAL_Drivers/config/f0/dma_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f0/pwm_config.h
bsp/stm32/libraries/HAL_Drivers/config/f0/pwm_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f0/spi_config.h
bsp/stm32/libraries/HAL_Drivers/config/f0/spi_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f0/tim_config.h
bsp/stm32/libraries/HAL_Drivers/config/f0/tim_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f0/uart_config.h
bsp/stm32/libraries/HAL_Drivers/config/f0/uart_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f1/adc_config.h
bsp/stm32/libraries/HAL_Drivers/config/f1/adc_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f1/dma_config.h
bsp/stm32/libraries/HAL_Drivers/config/f1/dma_config.h
+7
-0
bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h
bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f1/sdio_config.h
bsp/stm32/libraries/HAL_Drivers/config/f1/sdio_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f1/spi_config.h
bsp/stm32/libraries/HAL_Drivers/config/f1/spi_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f1/tim_config.h
bsp/stm32/libraries/HAL_Drivers/config/f1/tim_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f1/uart_config.h
bsp/stm32/libraries/HAL_Drivers/config/f1/uart_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f4/adc_config.h
bsp/stm32/libraries/HAL_Drivers/config/f4/adc_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h
bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h
bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f4/sdio_config.h
bsp/stm32/libraries/HAL_Drivers/config/f4/sdio_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h
bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h
bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f4/uart_config.h
bsp/stm32/libraries/HAL_Drivers/config/f4/uart_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/adc_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/adc_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/dma_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/dma_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/pwm_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/pwm_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/qspi_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/qspi_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/sdio_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/sdio_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/spi_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/spi_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/tim_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/tim_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/f7/uart_config.h
bsp/stm32/libraries/HAL_Drivers/config/f7/uart_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/l4/adc_config.h
bsp/stm32/libraries/HAL_Drivers/config/l4/adc_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h
bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/l4/pwm_config.h
bsp/stm32/libraries/HAL_Drivers/config/l4/pwm_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/l4/qspi_config.h
bsp/stm32/libraries/HAL_Drivers/config/l4/qspi_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/l4/spi_config.h
bsp/stm32/libraries/HAL_Drivers/config/l4/spi_config.h
+9
-1
bsp/stm32/libraries/HAL_Drivers/config/l4/tim_config.h
bsp/stm32/libraries/HAL_Drivers/config/l4/tim_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/config/l4/uart_config.h
bsp/stm32/libraries/HAL_Drivers/config/l4/uart_config.h
+9
-1
bsp/stm32/libraries/HAL_Drivers/drv_common.h
bsp/stm32/libraries/HAL_Drivers/drv_common.h
+9
-1
bsp/stm32/libraries/HAL_Drivers/drv_config.h
bsp/stm32/libraries/HAL_Drivers/drv_config.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/drv_dma.h
bsp/stm32/libraries/HAL_Drivers/drv_dma.h
+8
-0
bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash.h
bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash.h
+8
-0
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
+8
-0
bsp/stm32/libraries/templates/stm32f10x/board/board.h
bsp/stm32/libraries/templates/stm32f10x/board/board.h
+8
-0
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
+8
-0
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
+8
-0
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
+8
-0
bsp/stm32/stm32f091-st-nucleo/board/board.h
bsp/stm32/stm32f091-st-nucleo/board/board.h
+8
-0
bsp/stm32/stm32f103-atk-nano/board/board.h
bsp/stm32/stm32f103-atk-nano/board/board.h
+8
-0
bsp/stm32/stm32f103-fire-arbitrary/board/board.h
bsp/stm32/stm32f103-fire-arbitrary/board/board.h
+8
-0
bsp/stm32/stm32f407-atk-explorer/board/board.h
bsp/stm32/stm32f407-atk-explorer/board/board.h
+8
-0
bsp/stm32/stm32f407-st-discovery/board/board.h
bsp/stm32/stm32f407-st-discovery/board/board.h
+8
-0
bsp/stm32/stm32f411-st-nucleo/board/board.h
bsp/stm32/stm32f411-st-nucleo/board/board.h
+8
-0
bsp/stm32/stm32f429-armfly-v6/board/board.h
bsp/stm32/stm32f429-armfly-v6/board/board.h
+8
-0
bsp/stm32/stm32f429-atk-apollo/board/board.h
bsp/stm32/stm32f429-atk-apollo/board/board.h
+8
-0
bsp/stm32/stm32f429-fire-challenger/board/board.h
bsp/stm32/stm32f429-fire-challenger/board/board.h
+8
-0
bsp/stm32/stm32f767-atk-apollo/board/board.h
bsp/stm32/stm32f767-atk-apollo/board/board.h
+8
-0
bsp/stm32/stm32f767-fire-challenger/board/board.h
bsp/stm32/stm32f767-fire-challenger/board/board.h
+8
-0
bsp/stm32/stm32l475-atk-pandora/board/board.h
bsp/stm32/stm32l475-atk-pandora/board/board.h
+8
-0
未找到文件。
bsp/stm32/libraries/HAL_Drivers/config/f0/adc_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_ADC1
#ifdef BSP_USING_ADC1
#ifndef ADC1_CONFIG
#ifndef ADC1_CONFIG
#define ADC1_CONFIG \
#define ADC1_CONFIG \
...
@@ -35,4 +39,8 @@
...
@@ -35,4 +39,8 @@
#endif
/* ADC1_CONFIG */
#endif
/* ADC1_CONFIG */
#endif
/* BSP_USING_ADC1 */
#endif
/* BSP_USING_ADC1 */
#ifdef __cplusplus
}
#endif
#endif
/* __ADC_CONFIG_H__ */
#endif
/* __ADC_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f0/dma_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* DMA1 channel1 */
/* DMA1 channel1 */
/* DMA1 channel2-3 DMA2 channel1-2 */
/* DMA1 channel2-3 DMA2 channel1-2 */
...
@@ -34,4 +38,8 @@
...
@@ -34,4 +38,8 @@
#endif
#endif
/* DMA1 channel4-7 DMA2 channel3-5 */
/* DMA1 channel4-7 DMA2 channel3-5 */
#ifdef __cplusplus
}
#endif
#endif
/* __DMA_CONFIG_H__ */
#endif
/* __DMA_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f0/pwm_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_PWM2
#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#ifndef PWM2_CONFIG
#define PWM2_CONFIG \
#define PWM2_CONFIG \
...
@@ -57,4 +61,8 @@
...
@@ -57,4 +61,8 @@
#endif
/* PWM5_CONFIG */
#endif
/* PWM5_CONFIG */
#endif
/* BSP_USING_PWM5 */
#endif
/* BSP_USING_PWM5 */
#ifdef __cplusplus
}
#endif
#endif
/* __PWM_CONFIG_H__ */
#endif
/* __PWM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f0/spi_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SPI1
#ifdef BSP_USING_SPI1
#define SPI1_BUS_CONFIG \
#define SPI1_BUS_CONFIG \
{ \
{ \
...
@@ -30,6 +34,10 @@
...
@@ -30,6 +34,10 @@
#define SPI1_DMA_TX_IRQHandler DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler
#define SPI1_DMA_TX_IRQHandler DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
/*__SPI_CONFIG_H__ */
#endif
/*__SPI_CONFIG_H__ */
...
...
bsp/stm32/libraries/HAL_Drivers/config/f0/tim_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef TIM_DEV_INFO_CONFIG
#ifndef TIM_DEV_INFO_CONFIG
#define TIM_DEV_INFO_CONFIG \
#define TIM_DEV_INFO_CONFIG \
{ \
{ \
...
@@ -56,4 +60,8 @@
...
@@ -56,4 +60,8 @@
#endif
/* TIM17_CONFIG */
#endif
/* TIM17_CONFIG */
#endif
/* BSP_USING_TIM17 */
#endif
/* BSP_USING_TIM17 */
#ifdef __cplusplus
}
#endif
#endif
/* __TIM_CONFIG_H__ */
#endif
/* __TIM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f0/uart_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#if defined(BSP_USING_UART1)
#if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG
#ifndef UART1_CONFIG
#define UART1_CONFIG \
#define UART1_CONFIG \
...
@@ -57,4 +61,8 @@
...
@@ -57,4 +61,8 @@
#endif
/* UART2_DMA_CONFIG */
#endif
/* UART2_DMA_CONFIG */
#endif
/* BSP_UART2_RX_USING_DMA */
#endif
/* BSP_UART2_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
/* __UART_CONFIG_H__ */
#endif
/* __UART_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f1/adc_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_ADC1
#ifdef BSP_USING_ADC1
#ifndef ADC1_CONFIG
#ifndef ADC1_CONFIG
#define ADC1_CONFIG \
#define ADC1_CONFIG \
...
@@ -61,4 +65,8 @@
...
@@ -61,4 +65,8 @@
#endif
/* ADC3_CONFIG */
#endif
/* ADC3_CONFIG */
#endif
/* BSP_USING_ADC3 */
#endif
/* BSP_USING_ADC3 */
#ifdef __cplusplus
}
#endif
#endif
/* __ADC_CONFIG_H__ */
#endif
/* __ADC_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f1/dma_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* DMA1 channel1 */
/* DMA1 channel1 */
/* DMA1 channel2 */
/* DMA1 channel2 */
#if defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE)
#if defined(BSP_SPI1_RX_USING_DMA) && !defined(SPI1_RX_DMA_INSTANCE)
...
@@ -88,5 +92,8 @@
...
@@ -88,5 +92,8 @@
/* DMA2 channel4 */
/* DMA2 channel4 */
/* DMA2 channel5 */
/* DMA2 channel5 */
#ifdef __cplusplus
}
#endif
#endif
/* __DMA_CONFIG_H__ */
#endif
/* __DMA_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f1/pwm_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_PWM2
#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#ifndef PWM2_CONFIG
#define PWM2_CONFIG \
#define PWM2_CONFIG \
...
@@ -57,4 +61,8 @@
...
@@ -57,4 +61,8 @@
#endif
/* PWM5_CONFIG */
#endif
/* PWM5_CONFIG */
#endif
/* BSP_USING_PWM5 */
#endif
/* BSP_USING_PWM5 */
#ifdef __cplusplus
}
#endif
#endif
/* __PWM_CONFIG_H__ */
#endif
/* __PWM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f1/sdio_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#include "stm32f1xx_hal.h"
#include "stm32f1xx_hal.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SDIO
#ifdef BSP_USING_SDIO
#define SDIO_BUS_CONFIG \
#define SDIO_BUS_CONFIG \
{ \
{ \
...
@@ -28,6 +32,10 @@
...
@@ -28,6 +32,10 @@
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
/*__SDIO_CONFIG_H__ */
#endif
/*__SDIO_CONFIG_H__ */
...
...
bsp/stm32/libraries/HAL_Drivers/config/f1/spi_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SPI1
#ifdef BSP_USING_SPI1
#ifndef SPI1_BUS_CONFIG
#ifndef SPI1_BUS_CONFIG
#define SPI1_BUS_CONFIG \
#define SPI1_BUS_CONFIG \
...
@@ -110,6 +114,10 @@
...
@@ -110,6 +114,10 @@
#endif
/* SPI3_RX_DMA_CONFIG */
#endif
/* SPI3_RX_DMA_CONFIG */
#endif
/* BSP_SPI3_RX_USING_DMA */
#endif
/* BSP_SPI3_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
/*__SPI_CONFIG_H__ */
#endif
/*__SPI_CONFIG_H__ */
...
...
bsp/stm32/libraries/HAL_Drivers/config/f1/tim_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef TIM_DEV_INFO_CONFIG
#ifndef TIM_DEV_INFO_CONFIG
#define TIM_DEV_INFO_CONFIG \
#define TIM_DEV_INFO_CONFIG \
{ \
{ \
...
@@ -67,4 +71,8 @@
...
@@ -67,4 +71,8 @@
#endif
/* TIM5_CONFIG */
#endif
/* TIM5_CONFIG */
#endif
/* BSP_USING_TIM5 */
#endif
/* BSP_USING_TIM5 */
#ifdef __cplusplus
}
#endif
#endif
/* __TIM_CONFIG_H__ */
#endif
/* __TIM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f1/uart_config.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <rtthread.h>
#include <rtthread.h>
#include "dma_config.h"
#include "dma_config.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#if defined(BSP_USING_UART1)
#if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG
#ifndef UART1_CONFIG
#define UART1_CONFIG \
#define UART1_CONFIG \
...
@@ -123,4 +127,8 @@
...
@@ -123,4 +127,8 @@
#endif
/* UART5_DMA_CONFIG */
#endif
/* UART5_DMA_CONFIG */
#endif
/* BSP_UART5_RX_USING_DMA */
#endif
/* BSP_UART5_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/HAL_Drivers/config/f4/adc_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_ADC1
#ifdef BSP_USING_ADC1
#ifndef ADC1_CONFIG
#ifndef ADC1_CONFIG
#define ADC1_CONFIG \
#define ADC1_CONFIG \
...
@@ -76,4 +80,8 @@
...
@@ -76,4 +80,8 @@
#endif
/* ADC3_CONFIG */
#endif
/* ADC3_CONFIG */
#endif
/* BSP_USING_ADC3 */
#endif
/* BSP_USING_ADC3 */
#ifdef __cplusplus
}
#endif
#endif
/* __ADC_CONFIG_H__ */
#endif
/* __ADC_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f4/dma_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* DMA1 stream0 */
/* DMA1 stream0 */
#if defined(BSP_SPI3_RX_USING_DMA) && !defined(SPI3_RX_DMA_INSTANCE)
#if defined(BSP_SPI3_RX_USING_DMA) && !defined(SPI3_RX_DMA_INSTANCE)
#define SPI3_DMA_RX_IRQHandler DMA1_Stream0_IRQHandler
#define SPI3_DMA_RX_IRQHandler DMA1_Stream0_IRQHandler
...
@@ -205,5 +209,9 @@
...
@@ -205,5 +209,9 @@
/* DMA2 stream7 */
/* DMA2 stream7 */
#ifdef __cplusplus
}
#endif
#endif
/* __DMA_CONFIG_H__ */
#endif
/* __DMA_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_PWM2
#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#ifndef PWM2_CONFIG
#define PWM2_CONFIG \
#define PWM2_CONFIG \
...
@@ -57,4 +61,8 @@
...
@@ -57,4 +61,8 @@
#endif
/* PWM5_CONFIG */
#endif
/* PWM5_CONFIG */
#endif
/* BSP_USING_PWM5 */
#endif
/* BSP_USING_PWM5 */
#ifdef __cplusplus
}
#endif
#endif
/* __PWM_CONFIG_H__ */
#endif
/* __PWM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f4/sdio_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SDIO
#ifdef BSP_USING_SDIO
#define SDIO_BUS_CONFIG \
#define SDIO_BUS_CONFIG \
{ \
{ \
...
@@ -30,6 +34,10 @@
...
@@ -30,6 +34,10 @@
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
/*__SDIO_CONFIG_H__ */
#endif
/*__SDIO_CONFIG_H__ */
...
...
bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SPI1
#ifdef BSP_USING_SPI1
#ifndef SPI1_BUS_CONFIG
#ifndef SPI1_BUS_CONFIG
#define SPI1_BUS_CONFIG \
#define SPI1_BUS_CONFIG \
...
@@ -184,4 +188,8 @@
...
@@ -184,4 +188,8 @@
#endif
/* SPI5_RX_DMA_CONFIG */
#endif
/* SPI5_RX_DMA_CONFIG */
#endif
/* BSP_SPI5_RX_USING_DMA */
#endif
/* BSP_SPI5_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
/*__SPI_CONFIG_H__ */
#endif
/*__SPI_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef TIM_DEV_INFO_CONFIG
#ifndef TIM_DEV_INFO_CONFIG
#define TIM_DEV_INFO_CONFIG \
#define TIM_DEV_INFO_CONFIG \
{ \
{ \
...
@@ -56,4 +60,8 @@
...
@@ -56,4 +60,8 @@
#endif
/* TIM14_CONFIG */
#endif
/* TIM14_CONFIG */
#endif
/* BSP_USING_TIM14 */
#endif
/* BSP_USING_TIM14 */
#ifdef __cplusplus
}
#endif
#endif
/* __TIM_CONFIG_H__ */
#endif
/* __TIM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f4/uart_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#if defined(BSP_USING_UART1)
#if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG
#ifndef UART1_CONFIG
#define UART1_CONFIG \
#define UART1_CONFIG \
...
@@ -129,4 +133,8 @@
...
@@ -129,4 +133,8 @@
#endif
/* UART5_DMA_CONFIG */
#endif
/* UART5_DMA_CONFIG */
#endif
/* BSP_UART5_RX_USING_DMA */
#endif
/* BSP_UART5_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/HAL_Drivers/config/f7/adc_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_ADC1
#ifdef BSP_USING_ADC1
#ifndef ADC1_CONFIG
#ifndef ADC1_CONFIG
#define ADC1_CONFIG \
#define ADC1_CONFIG \
...
@@ -76,4 +80,8 @@
...
@@ -76,4 +80,8 @@
#endif
/* ADC3_CONFIG */
#endif
/* ADC3_CONFIG */
#endif
/* BSP_USING_ADC3 */
#endif
/* BSP_USING_ADC3 */
#ifdef __cplusplus
}
#endif
#endif
/* __ADC_CONFIG_H__ */
#endif
/* __ADC_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f7/dma_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* DMA1 stream0 */
/* DMA1 stream0 */
#if defined(BSP_SPI3_RX_USING_DMA) && !defined(SPI3_RX_DMA_INSTANCE)
#if defined(BSP_SPI3_RX_USING_DMA) && !defined(SPI3_RX_DMA_INSTANCE)
#define SPI3_DMA_RX_IRQHandler DMA1_Stream0_IRQHandler
#define SPI3_DMA_RX_IRQHandler DMA1_Stream0_IRQHandler
...
@@ -218,4 +222,8 @@
...
@@ -218,4 +222,8 @@
#define QSPI_DMA_IRQ DMA2_Stream7_IRQn
#define QSPI_DMA_IRQ DMA2_Stream7_IRQn
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
/* __DMA_CONFIG_H__ */
#endif
/* __DMA_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f7/pwm_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_PWM2
#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#ifndef PWM2_CONFIG
#define PWM2_CONFIG \
#define PWM2_CONFIG \
...
@@ -57,4 +61,8 @@
...
@@ -57,4 +61,8 @@
#endif
/* PWM5_CONFIG */
#endif
/* PWM5_CONFIG */
#endif
/* BSP_USING_PWM5 */
#endif
/* BSP_USING_PWM5 */
#ifdef __cplusplus
}
#endif
#endif
/* __PWM_CONFIG_H__ */
#endif
/* __PWM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f7/qspi_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_QSPI
#ifdef BSP_USING_QSPI
#ifndef QSPI_BUS_CONFIG
#ifndef QSPI_BUS_CONFIG
#define QSPI_BUS_CONFIG \
#define QSPI_BUS_CONFIG \
...
@@ -45,4 +49,8 @@
...
@@ -45,4 +49,8 @@
#define QSPI_IRQn QUADSPI_IRQn
#define QSPI_IRQn QUADSPI_IRQn
#define QSPI_IRQHandler QUADSPI_IRQHandler
#define QSPI_IRQHandler QUADSPI_IRQHandler
#ifdef __cplusplus
}
#endif
#endif
/* __QSPI_CONFIG_H__ */
#endif
/* __QSPI_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f7/sdio_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#include "stm32f7xx_hal.h"
#include "stm32f7xx_hal.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SDIO
#ifdef BSP_USING_SDIO
#define SDIO_BUS_CONFIG \
#define SDIO_BUS_CONFIG \
{ \
{ \
...
@@ -30,6 +34,10 @@
...
@@ -30,6 +34,10 @@
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
/*__SDIO_CONFIG_H__ */
#endif
/*__SDIO_CONFIG_H__ */
...
...
bsp/stm32/libraries/HAL_Drivers/config/f7/spi_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SPI1
#ifdef BSP_USING_SPI1
#ifndef SPI1_BUS_CONFIG
#ifndef SPI1_BUS_CONFIG
#define SPI1_BUS_CONFIG \
#define SPI1_BUS_CONFIG \
...
@@ -183,4 +187,8 @@
...
@@ -183,4 +187,8 @@
#endif
/* SPI5_RX_DMA_CONFIG */
#endif
/* SPI5_RX_DMA_CONFIG */
#endif
/* BSP_SPI5_RX_USING_DMA */
#endif
/* BSP_SPI5_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
/*__SPI_CONFIG_H__ */
#endif
/*__SPI_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f7/tim_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef TIM_DEV_INFO_CONFIG
#ifndef TIM_DEV_INFO_CONFIG
#define TIM_DEV_INFO_CONFIG \
#define TIM_DEV_INFO_CONFIG \
{ \
{ \
...
@@ -56,4 +60,8 @@
...
@@ -56,4 +60,8 @@
#endif
/* TIM14_CONFIG */
#endif
/* TIM14_CONFIG */
#endif
/* BSP_USING_TIM14 */
#endif
/* BSP_USING_TIM14 */
#ifdef __cplusplus
}
#endif
#endif
/* __TIM_CONFIG_H__ */
#endif
/* __TIM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/f7/uart_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#if defined(BSP_USING_UART1)
#if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG
#ifndef UART1_CONFIG
#define UART1_CONFIG \
#define UART1_CONFIG \
...
@@ -129,4 +133,8 @@
...
@@ -129,4 +133,8 @@
#endif
/* UART5_DMA_CONFIG */
#endif
/* UART5_DMA_CONFIG */
#endif
/* BSP_UART5_RX_USING_DMA */
#endif
/* BSP_UART5_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/HAL_Drivers/config/l4/adc_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_ADC1
#ifdef BSP_USING_ADC1
#ifndef ADC1_CONFIG
#ifndef ADC1_CONFIG
#define ADC1_CONFIG \
#define ADC1_CONFIG \
...
@@ -79,4 +83,8 @@
...
@@ -79,4 +83,8 @@
#endif
/* ADC3_CONFIG */
#endif
/* ADC3_CONFIG */
#endif
/* BSP_USING_ADC3 */
#endif
/* BSP_USING_ADC3 */
#ifdef __cplusplus
}
#endif
#endif
/* __ADC_CONFIG_H__ */
#endif
/* __ADC_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/l4/dma_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* DMA1 channel1 */
/* DMA1 channel1 */
/* DMA1 channel2 */
/* DMA1 channel2 */
...
@@ -124,4 +128,8 @@
...
@@ -124,4 +128,8 @@
#define QSPI_DMA_IRQ DMA2_Channel7_IRQn
#define QSPI_DMA_IRQ DMA2_Channel7_IRQn
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
/* __DMA_CONFIG_H__ */
#endif
/* __DMA_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/l4/pwm_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_PWM2
#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#ifndef PWM2_CONFIG
#define PWM2_CONFIG \
#define PWM2_CONFIG \
...
@@ -57,4 +61,8 @@
...
@@ -57,4 +61,8 @@
#endif
/* PWM5_CONFIG */
#endif
/* PWM5_CONFIG */
#endif
/* BSP_USING_PWM5 */
#endif
/* BSP_USING_PWM5 */
#ifdef __cplusplus
}
#endif
#endif
/* __PWM_CONFIG_H__ */
#endif
/* __PWM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/l4/qspi_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_QSPI
#ifdef BSP_USING_QSPI
#ifndef QSPI_BUS_CONFIG
#ifndef QSPI_BUS_CONFIG
#define QSPI_BUS_CONFIG \
#define QSPI_BUS_CONFIG \
...
@@ -45,4 +49,8 @@
...
@@ -45,4 +49,8 @@
#define QSPI_IRQn QUADSPI_IRQn
#define QSPI_IRQn QUADSPI_IRQn
#define QSPI_IRQHandler QUADSPI_IRQHandler
#define QSPI_IRQHandler QUADSPI_IRQHandler
#ifdef __cplusplus
}
#endif
#endif
/* __QSPI_CONFIG_H__ */
#endif
/* __QSPI_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/l4/spi_config.h
浏览文件 @
289b4316
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2018-11-06 SummerGift
change to new framework
* 2018-11-06 SummerGift
first version
*/
*/
#ifndef __SPI_CONFIG_H__
#ifndef __SPI_CONFIG_H__
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_SPI1
#ifdef BSP_USING_SPI1
#ifndef SPI1_BUS_CONFIG
#ifndef SPI1_BUS_CONFIG
#define SPI1_BUS_CONFIG \
#define SPI1_BUS_CONFIG \
...
@@ -81,4 +85,8 @@
...
@@ -81,4 +85,8 @@
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
/*__SPI_CONFIG_H__ */
#endif
/*__SPI_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/l4/tim_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef TIM_DEV_INFO_CONFIG
#ifndef TIM_DEV_INFO_CONFIG
#define TIM_DEV_INFO_CONFIG \
#define TIM_DEV_INFO_CONFIG \
{ \
{ \
...
@@ -56,4 +60,8 @@
...
@@ -56,4 +60,8 @@
#endif
/* TIM17_CONFIG */
#endif
/* TIM17_CONFIG */
#endif
/* BSP_USING_TIM17 */
#endif
/* BSP_USING_TIM17 */
#ifdef __cplusplus
}
#endif
#endif
/* __TIM_CONFIG_H__ */
#endif
/* __TIM_CONFIG_H__ */
bsp/stm32/libraries/HAL_Drivers/config/l4/uart_config.h
浏览文件 @
289b4316
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#if defined(BSP_USING_UART1)
#if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG
#ifndef UART1_CONFIG
#define UART1_CONFIG \
#define UART1_CONFIG \
...
@@ -59,4 +63,8 @@
...
@@ -59,4 +63,8 @@
#endif
/* UART2_DMA_CONFIG */
#endif
/* UART2_DMA_CONFIG */
#endif
/* BSP_UART2_RX_USING_DMA */
#endif
/* BSP_UART2_RX_USING_DMA */
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/HAL_Drivers/drv_common.h
浏览文件 @
289b4316
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2018-11-7 SummerGift
change to new framework
* 2018-11-7 SummerGift
first version
*/
*/
#ifndef __DRV_COMMON_H__
#ifndef __DRV_COMMON_H__
...
@@ -16,6 +16,10 @@
...
@@ -16,6 +16,10 @@
#include <rtdevice.h>
#include <rtdevice.h>
#include <board.h>
#include <board.h>
#ifdef __cplusplus
extern
"C"
{
#endif
void
_Error_Handler
(
char
*
s
,
int
num
);
void
_Error_Handler
(
char
*
s
,
int
num
);
#ifndef Error_Handler
#ifndef Error_Handler
...
@@ -24,4 +28,8 @@ void _Error_Handler(char *s, int num);
...
@@ -24,4 +28,8 @@ void _Error_Handler(char *s, int num);
#define DMA_NOT_AVAILABLE ((DMA_INSTANCE_TYPE *)0xFFFFFFFFU)
#define DMA_NOT_AVAILABLE ((DMA_INSTANCE_TYPE *)0xFFFFFFFFU)
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/HAL_Drivers/drv_config.h
浏览文件 @
289b4316
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include <board.h>
#include <board.h>
#include <rtthread.h>
#include <rtthread.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#if defined(SOC_SERIES_STM32F0)
#if defined(SOC_SERIES_STM32F0)
#include "f0/dma_config.h"
#include "f0/dma_config.h"
#include "f0/uart_config.h"
#include "f0/uart_config.h"
...
@@ -56,4 +60,8 @@
...
@@ -56,4 +60,8 @@
#include "l4/pwm_config.h"
#include "l4/pwm_config.h"
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/HAL_Drivers/drv_dma.h
浏览文件 @
289b4316
...
@@ -16,6 +16,10 @@
...
@@ -16,6 +16,10 @@
#include <rthw.h>
#include <rthw.h>
#include <drv_common.h>
#include <drv_common.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#if defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32L4)
#if defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32L4)
#define DMA_INSTANCE_TYPE DMA_Channel_TypeDef
#define DMA_INSTANCE_TYPE DMA_Channel_TypeDef
#elif defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7)
#elif defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7)
...
@@ -36,4 +40,8 @@ struct dma_config {
...
@@ -36,4 +40,8 @@ struct dma_config {
#endif
#endif
};
};
#ifdef __cplusplus
}
#endif
#endif
/*__DRV_DMA_H_ */
#endif
/*__DRV_DMA_H_ */
bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash.h
浏览文件 @
289b4316
...
@@ -16,8 +16,16 @@
...
@@ -16,8 +16,16 @@
#include <rthw.h>
#include <rthw.h>
#include <drv_common.h>
#include <drv_common.h>
#ifdef __cplusplus
extern
"C"
{
#endif
int
stm32_flash_read
(
rt_uint32_t
addr
,
rt_uint8_t
*
buf
,
size_t
size
);
int
stm32_flash_read
(
rt_uint32_t
addr
,
rt_uint8_t
*
buf
,
size_t
size
);
int
stm32_flash_write
(
rt_uint32_t
addr
,
const
rt_uint8_t
*
buf
,
size_t
size
);
int
stm32_flash_write
(
rt_uint32_t
addr
,
const
rt_uint8_t
*
buf
,
size_t
size
);
int
stm32_flash_erase
(
rt_uint32_t
addr
,
size_t
size
);
int
stm32_flash_erase
(
rt_uint32_t
addr
,
size_t
size
);
#ifdef __cplusplus
}
#endif
#endif
/* __DRV_FLASH_H__ */
#endif
/* __DRV_FLASH_H__ */
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f0xx.h>
#include <stm32f0xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (256 * 1024)
#define STM32_FLASH_SIZE (256 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -38,4 +42,8 @@ extern int __bss_end;
...
@@ -38,4 +42,8 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* __BOARD_H__ */
#endif
/* __BOARD_H__ */
bsp/stm32/libraries/templates/stm32f10x/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f1xx.h>
#include <stm32f1xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (128 * 1024)
#define STM32_FLASH_SIZE (128 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -38,4 +42,8 @@ extern int __bss_end;
...
@@ -38,4 +42,8 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* __BOARD_H__ */
#endif
/* __BOARD_H__ */
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -37,5 +41,9 @@ extern int __bss_end;
...
@@ -37,5 +41,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f7xx.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -37,4 +41,8 @@ extern int __bss_end;
...
@@ -37,4 +41,8 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32l4xx.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (512 * 1024)
#define STM32_FLASH_SIZE (512 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -28,5 +32,9 @@
...
@@ -28,5 +32,9 @@
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f091-st-nucleo/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f0xx.h>
#include <stm32f0xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (256 * 1024)
#define STM32_FLASH_SIZE (256 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -38,4 +42,8 @@ extern int __bss_end;
...
@@ -38,4 +42,8 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* __BOARD_H__ */
#endif
/* __BOARD_H__ */
bsp/stm32/stm32f103-atk-nano/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f1xx.h>
#include <stm32f1xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (128 * 1024)
#define STM32_FLASH_SIZE (128 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -38,4 +42,8 @@ extern int __bss_end;
...
@@ -38,4 +42,8 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* __BOARD_H__ */
#endif
/* __BOARD_H__ */
bsp/stm32/stm32f103-fire-arbitrary/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f1xx.h>
#include <stm32f1xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/* Internal SRAM memory size[Kbytes] <8-64>, Default: 64*/
/* Internal SRAM memory size[Kbytes] <8-64>, Default: 64*/
#define STM32_SRAM_SIZE 64
#define STM32_SRAM_SIZE 64
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
@@ -38,4 +42,8 @@ extern int __bss_end;
...
@@ -38,4 +42,8 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* __BOARD_H__ */
#endif
/* __BOARD_H__ */
bsp/stm32/stm32f407-atk-explorer/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_SRAM_SIZE (128)
#define STM32_SRAM_SIZE (128)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
@@ -37,5 +41,9 @@ extern int __bss_end;
...
@@ -37,5 +41,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f407-st-discovery/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_SRAM_SIZE (128)
#define STM32_SRAM_SIZE (128)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
@@ -33,5 +37,9 @@ extern int __bss_end;
...
@@ -33,5 +37,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f411-st-nucleo/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (512 * 1024)
#define STM32_FLASH_SIZE (512 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -37,5 +41,9 @@ extern int __bss_end;
...
@@ -37,5 +41,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f429-armfly-v6/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_GPIO
#ifdef BSP_USING_GPIO
#include "drv_gpio.h"
#include "drv_gpio.h"
#endif
#endif
...
@@ -46,5 +50,9 @@ extern int __bss_end;
...
@@ -46,5 +50,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
void
MX_GPIO_Init
(
void
);
void
MX_GPIO_Init
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f429-atk-apollo/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -37,4 +41,8 @@ extern int __bss_end;
...
@@ -37,4 +41,8 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f429-fire-challenger/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_SRAM_SIZE (192)
#define STM32_SRAM_SIZE (192)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
@@ -37,5 +41,9 @@ extern int __bss_end;
...
@@ -37,5 +41,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f767-atk-apollo/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f7xx.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -37,5 +41,9 @@ extern int __bss_end;
...
@@ -37,5 +41,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32f767-fire-challenger/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32f7xx.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_SRAM_SIZE (512)
#define STM32_SRAM_SIZE (512)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
@@ -37,5 +41,9 @@ extern int __bss_end;
...
@@ -37,5 +41,9 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
bsp/stm32/stm32l475-atk-pandora/board/board.h
浏览文件 @
289b4316
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
#include <stm32l4xx.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#include "drv_common.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (512 * 1024)
#define STM32_FLASH_SIZE (512 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
...
@@ -28,5 +32,9 @@
...
@@ -28,5 +32,9 @@
void
SystemClock_Config
(
void
);
void
SystemClock_Config
(
void
);
#ifdef __cplusplus
}
#endif
#endif
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录