diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-12-06 15:17:33 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-12-16 20:28:32 +0000 |
commit | 05bd0cdec7a3132fda3127c3c9daeed0ebae0dae (patch) | |
tree | 37720df1bbd03c8590a33212dfd147eab7b5430e /chip/stm32/config_chip.h | |
parent | 33ea7aa4739390c2cce578ac8310f0d7b5b3679c (diff) | |
download | chrome-ec-05bd0cdec7a3132fda3127c3c9daeed0ebae0dae.tar.gz |
Rename mixed-case config constants
This renames constants used in compiler conditionals to uppercase.
BOARD_foo
CHIP_foo
CHIP_FAMILY_foo
CHIP_VARIANT_foo
CORE_foo
Mixed-case constants are still defined by the makefile, but are now no
longer used. I will make one more pass in a week or so to catch any
that are part of someone else's CL, since otherwise this change might
silently merge correctly but result in incorrect compilation. Then I
will remove defining the mixed-case constants.
BUG=chromium:322144
BRANCH=none
TEST=Build all boards. Also, "git grep 'BOARD_[a-z]'" should return no
results (similarly for CHIP, CORE, etc.)
Change-Id: I6418412e9f7ec604a35c2d426d12475dd83e7076
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/179206
Reviewed-by: Vic Yang <victoryang@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/stm32/config_chip.h')
-rw-r--r-- | chip/stm32/config_chip.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/stm32/config_chip.h b/chip/stm32/config_chip.h index 4ae81b2e51..2d439a800e 100644 --- a/chip/stm32/config_chip.h +++ b/chip/stm32/config_chip.h @@ -13,14 +13,14 @@ #define CONFIG_UART_CONSOLE 1 /* Use variant specific configuration for flash / UART / IRQ */ -#if defined(CHIP_VARIANT_stm32l15x) +#if defined(CHIP_VARIANT_STM32L15X) #include "config-stm32l15x.h" -#elif defined(CHIP_VARIANT_stm32l100) +#elif defined(CHIP_VARIANT_STM32L100) #include "config-stm32l100.h" -#elif defined(CHIP_VARIANT_stm32f100) +#elif defined(CHIP_VARIANT_STM32F100) /* STM32F100xx is currently the only outlier in the STM32F series */ #include "config-stm32f100.h" -#elif defined(CHIP_VARIANT_stm32f10x) +#elif defined(CHIP_VARIANT_STM32F10X) /* STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx, and STM32F107xx */ #include "config-stm32f10x.h" #else |