Skip to content

Commit 92955b7

Browse files
committed
define split_buffer_by_cacheline only when DCACHE is available
1 parent 853be94 commit 92955b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/qspi_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,7 @@ qspi_status_t qspi_write(qspi_t *obj, const qspi_command_t *command, const void
11281128
}
11291129
#endif /* OCTOSPI */
11301130

1131+
#if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
11311132
static void split_buffer_by_cacheline(void *buffer, const size_t *length, size_t *pre_aligned_size, size_t *aligned_size, size_t *post_aligned_size)
11321133
{
11331134
*pre_aligned_size = 0;
@@ -1158,6 +1159,7 @@ static void split_buffer_by_cacheline(void *buffer, const size_t *length, size_t
11581159
}
11591160
}
11601161
}
1162+
#endif
11611163

11621164

11631165
#if defined(OCTOSPI1)

0 commit comments

Comments
 (0)