Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for nRF52810? #56

Closed
fmckeogh opened this issue Feb 8, 2019 · 8 comments
Closed

Support for nRF52810? #56

fmckeogh opened this issue Feb 8, 2019 · 8 comments

Comments

@fmckeogh
Copy link
Contributor

fmckeogh commented Feb 8, 2019

Hello!

If I started work on an nrf52810-hal is it the sort of thing you would like to see merged, or developed as a separate project? I can't see any references to it in this repository so I was just wondering what the plans were.

Thanks :)

@Yatekii
Copy link
Contributor

Yatekii commented Feb 8, 2019

Hi!

Sure, if you did an implementation and the code is okay, we'll happily merge that!
It seems that just nobody did have the need of an implementation yet. I also didn't hear much of the nRF52810 yet, so not sure how widespread it is.

You are welcome to contribute anytime!

@hannobraun
Copy link
Contributor

What @Yatekii said.

I was just wondering what the plans were.

This is a pretty loosely organized group, so there aren't really any plans beyond what the individual contributors want. If you want to support 53810 in this crate, go ahead and make it happen :-)

One caveat: I'm not sure how many of the current maintainer have nRF52810 hardware and experience (I know I have neither). I'm guessing this would require some ongoing maintenance on your part, after the initial contribution.

@eupn
Copy link

eupn commented Feb 10, 2019

As far as hardware goes, nRF52810 can be "emulated" on nRF52832 dev. board, since former is just a stripped version of the latter. For that reason there is no nRF52-DK in existence which is specifically for the nRF52810 chip. That being said, the only support that this chip is requiring is a correct linker script which takes into account smaller amount of memories available and, perhaps, to implement feature-gating of peripherals that aren't present on the chip.

@fmckeogh
Copy link
Contributor Author

@eupn Good to know, thank you! :)

@fmckeogh
Copy link
Contributor Author

I'm not sure which is better of the following two options:

#[cfg(feature = "52810")]
use crate::target::{spim0, SPIM0};

#[cfg(any(feature = "52832", feature = "52840"))]
use crate::target::{spim0, SPIM0, SPIM1, SPIM2};

or

use crate::target::{spim0, SPIM0};

#[cfg(any(feature = "52832", feature = "52840"))]
use crate::target::{SPIM1, SPIM2};

Any thoughts?

@Yatekii
Copy link
Contributor

Yatekii commented Feb 10, 2019

I think both are valid and okay, but I personally would go for the second.

The first one tells you on first sight what each chip can do. The second one tells you the differences.

From a style perspective I would go for the second one. But I think the first one is better when it comes to understanding code.

@fmckeogh
Copy link
Contributor Author

fmckeogh commented Feb 10, 2019

I've gone with the second option and opened a PR (#57).

@jamesmunns
Copy link
Member

Closed by #57

hargoniX pushed a commit to hargoniX/nrf-hal that referenced this issue Jul 28, 2021
Group CI steps when running in GitHub actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants