Skip to content

Commit

Permalink
cpu/sam0_common: flashpage: invalidate cache on _lock()
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Oct 28, 2020
1 parent b5913b7 commit 1840972
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpu/sam0_common/periph/flashpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ static void _lock(void)
#else
PAC1->WPSET.reg = PAC1_WPROT_DEFAULT_VAL;
#endif

/* invalidate cache */
#ifdef CMCC
CMCC->MAINT0.bit.INVALL = 1;
#endif
}

static void _cmd_clear_page_buffer(void)
Expand Down

0 comments on commit 1840972

Please sign in to comment.