Skip to content

Commit

Permalink
drivers: counter: fix nRF prescaler overflow
Browse files Browse the repository at this point in the history
use u32_t in init_rtc to be able to use the full 12 bit prescaler values
fixes zephyrproject-rtos#22014

Signed-off-by: Christian Hirsch <christian.hirsch@tuwien.ac.at>
  • Loading branch information
ChristianHirsch committed Jan 20, 2020
1 parent 33929cb commit 299578f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/counter/counter_nrfx_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static u32_t get_pending_int(struct device *dev)
return 0;
}

static int init_rtc(struct device *dev, u8_t prescaler)
static int init_rtc(struct device *dev, u32_t prescaler)
{
struct device *clock;
const struct counter_nrfx_config *nrfx_config = get_nrfx_config(dev);
Expand Down

0 comments on commit 299578f

Please sign in to comment.