nrf-rs / microbit

A Rust crate for BBC micro:bit development
BSD Zero Clause License
276 stars 61 forks source link

RTC1 and RTC2 missing from Board #99

Closed videbar closed 1 year ago

videbar commented 2 years ago

Hi, I noticed that the board struct of the microbit-v2 crate only has one real time counter field, RTC0. I checked the nRF52833 product specification and it states that there are three real time counters available RT0, RT1, and RT2 (page 356). The other two RTC are implemented on the PAC (here and here).

I was wondering if there's a reason why they are not available from the Board struct or if I'm missing something (I'm quite new to rust embedded).

videbar commented 2 years ago

I looked into this and added the RTC1 and RTC2 fields to Board here.

I tested it on my microbit and it seems to work fine, if it's ok, I can open a pull request to merge it.

videbar commented 1 year ago

I tested this further and I have experienced no problems with RTC1 and RTC2. I'll open a PR and you can review it in case there are any issues that I may have missed.