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

How to prevent the crypto library from using the watchdog timer? #31

Closed
bmanga opened this issue Jun 7, 2018 · 3 comments
Closed

How to prevent the crypto library from using the watchdog timer? #31

bmanga opened this issue Jun 7, 2018 · 3 comments

Comments

@bmanga
Copy link

bmanga commented Jun 7, 2018

CRYPTO/RNG.cpp uses the watchdog to generate entropy, however I need to use it for other purposes.
I see that part is guarded by a macro, but setting RNG_WATCHDOG to 0 causes compilation errors.
Is there a simple way to disable it?

@rweather
Copy link
Owner

rweather commented Jun 7, 2018

Try commenting the line out completely rather than setting it to 0; i.e.:

//#define RNG_WATCHDOG 1

You may also need to comment out the "no hardware random number source" error/warning. You will need a separate noise source to replace the watchdog of course.

I hope this helps.

@bmanga
Copy link
Author

bmanga commented Jun 7, 2018

Yes, it fixes is thanks!

@ortegafernando
Copy link

Hi, I am using in the same sketch LowPower library and this library. I have problems to use another source of noise.
Could I get any simple example ?
Thanks.

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

3 participants