Skip to content

Commit

Permalink
rp2040: wip - temporary debugging - needed to bring up usb for some r…
Browse files Browse the repository at this point in the history
…eason
  • Loading branch information
KevinOConnor committed Oct 26, 2024
1 parent 9aa929c commit 5b128d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/rp2040/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,17 @@ clock_setup(void)
enable_pclock(RESETS_RESET_IO_BANK0_BITS | RESETS_RESET_PADS_BANK0_BITS);
}

void
dummy_task(void)
{
static uint32_t next;
uint32_t cur = timer_read_time();
if (!next || timer_is_before(next, cur)) {
next = cur + timer_from_us(1000000);
}
}
DECL_TASK(dummy_task);

// Main entry point - called from armcm_boot.c:ResetHandler()
void
armcm_main(void)
Expand Down

0 comments on commit 5b128d7

Please sign in to comment.