nrf-rs / nrf-hal

A Rust HAL for the nRF family of devices
Apache License 2.0
503 stars 139 forks source link

nRF51822 Support #367

Closed netthier closed 2 years ago

netthier commented 2 years ago

Hey, is any support for the nRF51822, used by the Calliope Mini, planned? If not, how hard would it be to implement?

jonas-schievink commented 2 years ago

We don't currently have a PAC for that chip, so you'd have to add one to https://github.com/nrf-rs/nrf-pacs. Then, adding HAL support should be relatively straightforward (you can check https://github.com/nrf-rs/nrf-hal/pull/148 for an example PR adding support for a new chip).

netthier commented 2 years ago

Do you know where I could find the SVD file for that chip? I tried downloading the MDK, and while it does contain SVD's for a lot of chips, there are only the following, relatively short, files for the 51822:

Furthermore, the header file contains the line /* This file is deprecated */ How would I generate a PAC crate for this chip?

jonas-schievink commented 2 years ago

Oh, nRF51822, that's already supported by the nrf51-pac and nrf51-hal. I thought it said nRF52822, which does not seem to exist.

netthier commented 2 years ago

Ah, that's awesome. Thanks!