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

nRF52 without softdevice #91

Open
wombatsoftwareguild opened this issue Apr 15, 2020 · 3 comments
Open

nRF52 without softdevice #91

wombatsoftwareguild opened this issue Apr 15, 2020 · 3 comments

Comments

@wombatsoftwareguild
Copy link

There are plenty of uses for libhydrogen on an nRF52 when the softdevice is not present or not enabled. There is a separate nRF5 SDK set of API calls for the random number generator when the softdevice APIs are not availaible. (I'm not sure if one can use these APIs when the softdevice is enabled -- it's tough to sort through the Nordic documentation.)

Request modifying impl/random.h to use the alternate random API if SOFTDEVICE_PRESENT or sd_softdevice_is_enabled() indicates the softdevice APIs are not available.

@wombatsoftwareguild
Copy link
Author

Actually nrf_sdh_is_enabled() might be a better choice for checking which API to use.

@jedisct1
Copy link
Owner

Go for it :)

@wombatsoftwareguild
Copy link
Author

wombatsoftwareguild commented Apr 20, 2020 via email

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

2 participants