Thanks Martine, But as the atmegarfr2 is a soc this is the hwrng for this device.
So what would be the best place to put it if not as cpu/periph in this special case? I would then implement it as CPU feature and remove the depency to the at86rf2xx driver. Still the remaining question is it made sure that random32 calls or any calls to random are directed to hwrng_read Is this already done by just enabling the module when building with FEATURES_REQUIRED = periph_hwrng ? Von: devel <devel-boun...@riot-os.org> Im Auftrag von Martine Lenders Gesendet: Montag, 5. März 2018 15:47 An: RIOT OS kernel developers <devel@riot-os.org> Betreff: Re: [riot-devel] hwrnd how to implement Hi Josua, when the RNG component of the at86rf2xx driver was provided in [1] we decided to not implement the `periph/hwnrg` with it. Main reasons are that it is 1. Not a `periph` (i.e. a CPU feature) 2. Hard to integrate when e.g. the CPU already provides a `hwnrg`. Hope this helps, Martine [1] https://github.com/RIOT-OS/RIOT/pull/4989 2018-03-05 15:04 GMT+01:00 Arndt, Josua <jar...@ias.rwth-aachen.de<mailto:jar...@ias.rwth-aachen.de>>: Hello all, While implementing the at86rfr2 transceiver for the jiminy board I thought of also implement the hwrng. What I did is implementing in cpu/atmega256rfr2/periph/hwnrg.c hwrng_init hwrng_read Added feature and module to makefiles. Now I have some questions: 1. How do I best include the depency to $(RIOTBASE)/drivers/at86rf2xx/include/at86rf2xx_internal.h, of hwrng.c in cpu folder? 2. How is it ensured that hardware random is used in all cases? And all other are not linked? 3. Where to find howto, concept description, implementation guide? Best Regards Josua [rwth_ias_bild_rgb_logo] Josua Arndt, M.Sc. RWTH Aachen University Integrated Analog Circuits and RF Systems Kopernikusstraße 16, ICT Cube North, Room 209, D-52074 Aachen Email: josua.ar...@ias.rwth-aachen.de<mailto:josua.ar...@ias.rwth-aachen.de> Phone: +49 241 / 80 - 27750<tel:+49%20241%208027750> _______________________________________________ devel mailing list devel@riot-os.org<mailto:devel@riot-os.org> https://lists.riot-os.org/mailman/listinfo/devel
_______________________________________________ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel