[riot-devel] Implementing rng
peter.kietzmann at haw-hamburg.de
Sun Feb 21 19:29:14 CET 2016
 is the interface that should be implemented by your driver. The
driver is CPU specific and should be placed in RIOT/cpu/*/periph/hwrng.c
like e.g. here .
Does that reduce your confusion or did I get you wrong :-) ?
Am 18.02.2016 um 13:46 schrieb Tausig Mathias:
> I am a bit confused, where to put that code. As far as I can tell, all current
> implementations of the hwrng functions are implemented on the cpu and not on the
> board level. While my rng is on the at86rf2xx chip, which is a driver. Can I put
> the feature in the driver?
> Am Mittwoch, den 17.02.2016, 17:22 +0100 schrieb Hauke Petersen:
>> Hi Mathias,
>> I think the way to go here is to implement the
>> `drivers/include/periph/hwrng.h` interface. For this I think it makes sense to
>> add a function that reads the random data from the radio to the at86rf2xx
>> driver and call this function from the hwrng driver.
>> On 16.02.2016 17:14, Tausig Mathias wrote:
>>> I would like to use the hardware RNG from my samr1-xpro board. It should be
>>> available by reading out a certain register, according to the AT86RF233
>>> My problem is, that I don't how to do that (I am pretty new to this stuff).
>>> Is there some documentation available for this kind of task, or could you
>>> point me in the right
>>> devel mailing list
>>> devel at riot-os.org
Hamburg University of Applied Sciences
Dept. Informatik, Internet Technologies Group
Berliner Tor 7, 20099 Hamburg, Germany
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel