summaryrefslogtreecommitdiff
path: root/src/chaoskey-v0.1/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-01-19 18:30:57 -0800
committerKeith Packard <keithp@keithp.com>2016-01-19 18:30:57 -0800
commit02fd767ab60a9957faa2bff29c62ed954abc34e7 (patch)
treef0fa7d34d00457ee7bf13db2010406c7c25c2370 /src/chaoskey-v0.1/ao_pins.h
parente5be0be35f724507d7efff48339a297df73d2641 (diff)
src/chaoskey-v0.1: Add HV enable support
Turn on the HV supply when the OS starts. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/chaoskey-v0.1/ao_pins.h')
-rw-r--r--src/chaoskey-v0.1/ao_pins.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/chaoskey-v0.1/ao_pins.h b/src/chaoskey-v0.1/ao_pins.h
index 72963dba..8f3eb7b1 100644
--- a/src/chaoskey-v0.1/ao_pins.h
+++ b/src/chaoskey-v0.1/ao_pins.h
@@ -57,6 +57,11 @@
#define AO_NUM_ADC 1
+/* HV enable */
+
+#define AO_HV_ENABLE_PORT (&stm_gpioa)
+#define AO_HV_ENABLE_BIT 8
+
/* CRC */
#define AO_CRC_WIDTH 32
#define AO_CRC_INIT 0xffffffff