Skip to content

Commit

Permalink
Merge pull request #136 from stm32-rs/flash-for-loop
Browse files Browse the repository at this point in the history
Simplify flash.c
  • Loading branch information
hannobraun authored Dec 9, 2020
2 parents 5c8509f + 92a34e2 commit ecf5cc4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flash-code/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
// function is necessary.
__attribute__((section(".data")))
void write_half_page(uint32_t *address, uint32_t *words) {
uint32_t i = 0;
while (i < 16) {
for (uint32_t i = 0; i < 16; i++) {
*(address + i) = *(words + i);
i++;
}
}

0 comments on commit ecf5cc4

Please sign in to comment.