drivers: counter: Add flags to counter_config_info structure
Allow further extention of counter API by replacing count_up bool in the structure with u8_t flags where one bit is used for count up feature. Change is not breaking API as count up property is read using counter_is_counting_up() that didn't change. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
bc4825d6bf
commit
89923134e7
10 changed files with 23 additions and 14 deletions
|
@ -254,7 +254,7 @@ static struct mcux_rtc_config mcux_rtc_config_0 = {
|
|||
.max_top_value = UINT32_MAX,
|
||||
.freq = DT_NXP_KINETIS_RTC_0_CLOCK_FREQUENCY /
|
||||
DT_NXP_KINETIS_RTC_0_PRESCALER,
|
||||
.count_up = true,
|
||||
.flags = COUNTER_CONFIG_INFO_COUNT_UP,
|
||||
.channels = 1,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue