cpu/sam0_common: add hwrng driver#11647
Conversation
fc55180 to
c46bd70
Compare
|
Hm, Murdock is confused |
|
@benpicco I've open a ticket on Microchip support website to have an official answer from them. We should just wait a couple of days. |
|
So how should we continue? Just drop the RNG for the entire saml21 family? |
|
@cladmi Does the Makefile changes look good to you ? |
|
Processing Also murdock does not use RIOT/makefiles/info-global.inc.mk Lines 19 to 21 in 90e8da0 So when doing make info-boards-supported the CPU_MODEL is empty and does There are unsatisfied feature requirements: periph_hwrng and required BLACKLISTING.
The issue is that currently
Please give feedback over there if you are interested. The current work around is to use |
cladmi
left a comment
There was a problem hiding this comment.
Currently need to enable restricted by BOARD in cpu/saml21/Makefile.features.
It removes the need for the other changes.
|
I've followed the precedent set by stm32 and kinetis and introduced a |
|
Please do not push force/rebase to master during a review. It somehow forces to re-review everything each time as it is a pain to track what changed. |
|
Sorry, I thought it would be cleaner to drop the commit and force-push instead of pushing a revert commit. |
|
The current process is to not squash/rebase during a review as mentioned in https://github.com/RIOT-OS/RIOT/blob/master/CONTRIBUTING.md#squash-commits-after-review The makefiles changes are now good for me. @dylad I let you handle the rest. |
|
I've tested this PR on a saml11-xpro. First I ran tests/periph_hwrng which spits out "different" values. Then I ran tests/rng and its shell commands.
|
|
The code looks good to me too. I'll set all labels but "fundamentals" as I didn't participate in the initial discussion. @dylad please check and eventually remove your change request. |
|
Same here, I'll take a look at it next week. |
|
I just retest this PR on SAML10, SAML11, SAML21 & SAME54 with tests/periph_hwrng. Output looks good to me ! |
dylad
left a comment
There was a problem hiding this comment.
ACK.
Tested this PR on several boards.
-include will throw no error if sam0_common/Makefile.features does not exist. This may not have been intentional as none of the other sam0 implementations do this. Replace it with a normal include.
SAML1X, SAML2X and SAMD5X all share the same HWRNG peripheral.
This adds a driver for it.