Use hardware timer in zephyr

Hello everyone,

I have a custom board with a NRF52840 microcontroller with 32MHz crystal oscillator, running Zephyr RTOS with NRF Connect SDK and want to make use of a hardware timer to generate interrupts every 50µs.

I have other peripherals in operation (such as Bluetooth, NFC, RTC and USB).

Can you please give me a hint how I can do this (or hand me a link for a sample with prj.conf, devicetree, and source code)? 

Which timer is free to use? (I read, that some timers are already in use for example for bluetooth).

I have only found information for older SDK (NRF5 SDK).

Kind regards,

Dom

Related