mirror of https://github.com/RT-Thread/rt-thread
[bsp][stm32][artpi]:fix artpi nano (#10122)
This commit is contained in:
parent
bf60f31526
commit
b0e7cba9fd
|
@ -1,7 +1,12 @@
|
|||
scons.args: &scons
|
||||
scons_arg:
|
||||
- '--strict'
|
||||
|
||||
# ------ nano CI ------
|
||||
nano:
|
||||
<<: *scons
|
||||
kconfig:
|
||||
- CONFIG_RT_USING_NANO=y
|
||||
|
||||
# ------ peripheral CI ------
|
||||
peripheral.eth:
|
||||
kconfig:
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
#include <board.h>
|
||||
|
||||
/* defined the LED0 pin: PI8 */
|
||||
|
|
|
@ -76,15 +76,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
|
|||
|
||||
if ((ops & clean_invalid) == clean_invalid)
|
||||
{
|
||||
SCB_CleanInvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
|
||||
SCB_CleanInvalidateDCache_by_Addr((void *)startAddr, size_byte);
|
||||
}
|
||||
else if (ops & RT_HW_CACHE_FLUSH)
|
||||
{
|
||||
SCB_CleanDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
|
||||
SCB_CleanDCache_by_Addr((void *)startAddr, size_byte);
|
||||
}
|
||||
else if (ops & RT_HW_CACHE_INVALIDATE)
|
||||
{
|
||||
SCB_InvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
|
||||
SCB_InvalidateDCache_by_Addr((void *)startAddr, size_byte);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue