Add support for using the sub second registers. It allows reading and setting alarm with the sub second tick resolution. The RTC module is configured to get as high frequency as possible, which equals the source clock (RTCCLK) divided by 2. To get such frequency, the asynchronous prescaler is set to 1. According to RM, setting the asynchronous prescaler to a high value minimize consumption, so the change increase the power consumption. Use a config to enable the sub second support. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
29 lines
724 B
YAML
29 lines
724 B
YAML
tests:
|
|
drivers.counter.basic_api:
|
|
tags:
|
|
- drivers
|
|
- counter
|
|
depends_on: counter
|
|
min_ram: 16
|
|
platform_exclude: nucleo_f302r8
|
|
timeout: 600
|
|
drivers.counter.basic_api.nrf_zli:
|
|
tags:
|
|
- drivers
|
|
- counter
|
|
depends_on: counter
|
|
platform_allow: nrf52840dk_nrf52840
|
|
timeout: 400
|
|
extra_configs:
|
|
- CONFIG_ZERO_LATENCY_IRQS=y
|
|
extra_args:
|
|
DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840.overlay;boards/nrf52840dk_nrf52840_zli.overlay"
|
|
drivers.counter.basic_api.stm32_subsec:
|
|
tags:
|
|
- drivers
|
|
- counter
|
|
depends_on: counter
|
|
platform_allow: nucleo_f429zi
|
|
timeout: 600
|
|
extra_configs:
|
|
- CONFIG_COUNTER_RTC_STM32_SUBSECONDS=y
|