Signed-off-by: Keith Packard <keithp@keithp.com>
ao_adc_stm.c \
ao_beep_stm.c \
ao_storage.c \
ao_adc_stm.c \
ao_beep_stm.c \
ao_storage.c \
+ ao_m25.c \
+ ao_usb_stm.c
PRODUCT=MegaMetrum-v0.1
PRODUCT_DEF=-DMEGAMETRUM
PRODUCT=MegaMetrum-v0.1
PRODUCT_DEF=-DMEGAMETRUM
ao_product.h: ao-make-product.5c ../Version
$(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
ao_product.h: ao-make-product.5c ../Version
$(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
-ao_product.rel: ao_product.c ao_product.h
- $(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $<
-
ao_beep_init();
ao_adc_init();
ao_storage_init();
ao_beep_init();
ao_adc_init();
ao_storage_init();
ao_cmd_register(&ao_mm_cmds[0]);
ao_start_scheduler();
ao_cmd_register(&ao_mm_cmds[0]);
ao_start_scheduler();
/* 8MHz High speed external crystal */
#define AO_HSE 8000000
/* 8MHz High speed external crystal */
#define AO_HSE 8000000
-/* PLLVCO = 96MHz (so that USB will work*/
+/* PLLVCO = 96MHz (so that USB will work) */
#define AO_PLLMUL 12
#define AO_RCC_CFGR_PLLMUL (STM_RCC_CFGR_PLLMUL_12)
#define AO_PLLMUL 12
#define AO_RCC_CFGR_PLLMUL (STM_RCC_CFGR_PLLMUL_12)
#define ao_gps_putchar ao_serial3_putchar
#define ao_gps_set_speed ao_serial3_set_speed
#define ao_gps_putchar ao_serial3_putchar
#define ao_gps_set_speed ao_serial3_set_speed
-#define HAS_USB 0
-#define HAS_BEEP 0
+#define HAS_USB 1
+#define HAS_BEEP 1
#define HAS_SPI_1 1
#define SPI_1_PA5_PA6_PA7 1
#define HAS_SPI_1 1
#define SPI_1_PA5_PA6_PA7 1