diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-23 02:15:35 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-07 20:16:52 -0700 |
commit | efc0898d824ebd0abe0b088ed9a8b40c34623ab7 (patch) | |
tree | fec6359520ac5579bc1b13609769af1f6fbef113 /src | |
parent | 4bc55ee8fabc9f4c997c2a515d74baada590c93e (diff) |
altos: Fix up stm-flash output file name. Use discovery LED pins
Include the AltOS version in the file name, just like any other AltOS
program.
Switch the LEDs to the discovery board as we're using
that. Eventually, we'll stop using LEDs entirely.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/stm-flash/Makefile | 2 | ||||
-rw-r--r-- | src/stm-flash/ao_pins.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/stm-flash/Makefile b/src/stm-flash/Makefile index e4a2f321..46bc61af 100644 --- a/src/stm-flash/Makefile +++ b/src/stm-flash/Makefile @@ -35,7 +35,7 @@ IDPRODUCT=0x000a CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -g -Os -PROG=stm-flash +PROG=stm-flash-$(VERSION).elf SRC=$(ALTOS_SRC) ao_stm_flash.c OBJ=$(SRC:.c=.o) diff --git a/src/stm-flash/ao_pins.h b/src/stm-flash/ao_pins.h index 382ef353..048fc828 100644 --- a/src/stm-flash/ao_pins.h +++ b/src/stm-flash/ao_pins.h @@ -51,9 +51,9 @@ #define PACKET_HAS_SLAVE 0 #define LED_PORT_ENABLE STM_RCC_AHBENR_GPIOCEN -#define LED_PORT (&stm_gpioc) -#define LED_PIN_RED 8 -#define LED_PIN_GREEN 9 +#define LED_PORT (&stm_gpiob) +#define LED_PIN_RED 6 +#define LED_PIN_GREEN 7 #define AO_LED_RED (1 << LED_PIN_RED) #define AO_LED_GREEN (1 << LED_PIN_GREEN) |