Skip to content

Commit

Permalink
drivers: nrf: timer: add inline qualifier where inlining is intended
Browse files Browse the repository at this point in the history
Not necessary with gcc, and Zephyr is inconsistent about using the
qualifier, but making the intent explicit is a good thing.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  • Loading branch information
pabigot authored and carlescufi committed Jan 23, 2019
1 parent 084363a commit ac36886
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/timer/nrf_rtc_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@

static u32_t last_count;

static u32_t counter_sub(u32_t a, u32_t b)
static inline u32_t counter_sub(u32_t a, u32_t b)
{
return (a - b) & COUNTER_MAX;
}

static void set_comparator(u32_t cyc)
static inline void set_comparator(u32_t cyc)
{
nrf_rtc_cc_set(RTC, 0, cyc);
}

static u32_t counter(void)
static inline u32_t counter(void)
{
return nrf_rtc_counter_get(RTC);
}
Expand Down

0 comments on commit ac36886

Please sign in to comment.