Skip to content
Snippets Groups Projects
Commit 613265f1 authored by Martin Ling's avatar Martin Ling Committed by Martin Ling
Browse files

Move TRNG_Init to hardware_early_init

parent 0ed4a54d
No related branches found
No related tags found
No related merge requests found
......@@ -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],
......
......@@ -59,6 +59,11 @@ int hardware_early_init(void)
*/
portexpander_init();
/*
* RNG
*/
TRNG_Init(NULL);
/*
* Buttons
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment