drivers: nrf: timer: add inline qualifier where inlining is intended
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>
This commit is contained in:
parent
084363a0dc
commit
ac36886e62
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue