Skip to content

Commit b0e7cba

Browse files
authored
[bsp][stm32][artpi]:fix artpi nano (#10122)
1 parent bf60f31 commit b0e7cba

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

bsp/stm32/stm32h750-artpi/.ci/attachconfig/ci.attachconfig.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
scons.args: &scons
22
scons_arg:
33
- '--strict'
4-
4+
# ------ nano CI ------
5+
nano:
6+
<<: *scons
7+
kconfig:
8+
- CONFIG_RT_USING_NANO=y
9+
510
# ------ peripheral CI ------
611
peripheral.eth:
712
kconfig:

bsp/stm32/stm32h750-artpi/applications/main.c

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
#include <rtthread.h>
12-
#include <rtdevice.h>
1312
#include <board.h>
1413

1514
/* defined the LED0 pin: PI8 */

libcpu/arm/cortex-m7/cpu_cache.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
7676

7777
if ((ops & clean_invalid) == clean_invalid)
7878
{
79-
SCB_CleanInvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
79+
SCB_CleanInvalidateDCache_by_Addr((void *)startAddr, size_byte);
8080
}
8181
else if (ops & RT_HW_CACHE_FLUSH)
8282
{
83-
SCB_CleanDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
83+
SCB_CleanDCache_by_Addr((void *)startAddr, size_byte);
8484
}
8585
else if (ops & RT_HW_CACHE_INVALIDATE)
8686
{
87-
SCB_InvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
87+
SCB_InvalidateDCache_by_Addr((void *)startAddr, size_byte);
8888
}
8989
else
9090
{

0 commit comments

Comments
 (0)