diff options
author | Keith Packard <keithp@keithp.com> | 2016-01-28 00:14:36 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-01-28 00:15:31 -0800 |
commit | f2d3202de9a5847923f72afe2969eb7ccd7342c7 (patch) | |
tree | fcc2978cf91666fe078e7d2405b0ceedfc796eb7 /src/chaoskey-v0.1 | |
parent | 02fd767ab60a9957faa2bff29c62ed954abc34e7 (diff) |
altos/chaoskey: Add support for flipping between raw and cooked bits
Plug the 'force bootloader' thing onto the board while it's running
and it will generate raw bits instead of running them through the CRC
to whiten. Useful for validating the raw hardware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/chaoskey-v0.1')
-rw-r--r-- | src/chaoskey-v0.1/ao_pins.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/chaoskey-v0.1/ao_pins.h b/src/chaoskey-v0.1/ao_pins.h index 8f3eb7b1..95d9a576 100644 --- a/src/chaoskey-v0.1/ao_pins.h +++ b/src/chaoskey-v0.1/ao_pins.h @@ -67,6 +67,11 @@ #define AO_CRC_INIT 0xffffffff /* TRNG */ -#define AO_LED_TRNG_ACTIVE AO_LED_GREEN +#define AO_LED_TRNG_COOKED AO_LED_GREEN +#define AO_LED_TRNG_RAW AO_LED_RED + +/* Mode pin */ +#define AO_RAW_PORT (&stm_gpioa) +#define AO_RAW_BIT 15 #endif /* _AO_PINS_H_ */ |