Skip to content

Commit

Permalink
drivers counter nrfx RTC: Fix ISR prototype
Browse files Browse the repository at this point in the history
The ISR prototype is not matching the
signature for interrupt handlers, which results in
build warnings.
Let's fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
  • Loading branch information
aescolar authored and henrikbrixandersen committed Mar 8, 2024
1 parent 3b7b232 commit ad7086a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/counter/counter_nrfx_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,10 @@ static void alarm_irq_handle(const struct device *dev, uint32_t chan)
}
}

static void irq_handler(const struct device *dev)
static void irq_handler(const void *arg)
{
const struct device *dev = arg;

top_irq_handle(dev);

for (uint32_t i = 0; i < counter_get_num_of_channels(dev); i++) {
Expand Down

0 comments on commit ad7086a

Please sign in to comment.