Don't use define checks on DEVICE_FOO macros (partner code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
ls
1 parent 442cbba commit aa80b7c70a31b5a41c1afe1152e62d31a21f7f86
@Alastair D'Silva Alastair D'Silva authored on 19 Dec 2018
Showing 92 changed files
View
targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/flash_api.c
View
targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/gpio_irq_api.c
View
targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/sleep.c
View
targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/trng_api.c
View
targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/flash_api.c
View
targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/gpio_irq_api.c
View
targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/sleep.c
View
targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/trng_api.c
View
targets/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c
View
targets/TARGET_Atmel/TARGET_SAM_CortexM4/serial_api.c
View
targets/TARGET_Cypress/TARGET_PSOC6/PeripheralPins.h
View
targets/TARGET_Cypress/TARGET_PSOC6/objects.h
View
targets/TARGET_Cypress/TARGET_PSOC6/sleep_api.c
View
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/trng_api.c
View
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/trng_api.c
View
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/trng_api.c
View
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/trng_api.c
View
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/trng_api.c
View
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/mbed_crc_api.c
View
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/trng_api.c
View
targets/TARGET_GigaDevice/TARGET_GD32F30X/PeripheralPins.h
View
targets/TARGET_Maxim/TARGET_MAX32600/rtc_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/flash_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/i2c_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/trng_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/system_nrf52.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/system_nrf52840.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/analogin_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/flash_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/i2c_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/itm_api.c
View
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/trng_api.c
View
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/objects.h
View
targets/TARGET_ONSEMI/TARGET_NCS36510/exceptions.c
View
targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c
View
targets/TARGET_RDA/TARGET_UNO_91H/trng_api.c
View
targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/trng_api_esp32.cpp
View
targets/TARGET_RENESAS/TARGET_RZ_A1XX/trng_api.c
View
targets/TARGET_Realtek/TARGET_AMEBA/TARGET_MCU_RTL8195A/trng_api.c
View
targets/TARGET_STM/PeripheralPins.h
View
targets/TARGET_STM/TARGET_STM32F0/can_device.h
View
targets/TARGET_STM/TARGET_STM32F0/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F0/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32F0/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32F1/can_device.h
View
targets/TARGET_STM/TARGET_STM32F1/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F1/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32F1/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32F2/can_device.h
View
targets/TARGET_STM/TARGET_STM32F2/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32F2/objects.h
View
targets/TARGET_STM/TARGET_STM32F2/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32F3/can_device.h
View
targets/TARGET_STM/TARGET_STM32F3/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F3/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32F3/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.cpp
View
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.h
View
targets/TARGET_STM/TARGET_STM32F4/can_device.h
View
targets/TARGET_STM/TARGET_STM32F4/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F4/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32F4/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32F4/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32F7/can_device.h
View
targets/TARGET_STM/TARGET_STM32F7/common_objects.h
View
targets/TARGET_STM/TARGET_STM32F7/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32F7/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32L0/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32L0/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32L1/common_objects.h
View
targets/TARGET_STM/TARGET_STM32L1/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32L1/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h
View
targets/TARGET_STM/TARGET_STM32L4/can_device.h
View
targets/TARGET_STM/TARGET_STM32L4/common_objects.h
View
targets/TARGET_STM/TARGET_STM32L4/i2c_device.h
View
targets/TARGET_STM/TARGET_STM32L4/pwmout_device.c
View
targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h
View
targets/TARGET_STM/mbed_crc_api.c
View
targets/TARGET_STM/stm_spi_api.c
View
targets/TARGET_STM/trng_api.c
View
targets/TARGET_Silicon_Labs/TARGET_EFM32/i2c_api.c
View
targets/TARGET_Silicon_Labs/TARGET_EFM32/itm_api.c
View
targets/TARGET_Silicon_Labs/TARGET_EFM32/trng/trng_api.c
View
tools/targets/STM32_gen_PeripheralPins.py