Skip to content

Commit 286f406

Browse files
committed
[bsp][stm32][artpi]:add eth ci
1 parent 30409da commit 286f406

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
scons.args: &scons
2+
scons_arg:
3+
- '--strict'
4+
# ------ nano CI ------
5+
nano:
6+
<<: *scons
7+
kconfig:
8+
- CONFIG_RT_USING_NANO=y
9+
# ------ kernel CI ------
10+
kernel.klibc-stdlib:
11+
<<: *scons
12+
kconfig:
13+
- CONFIG_RT_KLIBC_USING_STDLIB=y
14+
- CONFIG_RT_KLIBC_USING_STDLIB_MEMORY=y
15+
kernel.klibc-tinysize:
16+
<<: *scons
17+
kconfig:
18+
- CONFIG_RT_KLIBC_USING_TINY_SIZE=y
19+
kernel.klibc-vsnprintf-std:
20+
<<: *scons
21+
kconfig:
22+
- CONFIG_RT_KLIBC_USING_VSNPRINTF_STANDARD=y
23+
- CONFIG_RT_KLIBC_USING_PRINTF_LONGLONG=y
24+
- CONFIG_RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS=y
25+
- CONFIG_RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS=y
26+
- CONFIG_RT_KLIBC_USING_VSNPRINTF_WRITEBACK_SPECIFIER=y
27+
- CONFIG_RT_KLIBC_USING_VSNPRINTF_CHECK_NUL_IN_FORMAT_SPECIFIER=y
28+
- CONFIG_RT_KLIBC_USING_VSNPRINTF_MSVC_STYLE_INTEGER_SPECIFIERS=y
29+
30+
31+
# ------ peripheral CI ------
32+
peripheral.eth:
33+
kconfig:
34+
- CONFIG_BSP_USING_ETH_H750=y
35+

bsp/stm32/stm32h750-artpi/board/SConscript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ list = os.listdir(cwd)
1111
# add the general drivers.
1212
src = Glob('board.c')
1313
src += Glob('CubeMX_Config/Core/Src/stm32h7xx_hal_msp.c')
14-
src += Glob('port/drv_mpu.c')
14+
if GetDepend(['BSP_SCB_ENABLE_I_CACHE']) or GetDepend(['BSP_SCB_ENABLE_D_CACHE']):
15+
src += Glob('port/drv_mpu.c')
16+
1517
if GetDepend(['BSP_USING_QSPI_FLASH']):
1618
src += Glob('port/drv_qspi_flash.c')
1719

bsp/stm32/stm32h750-artpi/board/port/drv_mpu.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ int mpu_init(void)
8686
HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
8787

8888
/* Enable CACHE */
89+
#ifdef BSP_SCB_ENABLE_I_CACHE
8990
SCB_EnableICache();
91+
#endif
92+
93+
#ifdef BSP_SCB_ENABLE_D_CACHE
9094
SCB_EnableDCache();
95+
#endif
9196

9297
return RT_EOK;
9398

0 commit comments

Comments
 (0)