Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
e8abf592
Commit
e8abf592
authored
Sep 13, 2020
by
schneider
Browse files
fix(trng): Enable TRNG before every read
The BLE stack disables the TRNG every time it access it...
parent
357a3f0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
epicardium/modules/hardware.c
View file @
e8abf592
...
...
@@ -73,11 +73,6 @@ int hardware_early_init(void)
*/
portexpander_init
();
/*
* RNG
*/
TRNG_Init
(
NULL
);
/*
* Buttons
*/
...
...
epicardium/modules/trng.c
View file @
e8abf592
...
...
@@ -6,6 +6,7 @@ int epic_trng_read(uint8_t *dest, size_t size)
if
(
dest
==
NULL
)
return
-
EFAULT
;
TRNG_Init
(
NULL
);
TRNG_Read
(
MXC_TRNG
,
dest
,
size
);
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment