Cr50: Ensure that trng.h is self-contained.

* Include trng.h from trng.c before any other header to verify that the
  header is self-contained.

* Add inclusion of stdint.h to trng.h to provide definition for uint32_t.

BUG=none
BRANCH=none
TEST=make -j buildall

Change-Id: I78fb6d915c357236ca0fed2a57f093f0eec07fe9
Reviewed-on: https://chromium-review.googlesource.com/417424
Commit-Ready: Carl Hamilton <carlh@chromium.org>
Tested-by: Carl Hamilton <carlh@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
Carl Hamilton
2016-12-07 08:25:25 -08:00
committed by chrome-bot
parent 80121352b0
commit 097c2bb04c
2 changed files with 2 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include "init_chip.h"
#include "registers.h"
#include "trng.h"
void init_trng(void)
{

View File

@@ -6,6 +6,7 @@
#define __EC_INCLUDE_TRNG_H
#include <stddef.h>
#include <stdint.h>
/**
* Initialize the true random number generator.