Fix Error: chip/lpc43_tickless_rit.c:127:24: error: unused function 'lpc43_tl_get_mask' [-Werror,-Wunused-function]

static inline uint32_t lpc43_tl_get_mask(void)
                       ^
Error: chip/lpc43_tickless_rit.c:169:20: error: unused function 'lpc43_tl_get_enable' [-Werror,-Wunused-function]
static inline bool lpc43_tl_get_enable(void)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-11 15:07:43 +08:00 committed by Alan Carvalho de Assis
parent 03ff9d1a94
commit ddcebb22c9

View File

@ -124,11 +124,6 @@ static inline void lpc43_tl_set_mask(uint32_t value)
}
}
static inline uint32_t lpc43_tl_get_mask(void)
{
return mask_cache;
}
static inline bool lpc43_tl_get_ctrl_bit(uint32_t bit)
{
return ((ctrl_cache & bit)?true:false);
@ -166,11 +161,6 @@ static inline void lpc43_tl_set_enable(bool value)
lpc43_tl_set_ctrl_bit(RIT_CTRL_EN, value);
}
static inline bool lpc43_tl_get_enable(void)
{
return lpc43_tl_get_ctrl_bit(RIT_CTRL_EN);
}
static inline void lpc43_tl_clear_interrupt(void)
{
putreg32(ctrl_cache | RIT_CTRL_INT, LPC43_RIT_CTRL);