summaryrefslogtreecommitdiff
path: root/src/chaoskey-v1.0/ao_chaoskey.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-05-06 21:13:02 -0700
committerKeith Packard <keithp@keithp.com>2018-05-07 09:21:56 -0700
commitbea42e45952df85d61428662caefbb100465a585 (patch)
tree34ec1af35c03183e42d4a7ae96b862640d83f330 /src/chaoskey-v1.0/ao_chaoskey.c
parent4451f7b6bade66775a197b93c6e70ba15f1826ce (diff)
altos/chaoskey-v1.0: Add endpoint for reading flash contents
This creates another IN endpoint which provides the contents of flash for validation of the firmware load on the host. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/chaoskey-v1.0/ao_chaoskey.c')
-rw-r--r--src/chaoskey-v1.0/ao_chaoskey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chaoskey-v1.0/ao_chaoskey.c b/src/chaoskey-v1.0/ao_chaoskey.c
index c3acd441..1165e454 100644
--- a/src/chaoskey-v1.0/ao_chaoskey.c
+++ b/src/chaoskey-v1.0/ao_chaoskey.c
@@ -20,6 +20,7 @@
#include <ao_adc_fast.h>
#include <ao_crc.h>
#include <ao_trng_send.h>
+#include <ao_flash_readout.h>
void main(void)
{
@@ -30,6 +31,7 @@ void main(void)
ao_dma_init();
ao_adc_init();
ao_crc_init();
+ ao_flash_readout_init();
ao_usb_init();