Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
AdRainty
rt-thread
提交
534239b8
R
rt-thread
项目概览
AdRainty
/
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,发现更多精彩内容 >>
提交
534239b8
编写于
12月 24, 2020
作者:
T
thread-liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[update] add keyword __no_init to disable IAR from initializing specified memory.
上级
c9243304
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
57 addition
and
58 deletion
+57
-58
bsp/stm32/stm32mp157a-st-ev1/board/Kconfig
bsp/stm32/stm32mp157a-st-ev1/board/Kconfig
+8
-6
bsp/stm32/stm32mp157a-st-ev1/board/SConscript
bsp/stm32/stm32mp157a-st-ev1/board/SConscript
+1
-1
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_dfsdm.c
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_dfsdm.c
+14
-14
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_emmc.c
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_emmc.c
+7
-6
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_ov5640.c
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_ov5640.c
+6
-7
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_sdcard.c
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_sdcard.c
+7
-6
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_sound.c
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_sound.c
+4
-8
bsp/stm32/stm32mp157a-st-ev1/board/ports/eth/drv_eth.c
bsp/stm32/stm32mp157a-st-ev1/board/ports/eth/drv_eth.c
+10
-10
未找到文件。
bsp/stm32/stm32mp157a-st-ev1/board/Kconfig
浏览文件 @
534239b8
...
...
@@ -60,13 +60,13 @@ menu "Onboard Peripheral Drivers"
select RT_USING_SDIO
select RT_USING_DFS
select RT_USING_DFS_ELMFAT
select BSP_USING_PMIC
if BSP_USING_SDMMC
menuconfig BSP_USING_SD
_
CARD
menuconfig BSP_USING_SDCARD
bool "Enable sd card"
select BSP_USING_PMIC
default n
if BSP_USING_SD
_
CARD
config
SD_USING_D
FS
if BSP_USING_SDCARD
config
BSP_USING_SDCARD_
FS
bool "sd card fatfs"
default y
endif
...
...
@@ -75,7 +75,7 @@ menu "Onboard Peripheral Drivers"
bool "Enable eMMC (32 Gbits)"
default n
if BSP_USING_EMMC
config
EMMC_USING_D
FS
config
BSP_USING_EMMC_
FS
bool "emmc card fatfs"
default y
endif
...
...
@@ -86,7 +86,7 @@ menu "Onboard Peripheral Drivers"
select RT_USING_AUDIO
select BSP_USING_PMIC
select BSP_USING_SDMMC
select BSP_USING_SD
_
CARD
select BSP_USING_SDCARD
select SD_USING_DFS
select BSP_USING_I2C
select BSP_USING_I2C2
...
...
@@ -96,6 +96,8 @@ menu "Onboard Peripheral Drivers"
bool "Enable CAMERA (ov5640)"
select BSP_USING_MFX
select BSP_USING_PMIC
select BSP_USING_SDMMC
select BSP_USING_SDCARD
select BSP_USING_I2C
select BSP_USING_I2C2
default n
...
...
bsp/stm32/stm32mp157a-st-ev1/board/SConscript
浏览文件 @
534239b8
...
...
@@ -25,7 +25,7 @@ if GetDepend(['BSP_USING_NAND']):
if
GetDepend
([
'BSP_USING_GBE'
]):
src
+=
Glob
(
'ports/eth/drv_eth.c'
)
if
GetDepend
([
'BSP_USING_SD
_
CARD'
]):
if
GetDepend
([
'BSP_USING_SDCARD'
]):
src
+=
Glob
(
'ports/drv_sdcard.c'
)
if
GetDepend
([
'BSP_USING_EMMC'
]):
...
...
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_dfsdm.c
浏览文件 @
534239b8
...
...
@@ -18,34 +18,34 @@
#define LOG_TAG "drv.dfsdm"
#include <drv_log.h>
#define
FILTER_FIFO_SIZE
(1024)
#define
FILTER_FIFO_SIZE
(1024)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
__attribute__
((
at
(
0x2FFC8000
)))
__attribute__
((
at
(
0x2FFC8000
)))
static
rt_int32_t
FILTER0_FIFO
[
FILTER_FIFO_SIZE
];
#elif defined ( __GNUC__ )
__attribute__
((
at
(
0x2FFC8000
)))
static
rt_int32_t
FILTER0_FIFO
[
FILTER_FIFO_SIZE
]
__attribute__
((
section
(
".Filter0Section"
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFC8000
__no_init
static
rt_int32_t
FILTER0_FIFO
[
FILTER_FIFO_SIZE
];
#endif
rt_int32_t
FILTER0_FIFO
[
FILTER_FIFO_SIZE
];
#define PALY_SIZE 2048
#if defined(__CC_ARM) || defined(__CLANG_ARM)
__attribute__
((
at
(
0x2FFC
A000
)))
__attribute__
((
at
(
0x2FFC
9000
)))
static
rt_int32_t
FILTER0_FIFO
[
FILTER_FIFO_SIZE
];
#elif defined ( __GNUC__ )
__attribute__
((
at
(
0x2FFCA000
)))
static
rt_int32_t
FILTER0_FIFO
[
FILTER_FIFO_SIZE
]
__attribute__
((
section
(
".Filter1Section"
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFCA000
#pragma location = 0x2FFC9000
__no_init
static
rt_int32_t
FILTER1_FIFO
[
FILTER_FIFO_SIZE
];
#endif
static
rt_int16_t
PLAY_BUF
[
PALY_SIZE
];
#define PALY_SIZE 2048
#if defined(__CC_ARM) || defined(__CLANG_ARM)
__attribute__
((
at
(
0x2FFC
9000
)))
__attribute__
((
at
(
0x2FFC
A000
)))
static
rt_int16_t
PLAY_BUF
[
PALY_SIZE
];
#elif defined ( __GNUC__ )
__attribute__
((
at
(
0x2FFC
9000
)))
__attribute__
((
at
(
0x2FFC
A000
)))
__attribute__
((
section
(
".DfsdmSection"
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFC9000
#pragma location = 0x2FFCA000
__no_init
static
rt_int16_t
PLAY_BUF
[
PALY_SIZE
];
#endif
rt_int32_t
FILTER1_FIFO
[
FILTER_FIFO_SIZE
];
static
volatile
rt_uint8_t
DmaLeftRecBuffCplt
=
0
;
static
volatile
rt_uint8_t
DmaRightRecBuffCplt
=
0
;
...
...
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_emmc.c
浏览文件 @
534239b8
...
...
@@ -49,13 +49,14 @@ struct rthw_sdio
};
#define EMMC_BUFF_SIZE 4096
#define EMMC_BUFF_ADDR 0x2FFCB000
#if defined(__CC_ARM) || defined(__CLANG_ARM)
rt_uint8_t
cache_buf
[
SDIO_BUFF_SIZE
]
__attribute__
((
at
(
0x2FFCB000
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFCB000
rt_uint8_t
cache_buf
[
EMMC_BUFF_SIZE
];
__attribute__
((
at
(
EMMC_BUFF_ADDR
)))
static
rt_uint8_t
cache_buf
[
EMMC_BUFF_SIZE
];
#elif defined ( __GNUC__ )
rt_uint8_t
cache_buf
[
SDIO_BUFF_SIZE
]
__attribute__
((
at
(
0x2FFCB000
)));
static
rt_uint8_t
cache_buf
[
EMMC_BUFF_SIZE
]
__attribute__
((
section
(
".eMMCSection"
)));
#elif defined(__ICCARM__)
#pragma location = EMMC_BUFF_ADDR
__no_init
static
rt_uint8_t
cache_buf
[
EMMC_BUFF_SIZE
];
#endif
#if defined(EMMC_RX_DUMP) || defined(EMMC_TX_DUMP)
...
...
@@ -558,7 +559,7 @@ int rt_hw_sdio_init(void)
}
INIT_DEVICE_EXPORT
(
rt_hw_sdio_init
);
#if defined(
EMMC_USING_D
FS)
#if defined(
BSP_USING_EMMC_
FS)
int
mnt_init
(
void
)
{
rt_device_t
sd
=
RT_NULL
;
...
...
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_ov5640.c
浏览文件 @
534239b8
...
...
@@ -28,23 +28,22 @@
#define JPEG_LINE_SIZE 1 * 1024
#if defined(__CC_ARM) || defined(__CLANG_ARM)
__attribute__
((
at
(
0x2FFCC000
)))
__attribute__
((
at
(
0x2FFCC000
)))
static
rt_int32_t
JPEG_DATA_BUF
[
JPEG_BUF_SIZE
];
#elif defined(__GNUC__)
__attribute__
((
at
(
0x2FFCC000
)))
static
rt_int32_t
JPEG_DATA_BUF
[
JPEG_BUF_SIZE
]
__attribute__
((
section
(
".Dcmi0Section"
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFCC000
__no_init
static
rt_int32_t
JPEG_DATA_BUF
[
JPEG_BUF_SIZE
];
#endif
static
rt_int32_t
JPEG_DATA_BUF
[
JPEG_BUF_SIZE
];
#if defined(__CC_ARM) || defined(__CLANG_ARM)
__attribute__
((
at
(
0x2FFDC000
)))
__attribute__
((
at
(
0x2FFDC000
)))
static
rt_int32_t
JPEG_LINE_BUF
[
2
][
JPEG_LINE_SIZE
];
#elif defined(__GNUC__)
__attribute__
((
at
(
0x2FFDC000
)))
static
rt_int32_t
JPEG_LINE_BUF
[
2
][
JPEG_LINE_SIZE
]
__attribute__
((
section
(
".Dcmi1Section"
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFDC000
__no_init
static
rt_int32_t
JPEG_LINE_BUF
[
2
][
JPEG_LINE_SIZE
];
#endif
static
rt_int32_t
JPEG_LINE_BUF
[
2
][
JPEG_LINE_SIZE
];
volatile
rt_uint32_t
jpeg_data_len
=
0
;
volatile
rt_uint8_t
jpeg_data_ok
=
0
;
...
...
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_sdcard.c
浏览文件 @
534239b8
...
...
@@ -10,7 +10,7 @@
#include "board.h"
#if defined(BSP_USING_SD
_
CARD)
#if defined(BSP_USING_SDCARD)
#include <dfs_fs.h>
#define DRV_DEBUG
...
...
@@ -41,14 +41,15 @@ struct rt_completion rx_comp;
/* SYSRAM SDMMC1/2 accesses */
#define SDIO_BUFF_SIZE 512
#define SDCARD_ADDR 0x2FFC0000
#if defined(__CC_ARM) || defined(__CLANG_ARM)
__attribute__
((
at
(
0x2FFC0000
)))
__attribute__
((
at
(
SDCARD_ADDR
)))
static
rt_uint32_t
cache_buf
[
SDIO_BUFF_SIZE
];
#elif defined ( __GNUC__ )
__attribute__
((
at
(
0x2FFC0000
)))
static
rt_uint32_t
cache_buf
[
SDIO_BUFF_SIZE
]
__attribute__
((
section
(
".SdCardSection"
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFC0000
#pragma location = SDCARD_ADDR
__no_init
static
rt_uint32_t
cache_buf
[
SDIO_BUFF_SIZE
];
#endif
static
rt_uint32_t
cache_buf
[
SDIO_BUFF_SIZE
];
#if defined(SDMMC_RX_DUMP) || defined(SDMMC_TX_DUMP)
#define __is_print(ch) ((unsigned int)((ch) - ' ') < 127u - ' ')
...
...
@@ -378,7 +379,7 @@ int rt_hw_sdcard_init(void)
}
INIT_DEVICE_EXPORT
(
rt_hw_sdcard_init
);
#if defined(
SD_USING_D
FS)
#if defined(
BSP_USING_SDCARD_
FS)
int
mnt_init
(
void
)
{
rt_device_t
sd_dev
=
RT_NULL
;
...
...
bsp/stm32/stm32mp157a-st-ev1/board/ports/drv_sound.c
浏览文件 @
534239b8
...
...
@@ -23,13 +23,13 @@
#define TX_FIFO_SIZE (4096)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
__attribute__
((
at
(
0x2FFC2000
)))
__attribute__
((
at
(
0x2FFC2000
)))
static
rt_uint8_t
AUDIO_TX_FIFO
[
TX_FIFO_SIZE
];
#elif defined ( __GNUC__ )
__attribute__
((
at
(
0x2FFC2000
)))
static
rt_uint8_t
AUDIO_TX_FIFO
[
TX_FIFO_SIZE
]
__attribute__
((
section
(
".AudioSection"
)));
#elif defined(__ICCARM__)
#pragma location = 0x2FFC2000
__no_init
static
rt_uint8_t
AUDIO_TX_FIFO
[
TX_FIFO_SIZE
];
#endif
static
rt_uint8_t
AUDIO_TX_FIFO
[
TX_FIFO_SIZE
];
struct
sound_device
{
...
...
@@ -348,7 +348,7 @@ static rt_err_t sound_start(struct rt_audio_device *audio, int stream)
RT_ASSERT
(
audio
!=
RT_NULL
);
snd_dev
=
(
struct
sound_device
*
)
audio
->
parent
.
user_data
;
if
(
stream
==
AUDIO_STREAM_REPLAY
)
{
LOG_D
(
"open sound device"
);
...
...
@@ -367,15 +367,11 @@ static rt_err_t sound_start(struct rt_audio_device *audio, int stream)
static
rt_err_t
sound_stop
(
struct
rt_audio_device
*
audio
,
int
stream
)
{
struct
sound_device
*
device
;
RT_ASSERT
(
audio
!=
RT_NULL
);
device
=
(
struct
sound_device
*
)
audio
->
parent
.
user_data
;
if
(
stream
==
AUDIO_STREAM_REPLAY
)
{
HAL_SAI_DMAStop
(
&
hsai_BlockA2
);
rt_device_close
(
device
->
decoder
);
LOG_D
(
"close sound device"
);
}
...
...
bsp/stm32/stm32mp157a-st-ev1/board/ports/eth/drv_eth.c
浏览文件 @
534239b8
...
...
@@ -33,22 +33,22 @@ rt_base_t level;
#if defined(__ICCARM__)
/* transmit buffer */
#pragma location = TX_ADD_BASE
static
uint8_t
txBuffer
[
ETH_TXBUFNB
][
ETH_TX_BUF_SIZE
];
__no_init
static
rt_
uint8_t
txBuffer
[
ETH_TXBUFNB
][
ETH_TX_BUF_SIZE
];
/* Receive buffer */
#pragma location = RX_ADD_BASE
static
uint8_t
rxBuffer
[
ETH_RXBUFNB
][
ETH_RX_BUF_SIZE
];
__no_init
static
rt_
uint8_t
rxBuffer
[
ETH_RXBUFNB
][
ETH_RX_BUF_SIZE
];
/* Transmit DMA descriptors */
#pragma location = TX_DMA_ADD_BASE
static
TxDmaDesc
txDmaDesc
[
ETH_TXBUFNB
];
__no_init
static
TxDmaDesc
txDmaDesc
[
ETH_TXBUFNB
];
/* Receive DMA descriptors */
#pragma location = RX_DMA_ADD_BASE
static
RxDmaDesc
rxDmaDesc
[
ETH_RXBUFNB
];
__no_init
static
RxDmaDesc
rxDmaDesc
[
ETH_RXBUFNB
];
#elif defined(__CC_ARM) || defined(__CLANG_ARM)
/* transmit buffer */
static
uint8_t
txBuffer
[
ETH_TXBUFNB
][
ETH_TX_BUF_SIZE
]
__attribute__
((
at
(
TX_ADD_BASE
)));
static
rt_
uint8_t
txBuffer
[
ETH_TXBUFNB
][
ETH_TX_BUF_SIZE
]
__attribute__
((
at
(
TX_ADD_BASE
)));
/* Receive buffer */
static
uint8_t
rxBuffer
[
ETH_RXBUFNB
][
ETH_RX_BUF_SIZE
]
__attribute__
((
at
(
RX_ADD_BASE
)));
static
rt_
uint8_t
rxBuffer
[
ETH_RXBUFNB
][
ETH_RX_BUF_SIZE
]
__attribute__
((
at
(
RX_ADD_BASE
)));
/* Transmit DMA descriptors */
static
TxDmaDesc
txDmaDesc
[
ETH_TXBUFNB
]
__attribute__
((
at
(
TX_DMA_ADD_BASE
)));
/* Receive DMA descriptors */
...
...
@@ -56,13 +56,13 @@ static RxDmaDesc rxDmaDesc[ETH_RXBUFNB] __attribute__((at(RX_DMA_ADD_BASE)));
#elif defined ( __GNUC__ )
/* transmit buffer */
static
uint8_t
txBuffer
[
ETH_TXBUFNB
][
ETH_TX_BUF_SIZE
]
__attribute__
((
at
(
TX_ADD_BASE
)));
static
rt_uint8_t
txBuffer
[
ETH_TXBUFNB
][
ETH_TX_BUF_SIZE
]
__attribute__
((
section
(
".TxArraySection"
)));
/* Receive buffer */
static
uint8_t
rxBuffer
[
ETH_RXBUFNB
][
ETH_RX_BUF_SIZE
]
__attribute__
((
at
(
RX_ADD_BASE
)));
static
rt_uint8_t
rxBuffer
[
ETH_RXBUFNB
][
ETH_RX_BUF_SIZE
]
__attribute__
((
section
(
".RxArraySection"
)));
/* Transmit DMA descriptors */
static
TxDmaDesc
txDmaDesc
[
ETH_TXBUFNB
]
__attribute__
((
at
(
TX_DMA_ADD_BASE
)));
static
TxDmaDesc
txDmaDesc
[
ETH_TXBUFNB
]
__attribute__
((
section
(
".TxDecripSection"
)));
/* Receive DMA descriptors */
static
RxDmaDesc
rxDmaDesc
[
ETH_RXBUFNB
]
__attribute__
((
at
(
RX_DMA_ADD_BASE
)));
static
RxDmaDesc
rxDmaDesc
[
ETH_RXBUFNB
]
__attribute__
((
section
(
".RxDecripSection"
)));
#endif
//Current transmit descriptor
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录