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

esp32-c3: Add support to RNG peripheral #3261

Merged
merged 2 commits into from Apr 3, 2021

Conversation

acassis
Copy link
Contributor

@acassis acassis commented Mar 31, 2021

Summary

Add support to RNG peripheral

Impact

Only ESP32-C3

Testing

ESP32C3-Devkitc

Comment on lines 127 to 129
/****************************************************************************
* Name: esp32c3_rng_open
****************************************************************************/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/****************************************************************************
* Name: esp32c3_rng_open
****************************************************************************/

static pthread_once_t once_control = PTHREAD_ONCE_INIT;
int ret;

ret = pthread_once(&once_control, esp32c3_rng_initialize);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed.

Copy link
Contributor Author

@acassis acassis Apr 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think you are right. Probably this check to avoid running xxxx_rng_initialize() twice was added to arch/arm/src/nrf52/nrf52_rng.c because because someone thought it could be called from devrandom_register() and devurandom_register() during the boot, but the #ifndef is protecting it. I'll remove it!

acassis and others added 2 commits April 2, 2021 08:34
Co-authored-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Co-authored-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
@acassis
Copy link
Contributor Author

acassis commented Apr 3, 2021

@xiaoxiang781216 / @Ouss4 please merge it

@xiaoxiang781216 xiaoxiang781216 merged commit b4129f8 into apache:master Apr 3, 2021
@btashton btashton added this to To-Add in Release Notes - 10.1.0 Apr 12, 2021
@jerpelea jerpelea moved this from To-Add to drivers in Release Notes - 10.1.0 Apr 13, 2021
@jerpelea jerpelea moved this from drivers to boards in Release Notes - 10.1.0 Apr 13, 2021
@jerpelea jerpelea moved this from boards to Added in Release Notes - 10.1.0 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants