libtock-c icon indicating copy to clipboard operation
libtock-c copied to clipboard

Add cycle counter driver and test app

Open hudson-ayers opened this issue 10 months ago • 4 comments

This PR adds a driver for the cycle counter capsule, for which kernel support is being added in https://github.com/tock/tock/pull/3934. It also adds a basic test application which prints the number of cycles required to toggle an LED, after checking that the ability to start and stop the driver has not already been claimed by another app.

Tested by adding the capsule to the nrf52840dk and running this app. It takes about 4000 cycles to toggle an LED from userspace.

hudson-ayers avatar Apr 01 '24 05:04 hudson-ayers

Can I ask you follow the new guide? https://github.com/tock/libtock-c/blob/43525b8fedff3531685dbb20b08916addcca0997/doc/guide.md

Maybe not the syscalls folder but the naming convention?

bradjc avatar Apr 02 '24 02:04 bradjc

I will come back to this once the new libtock format is merged

hudson-ayers avatar Apr 24 '24 02:04 hudson-ayers