Skip to content

Commit a88c5d0

Browse files
CYFS3Rbb666
authored andcommitted
[bsp][stm32][artpi]:add artpi eth ci
1 parent 7ec1d82 commit a88c5d0

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

bsp/stm32/libraries/STM32H7xx_HAL/SConscript

+2-3
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,9 @@ if GetDepend(['BSP_USING_DCMI']):
113113
src += ['STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dcmi.c']
114114

115115
path = [cwd + '/STM32H7xx_HAL_Driver/Inc',
116-
cwd + '/CMSIS/Device/ST/STM32H7xx/Include']
116+
cwd + '/CMSIS/Device/ST/STM32H7xx/Include',
117+
cwd + '/STM32H7xx_HAL_Driver/Inc/Legacy']
117118

118-
if GetDepend(['SOC_STM32H750_ARTPI']):
119-
path += [cwd + '/STM32H7xx_HAL_Driver/Inc/Legacy']
120119

121120
CPPDEFINES = ['USE_HAL_DRIVER']
122121
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
scons.args: &scons
2+
scons_arg:
3+
- '--strict'
4+
5+
# ------ peripheral CI ------
6+
peripheral.eth:
7+
kconfig:
8+
- CONFIG_BSP_USING_ETH_H750=y
9+

bsp/stm32/stm32h750-artpi/board/SConscript

+3-1
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

+5
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)