Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
46632854
Commit
46632854
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Plain Diff
Merge branch 'schneider/trng-enable-fix' into 'master'
fix(trng): Enable TRNG before every read See merge request
!398
parents
357a3f0a
e8abf592
No related branches found
No related tags found
1 merge request
!398
fix(trng): Enable TRNG before every read
Pipeline
#4699
passed
4 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/modules/hardware.c
+0
-5
0 additions, 5 deletions
epicardium/modules/hardware.c
epicardium/modules/trng.c
+1
-0
1 addition, 0 deletions
epicardium/modules/trng.c
with
1 addition
and
5 deletions
epicardium/modules/hardware.c
+
0
−
5
View file @
46632854
...
...
@@ -73,11 +73,6 @@ int hardware_early_init(void)
*/
portexpander_init
();
/*
* RNG
*/
TRNG_Init
(
NULL
);
/*
* Buttons
*/
...
...
This diff is collapsed.
Click to expand it.
epicardium/modules/trng.c
+
1
−
0
View file @
46632854
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment