aboutsummaryrefslogtreecommitdiff
path: root/eim/sw/trng_tester_eim.c
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-21 09:17:20 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-21 09:17:20 +0200
commite0f4cefc97af89d6cb60cc6daf030afdabada256 (patch)
treecbe54555fe18edf2d21fa4e7a94d2f94304de5e1 /eim/sw/trng_tester_eim.c
parentd488a7f93ec4952f606ba82a48f446b7d15659b7 (diff)
Started to move expected core name and version strings to defines into the common header file.
Diffstat (limited to 'eim/sw/trng_tester_eim.c')
-rw-r--r--eim/sw/trng_tester_eim.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/eim/sw/trng_tester_eim.c b/eim/sw/trng_tester_eim.c
index def75ab..03f55bd 100644
--- a/eim/sw/trng_tester_eim.c
+++ b/eim/sw/trng_tester_eim.c
@@ -62,13 +62,13 @@ int wait_stats = 0;
int TC0()
{
- uint8_t board_name0[4] = "PVT1";
- uint8_t board_name1[4] = " ";
- uint8_t board_version[4] = "0.10";
+ uint8_t board_name0[4] = NOVENA_BOARD_NAME0;
+ uint8_t board_name1[4] = NOVENA_BOARD_NAME1;
+ uint8_t board_version[4] = NOVENA_BOARD_VERSION;
- uint8_t comm_name0[4] = "eim ";
- uint8_t comm_name1[4] = " ";
- uint8_t comm_version[4] = "0.10";
+ uint8_t comm_name0[4] = EIM_INTERFACE_NAME0;
+ uint8_t comm_name1[4] = EIM_INTERFACE_NAME1;
+ uint8_t comm_version[4] = EIM_INTERFACE_VERSION;
uint8_t t[4];
@@ -123,9 +123,9 @@ int TC1(void)
/* TC2: Read name and version from avalanche_entropy core. */
int TC2(void)
{
- uint8_t name0[4] = "extn";
- uint8_t name1[4] = "oise";
- uint8_t version[4] = "0.10";
+ uint8_t name0[4] = AVALANCHE_ENTROPY_NAME0;
+ uint8_t name1[4] = AVALANCHE_ENTROPY_NAME1;
+ uint8_t version[4] = AVALANCHE_ENTROPY_VERSION;
if (!quiet)
printf("TC2: Reading name and version words from avalanche_entropy core.\n");
@@ -172,9 +172,9 @@ int TC3(void)
/* TC4: Read name and version from rosc_entropy core. */
int TC4(void)
{
- uint8_t name0[4] = "rosc";
- uint8_t name1[4] = " ent";
- uint8_t version[4] = "0.10";
+ uint8_t name0[4] = ROSC_ENTROPY_NAME0;
+ uint8_t name1[4] = ROSC_ENTROPY_NAME1;
+ uint8_t version[4] = ROSC_ENTROPY_VERSION;
if (!quiet)
printf("TC4: Reading name and version words from rosc_entropy core.\n");