diff options
| author | Keith Packard <keithp@keithp.com> | 2018-09-11 18:51:59 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-10-13 08:23:25 -0700 |
| commit | 32463323d888d2b36d4b993d82e2522e1b236299 (patch) | |
| tree | 1dc3339792069d630646efc09f03350b54f5fa88 /src/stm32f4-disco/ao_pins.h | |
| parent | bb9d3d3bb1ae6223a7b910bc49ea8af5544a64d7 (diff) | |
altos/stm32f4-disco: Hook up serial console. Add scheme
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm32f4-disco/ao_pins.h')
| -rw-r--r-- | src/stm32f4-disco/ao_pins.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/stm32f4-disco/ao_pins.h b/src/stm32f4-disco/ao_pins.h index bbbc306e..e6dcea8e 100644 --- a/src/stm32f4-disco/ao_pins.h +++ b/src/stm32f4-disco/ao_pins.h @@ -46,10 +46,26 @@ #define LED_0_PORT (&stm_gpioc) #define LED_0_PIN 5 -#define LED_GREEN (1 << 0) +#define LED_GREEN AO_LED_0 #define LED_1_PORT (&stm_gpioe) #define LED_1_PIN 3 -#define LED_RED (1 << 1) +#define LED_RED AO_LED_0 + +#define AO_LED_PANIC LED_RED + +/* USART */ + +#define HAS_SERIAL_6 1 +#define SERIAL_6_RX_PORT (&stm_gpiog) +#define SERIAL_6_RX_PIN 9 + +#define SERIAL_6_TX_PORT (&stm_gpiog) +#define SERIAL_6_TX_PIN 14 + +#define USE_SERIAL_6_STDIN 1 +#define DELAY_SERIAL_6_STDIN 0 +#define USE_SERIAL_6_FLOW 0 +#define USE_SERIAL_6_SW_FLOW 0 #endif /* _AO_PINS_H_ */ |
