[cortex-m7]rt_hw_cpu_dcache_ops函数uint32_t替换为rt_uint32_t
This commit is contained in:
parent
7c1d6ffd3c
commit
7296117203
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*
|
*
|
||||||
|
@ -73,15 +73,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
|
||||||
|
|
||||||
if ((ops & clean_invalid) == clean_invalid)
|
if ((ops & clean_invalid) == clean_invalid)
|
||||||
{
|
{
|
||||||
SCB_CleanInvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
|
SCB_CleanInvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
|
||||||
}
|
}
|
||||||
else if (ops & RT_HW_CACHE_FLUSH)
|
else if (ops & RT_HW_CACHE_FLUSH)
|
||||||
{
|
{
|
||||||
SCB_CleanDCache_by_Addr((uint32_t *)startAddr, size_byte);
|
SCB_CleanDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
|
||||||
}
|
}
|
||||||
else if (ops & RT_HW_CACHE_INVALIDATE)
|
else if (ops & RT_HW_CACHE_INVALIDATE)
|
||||||
{
|
{
|
||||||
SCB_InvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
|
SCB_InvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue