drivers: rtc: stm32: fix build warning
Use a mem_addr_t cast to avoid build warning. Signed-off-by: Johan Lafon <johan.lafon@syslinbit.com>
This commit is contained in:
parent
1c7a6e2679
commit
24a2b6b004
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ static int rtc_stm32_get_calibration(const struct device *dev, int32_t *calibrat
|
||||||
{
|
{
|
||||||
ARG_UNUSED(dev);
|
ARG_UNUSED(dev);
|
||||||
|
|
||||||
uint32_t calr = sys_read32(&RTC->CALR);
|
uint32_t calr = sys_read32((mem_addr_t) &RTC->CALR);
|
||||||
|
|
||||||
bool calp_enabled = READ_BIT(calr, RTC_CALR_CALP);
|
bool calp_enabled = READ_BIT(calr, RTC_CALR_CALP);
|
||||||
uint32_t calm = READ_BIT(calr, RTC_CALR_CALM);
|
uint32_t calm = READ_BIT(calr, RTC_CALR_CALM);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue