Skip to content

Commit

Permalink
Stub out timer for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Oct 28, 2024
1 parent b432107 commit fefc22a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/peripherals/nrf52832/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,10 @@ PPI_TASK_HANDLER(timer_task_handler)
switch (task)
{
case TASK_ID(TIMER_TASKS_START):
fault_take(FAULT_NOT_IMPLEMENTED); // TODO: Make timer use HFCLK ticker

if (timer->mode == MODE_TIMER)
{
if (!timer->running)
ticker_add(timer->ticker, timer_tick, timer, TICK_INTERVAL, true);
// if (!timer->running)
// ticker_add(timer->ticker, CLOCK_HFCLK, timer_tick, timer, TICK_INTERVAL, true);

timer->running = true;
}
Expand Down

0 comments on commit fefc22a

Please sign in to comment.