From: Keith Packard Date: Sun, 19 Feb 2017 06:54:35 +0000 (-0800) Subject: altos/stmf0: Allow projects to not use the USB boot loader X-Git-Tag: 1.7~114 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=cf10239e5485a101fcd7a12b28be927af94d577a altos/stmf0: Allow projects to not use the USB boot loader Let applications define HAS_BOOT_LOADER on their own if desired. Signed-off-by: Keith Packard --- diff --git a/src/stmf0/ao_arch.h b/src/stmf0/ao_arch.h index a36482b6..c5f451f5 100644 --- a/src/stmf0/ao_arch.h +++ b/src/stmf0/ao_arch.h @@ -144,10 +144,15 @@ ao_adc_init(); /* ADC maximum reported value */ #define AO_ADC_MAX 4095 +#ifndef HAS_BOOT_LOADER +#define HAS_BOOT_LOADER 1 +#endif + +#if HAS_BOOT_LOADER #define AO_BOOT_APPLICATION_BASE ((uint32_t *) 0x08001000) #define AO_BOOT_APPLICATION_BOUND ((uint32_t *) (0x08000000 + stm_flash_size())) #define AO_BOOT_LOADER_BASE ((uint32_t *) 0x08000000) -#define HAS_BOOT_LOADER 1 +#endif #endif /* _AO_ARCH_H_ */