Skip to content
GitLab
Menu
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
613265f1
Commit
613265f1
authored
Aug 20, 2019
by
Martin Ling
Committed by
Martin Ling
Aug 20, 2019
Browse files
Move TRNG_Init to hardware_early_init
parent
0ed4a54d
Changes
2
Hide whitespace changes
Inline
Side-by-side
epicardium/ble/ble.c
View file @
613265f1
...
...
@@ -97,7 +97,6 @@ static void setAddress(void)
if
(
result
==
-
1
)
{
APP_TRACE_INFO0
(
"mac.txt not found, generating random MAC"
);
TRNG_Init
(
NULL
);
TRNG_Read
(
MXC_TRNG
,
bdAddr
,
sizeof
(
bdAddr
));
sprintf
(
buf
,
"%02x:%02x:%02x:%02x:%02x:%02x
\n
"
,
bdAddr
[
0
],
bdAddr
[
1
],
bdAddr
[
2
],
...
...
epicardium/modules/hardware.c
View file @
613265f1
...
...
@@ -59,6 +59,11 @@ int hardware_early_init(void)
*/
portexpander_init
();
/*
* RNG
*/
TRNG_Init
(
NULL
);
/*
* Buttons
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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