drivers: counter: mcux: Fix sanitycheck test build issue
The generated defines RTC_0_CLOCK_FREQUENCY and RTC_0_PRESCALER are maked as deprecated by dts generation. This causes a build warning and an error during sanitycheck runs. Replace with the DT_ prefixed versions that are not deprecated. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
436f1123c8
commit
d6a19afb29
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ static struct mcux_rtc_config mcux_rtc_config_0 = {
|
|||
.irq_config_func = mcux_rtc_irq_config_0,
|
||||
.info = {
|
||||
.max_top_value = UINT32_MAX,
|
||||
.freq = RTC_0_CLOCK_FREQUENCY / RTC_0_PRESCALER,
|
||||
.freq = DT_NXP_KINETIS_RTC_0_CLOCK_FREQUENCY /
|
||||
DT_NXP_KINETIS_RTC_0_PRESCALER,
|
||||
.count_up = true,
|
||||
.channels = 1,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue