Skip to content

Commit

Permalink
haly grtc: Use appropriate static inline macro
Browse files Browse the repository at this point in the history
Use the NRFY static inline macro for the nrfy code,
so this code works properly for simulation too.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
  • Loading branch information
aescolar committed Apr 19, 2024
1 parent f8e4d73 commit 827224f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nrfx/haly/nrfy_grtc.h
Expand Up @@ -854,14 +854,14 @@ NRFY_STATIC_INLINE uint32_t nrfy_grtc_clkout_divider_get(NRF_GRTC_Type const * p

#if NRFY_GRTC_HAS_CLKSEL
/** @refhal{nrf_grtc_clksel_set} */
NRF_STATIC_INLINE void nrfy_grtc_clksel_set(NRF_GRTC_Type * p_reg, nrf_grtc_clksel_t clksel)
NRFY_STATIC_INLINE void nrfy_grtc_clksel_set(NRF_GRTC_Type * p_reg, nrf_grtc_clksel_t clksel)
{
nrf_grtc_clksel_set(p_reg, clksel);
nrf_barrier_w();
}

/** @refhal{nrf_grtc_clksel_get} */
NRF_STATIC_INLINE nrf_grtc_clksel_t nrfy_grtc_clksel_get(NRF_GRTC_Type const * p_reg)
NRFY_STATIC_INLINE nrf_grtc_clksel_t nrfy_grtc_clksel_get(NRF_GRTC_Type const * p_reg)
{
nrf_barrier_rw();
nrf_grtc_clksel_t clksel = nrf_grtc_clksel_get(p_reg);
Expand Down

0 comments on commit 827224f

Please sign in to comment.