1sample: 2 description: An example to showcase usage of the nrfx_timer driver when timer is in counter mode. 3 name: nrfx_timer counter mode example 4tests: 5 examples.nrfx_timer.counter: 6 tags: timer 7 filter: dt_compat_enabled("nordic,nrf-timer") 8 platform_allow: 9 - nrf52dk/nrf52832 10 - nrf52833dk/nrf52833 11 - nrf52840dk/nrf52840 12 - nrf5340dk/nrf5340/cpuapp 13 - nrf9160dk/nrf9160 14 integration_platforms: 15 - nrf52dk/nrf52832 16 - nrf52833dk/nrf52833 17 - nrf52840dk/nrf52840 18 - nrf5340dk/nrf5340/cpuapp 19 - nrf9160dk/nrf9160 20 harness: console 21 harness_config: 22 type: multi_line 23 ordered: true 24 regex: 25 - "Starting nrfx_timer basic counter example." 26 - "Time between timer ticks: 1000 ms" 27 - "Timer status: enabled" 28 - "Counter status: enabled" 29 - "Timer: 1" 30 - "Timer: 2" 31 - "Timer: 3" 32 - "Counter: 1 / 3" 33 - "Timer: 1" 34 - "Timer: 2" 35 - "Timer: 3" 36 - "Counter: 2 / 3" 37 - "Timer: 1" 38 - "Timer: 2" 39 - "Timer: 3" 40 - "Counter finished" 41 - "Counter: 3 / 3" 42 - "Timer status: disabled" 43 - "Counter status: disabled" 44