Skip to content

Commit

Permalink
fix SYSCTRL_CacheControl
Browse files Browse the repository at this point in the history
  • Loading branch information
zjli-2019 committed Mar 7, 2023
1 parent c847556 commit dcb70e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FWlib/peripheral_sysctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ void SYSCTRL_SelectMemoryBlocks(uint32_t block_map)
void SYSCTRL_CacheControl(SYSCTRL_CacheMemCtrl i_cache, SYSCTRL_CacheMemCtrl d_cache)
{
#define IC_BASE 0x40140000
#define DC_BASE 0x40140000
#define DC_BASE 0x40141000

uint8_t v = (i_cache << 1) | d_cache;
if (SYSCTRL_MEM_BLOCK_AS_CACHE != i_cache)
Expand Down

0 comments on commit dcb70e9

Please sign in to comment.