diff options
| author | Keith Packard <keithp@keithp.com> | 2018-05-06 21:13:02 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-05-07 09:21:56 -0700 |
| commit | bea42e45952df85d61428662caefbb100465a585 (patch) | |
| tree | 34ec1af35c03183e42d4a7ae96b862640d83f330 /src/chaoskey-v1.0/ao_pins.h | |
| parent | 4451f7b6bade66775a197b93c6e70ba15f1826ce (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_pins.h')
| -rw-r--r-- | src/chaoskey-v1.0/ao_pins.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chaoskey-v1.0/ao_pins.h b/src/chaoskey-v1.0/ao_pins.h index f2c46d8b..22861d9d 100644 --- a/src/chaoskey-v1.0/ao_pins.h +++ b/src/chaoskey-v1.0/ao_pins.h @@ -50,6 +50,7 @@ #define AO_USB_HAS_OUT 0 #define AO_USB_HAS_IN 1 #define AO_USB_HAS_IN2 1 +#define AO_USB_HAS_IN3 1 #define AO_USB_HAS_INT 0 #define AO_USB_SELF_POWER 0 #define AO_USB_DEVICE_ID_SERIAL 1 @@ -58,6 +59,9 @@ #define IS_FLASH_LOADER 0 +#define AO_FLASH_READOUT 1 +#define ao_flash_readout_putchar(c) ao_usb_putchar3(c) + /* ADC */ #define AO_ADC_PIN0_PORT (&stm_gpioa) |
