Skip to content

Commit aeabcc9

Browse files
authored
Merge pull request #3262 from TomoYamanaka/master
Add API which cleans Dcache in IAR compiler.
2 parents 3aac153 + 4b3ce8e commit aeabcc9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cmsis/core_caFunc.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,23 @@ __asm(
811811
__STATIC_INLINE void __v7_inv_dcache_all(void) {
812812
__v7_all_cache(0);
813813
}
814+
/** \brief Clean the whole D$
815+
816+
DCCSW. Clean by Set/Way
817+
*/
818+
819+
__STATIC_INLINE void __v7_clean_dcache_all(void) {
820+
__v7_all_cache(1);
821+
}
822+
823+
/** \brief Clean and invalidate the whole D$
824+
825+
DCCISW. Clean and Invalidate by Set/Way
826+
*/
827+
828+
__STATIC_INLINE void __v7_clean_inv_dcache_all(void) {
829+
__v7_all_cache(2);
830+
}
814831
/** \brief Clean and Invalidate D$ by MVA
815832
816833
DCCIMVAC. Data cache clean and invalidate by MVA to PoC

0 commit comments

Comments
 (0)