insane-adding-machines / frosted

Frosted: Free POSIX OS for tiny embedded devices
GNU General Public License v2.0
215 stars 39 forks source link

RNG: Rewrite RNG driver. #50

Closed brabo closed 8 years ago

brabo commented 8 years ago

https://github.com/insane-adding-machines/libopencm3/commit/6c0fa767776174e6e6fa54a1c7a24acdfcfb2055 introduces clean functions to (en|dis)able the RNG and to read from it, allowing the driver code to be agnostic about registers and be more clean.

brabo commented 8 years ago

Expanded unicore-mx rng support to use convenience functions. Refactored rng driver and added f2 support to frosted. Need to handle errors correctly still.

danielinux commented 8 years ago

What is still missing in the current implementation:

If you want to implement #55 perhaps it's worth keeping both mechanism in place, so /dev/random can be attached to either the RNG directly or to libfortuna, depending whether CONFIG_LIBFORTUNA is enabled.

danielinux commented 8 years ago

@brabo : fixed via fortuna branch.

closing.