Don't use define checks on DEVICE_FOO macros (mbed 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 24dbfb6 commit 2617c5d55b7a2b616c97701f4d2649ca14460132
@Alastair D'Silva Alastair D'Silva authored on 19 Dec 2018
Showing 26 changed files
View
TESTS/mbed_hal/sleep/main.cpp
View
TESTS/mbed_hal/sleep/sleep_test_utils.h
View
TESTS/mbed_platform/stats_cpu/main.cpp
View
components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp
View
components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h
View
components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp
View
components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h
View
components/storage/blockdevice/COMPONENT_SD/TESTS/filesystem/fopen/fopen.cpp
View
drivers/FlashIAP.cpp
View
drivers/MbedCRC.h
View
drivers/QSPI.h
View
features/cryptocell/FEATURE_CRYPTOCELL310/trng.c
View
features/device_key/TESTS/device_key/functionality/main.cpp
View
features/device_key/source/DeviceKey.cpp
View
features/device_key/source/DeviceKey.h
View
features/mbedtls/platform/inc/platform_mbed.h
View
features/mbedtls/platform/src/mbed_trng.c
View
features/storage/nvstore/source/nvstore.h
View
features/unsupported/tests/utest/general/general.cpp
View
hal/crc_api.h
View
hal/itm_api.h
View
hal/mbed_itm_api.c
View
hal/mbed_sleep_manager.c
View
platform/mbed_stats.c
View
rtos/TARGET_CORTEX/SysTimer.h
View
rtos/TARGET_CORTEX/mbed_rtx_idle.cpp