Skip to content

Commit e19b63e

Browse files
helloeagleyangRbb666
authored andcommitted
[bsp][hpmicro] upgrade hpm_sdk to v1.6.0
- upgraded hpm_sdk to v1.6.0 Signed-off-by: Fan YANG <[email protected]>
1 parent a8ff514 commit e19b63e

File tree

903 files changed

+355752
-9645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

903 files changed

+355752
-9645
lines changed

bsp/hpmicro/hpm5300evk/SConstruct

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ hpm_library = 'hpm_sdk'
5959
rtconfig.BSP_LIBRARY_TYPE = hpm_library
6060

6161
# include soc
62-
objs.extend(SConscript(os.path.join(libraries_path_prefix, hpm_library,'soc', rtconfig.CHIP_NAME, 'SConscript')))
62+
objs.extend(SConscript(os.path.join(libraries_path_prefix, hpm_library,'soc', rtconfig.SOC_FAMILY, rtconfig.CHIP_NAME, 'SConscript')))
6363

6464
# include libraries
6565
objs.extend(SConscript(os.path.join(libraries_path_prefix, hpm_library, 'SConscript')))

bsp/hpmicro/hpm5300evk/board/rtt_board.c

+11
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,14 @@ void rt_hw_cpu_reset(void)
116116
}
117117

118118
MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reset, reset the board);
119+
120+
#ifdef RT_USING_CACHE
121+
void rt_hw_cpu_dcache_ops(int ops, void *addr, int size)
122+
{
123+
if (ops == RT_HW_CACHE_FLUSH) {
124+
l1c_dc_flush((uint32_t)addr, size);
125+
} else {
126+
l1c_dc_invalidate((uint32_t)addr, size);
127+
}
128+
}
129+
#endif

bsp/hpmicro/hpm5300evk/rtconfig.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# toolchains options
88
ARCH='risc-v'
99
CPU='hpmicro'
10+
SOC_FAMILY='HPM5300'
1011
CHIP_NAME='HPM5361'
1112

1213
CROSS_TOOL='gcc'

bsp/hpmicro/hpm5301evklite/SConstruct

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ hpm_library = 'hpm_sdk'
5959
rtconfig.BSP_LIBRARY_TYPE = hpm_library
6060

6161
# include soc
62-
objs.extend(SConscript(os.path.join(libraries_path_prefix, hpm_library,'soc', rtconfig.CHIP_NAME, 'SConscript')))
62+
objs.extend(SConscript(os.path.join(libraries_path_prefix, hpm_library,'soc', rtconfig.SOC_FAMILY, rtconfig.CHIP_NAME, 'SConscript')))
6363

6464
# include libraries
6565
objs.extend(SConscript(os.path.join(libraries_path_prefix, hpm_library, 'SConscript')))

bsp/hpmicro/hpm5301evklite/rtconfig.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# toolchains options
88
ARCH='risc-v'
99
CPU='hpmicro'
10+
SOC_FAMILY='HPM5300'
1011
CHIP_NAME='HPM5301'
1112

1213
CROSS_TOOL='gcc'

0 commit comments

Comments
 (0)