Skip to content

Commit

Permalink
call correct version of *hardware_alarm_get_irq_num
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham committed Aug 20, 2024
1 parent 8953e1b commit 9902d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timer/timer_lowlevel/timer_lowlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static uint64_t get_time(void) {
/// \tag::alarm_standalone[]
// Use alarm 0
#define ALARM_NUM 0
#define ALARM_IRQ hardware_alarm_get_irq_num(timer_hw, ALARM_NUM)
#define ALARM_IRQ timer_hardware_alarm_get_irq_num(timer_hw, ALARM_NUM)

// Alarm interrupt handler
static volatile bool alarm_fired;
Expand Down

0 comments on commit 9902d31

Please sign in to comment.