Skip to content

Commit

Permalink
avr: const and static correctness improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Aug 14, 2022
1 parent 9d794c1 commit 42986dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/target/avr_pdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void avr_add_flash(target *t, uint32_t start, size_t length)
target_add_flash(t, f);
}

bool avr_ensure_nvm_idle(avr_pdi_t *pdi)
static bool avr_ensure_nvm_idle(avr_pdi_t *pdi)
{
return avr_pdi_write(pdi, PDI_DATA_8, AVR_ADDR_NVM_CMD, 0) &&
avr_pdi_write(pdi, PDI_DATA_8, AVR_ADDR_NVM_DATA, 0xFFU);
Expand Down Expand Up @@ -451,7 +451,7 @@ static void avr_halt_request(target *t)
pdi->halt_reason = TARGET_HALT_REQUEST;
}

static void avr_halt_resume(target *t, bool step)
static void avr_halt_resume(target *t, const bool step)
{
avr_pdi_t *pdi = t->priv;
if (step)
Expand Down

0 comments on commit 42986dc

Please sign in to comment.