diff --git a/docs/mbed_targets.md b/docs/mbed_targets.md index aca5469b68d..d7f1d052dce 100644 --- a/docs/mbed_targets.md +++ b/docs/mbed_targets.md @@ -114,6 +114,13 @@ The list of **labels** defines how the build system looks for sources, libraries If target inheritance is used, it's possible to alter the values of `extra_labels` using `extra_labels_add` and `extra_labels_remove`. This is similar to the `macros_add` and `macros_remove` mechanism described in the previous paragraph. +## features, features_add, features_remove + +The list of **features** defines what hardware a device has. +This allows allowing mbed, libraries, or application source code to select between different implementations of drivers based on hardware availability, to selectively compile drivers for only the hardware that exists, or to test only the tests that apply to a particular platform. + +If target inheritance is used, it's possible to alter the values of `features` using `features_add` and `features_remove`. This is similar to the `macros_add` and `macros_remove` mechanism described in the previous two paragraphs. + ## supported_toolchains This is the list of toolchains that can be used to compile code for the target. The known toolchains are `ARM`, `uARM`, `GCC_ARM`, `GCC_CR`, `IAR`. diff --git a/hal/targets.json b/hal/targets.json index 58c8c404101..f8efebea6c6 100644 --- a/hal/targets.json +++ b/hal/targets.json @@ -6,6 +6,7 @@ "extra_labels": [], "is_disk_virtual": false, "macros": [], + "features": [], "detect_code": [], "public": false }, @@ -37,9 +38,7 @@ }, "LPCTarget": { "inherits": ["Target"], - "post_binary_hook": { - "function": "LPCTargetCode.lpc_patch" - }, + "post_binary_hook": {"function": "LPCTargetCode.lpc_patch"}, "public": false }, "LPC11C24": { @@ -47,7 +46,8 @@ "core": "Cortex-M0", "progen": {"target": "lpc11c24_301"}, "extra_labels": ["NXP", "LPC11XX_11CXX", "LPC11CXX"], - "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"] + "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], + "features": ["ANALOGIN", "CAN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC1114": { "inherits": ["LPCTarget"], @@ -60,7 +60,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC11U24": { "inherits": ["LPCTarget"], @@ -74,7 +75,8 @@ "template": ["uvision_microlib.uvproj.tmpl"] } }, - "detect_code": ["1040"] + "detect_code": ["1040"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOCALFILESYSTEM", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "OC_MBUINO": { "inherits": ["LPC11U24"], @@ -85,20 +87,23 @@ "template": ["uvision_microlib.uvproj.tmpl"] } }, - "extra_labels": ["NXP", "LPC11UXX"] + "extra_labels": ["NXP", "LPC11UXX"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC11U24_301": { "inherits": ["LPCTarget"], "core": "Cortex-M0", "extra_labels": ["NXP", "LPC11UXX"], - "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"] + "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOCALFILESYSTEM", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC11U34_421": { "inherits": ["LPCTarget"], "core": "Cortex-M0", "default_toolchain": "uARM", "extra_labels": ["NXP", "LPC11UXX"], - "supported_toolchains": ["ARM", "uARM", "GCC_ARM"] + "supported_toolchains": ["ARM", "uARM", "GCC_ARM"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "MICRONFCBOARD": { "inherits": ["LPC11U34_421"], @@ -116,7 +121,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "LPC11U35_501": { "inherits": ["LPCTarget"], @@ -129,7 +135,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "LPC11U35_501_IBDAP": { "inherits": ["LPCTarget"], @@ -142,7 +149,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "XADOW_M0": { "inherits": ["LPCTarget"], @@ -155,7 +163,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "LPC11U35_Y5_MBUG": { "inherits": ["LPCTarget"], @@ -168,7 +177,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "LPC11U37_501": { "inherits": ["LPCTarget"], @@ -190,7 +200,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "ARCH_GPRS": { "supported_form_factors": ["ARDUINO"], @@ -204,7 +215,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "LPC11U68": { "supported_form_factors": ["ARDUINO"], @@ -219,14 +231,16 @@ "template": ["uvision_microlib.uvproj.tmpl"] } }, - "detect_code": ["1168"] + "detect_code": ["1168"], + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI"] }, "LPC1347": { "inherits": ["LPCTarget"], "core": "Cortex-M3", "progen": {"target": "lpc1347"}, "extra_labels": ["NXP", "LPC13XX"], - "supported_toolchains": ["ARM", "GCC_ARM", "IAR"] + "supported_toolchains": ["ARM", "GCC_ARM", "IAR"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC1549": { "supported_form_factors": ["ARDUINO"], @@ -241,7 +255,8 @@ "template": ["uvision_microlib.uvproj.tmpl"] } }, - "detect_code": ["1549"] + "detect_code": ["1549"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "INTERRUPTIN", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE"] }, "LPC1768": { "inherits": ["LPCTarget"], @@ -249,7 +264,8 @@ "extra_labels": ["NXP", "LPC176X", "MBED_LPC1768"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "GCC_CR", "IAR"], "progen": {"target": "mbed-lpc1768"}, - "detect_code": ["1010"] + "detect_code": ["1010"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOCALFILESYSTEM", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "ARCH_PRO": { "supported_form_factors": ["ARDUINO"], @@ -258,7 +274,8 @@ "extra_labels": ["NXP", "LPC176X"], "macros": ["TARGET_LPC1768"], "inherits": ["LPCTarget"], - "progen": {"target": "arch-pro"} + "progen": {"target": "arch-pro"}, + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "UBLOX_C027": { "supported_form_factors": ["ARDUINO"], @@ -267,7 +284,8 @@ "extra_labels": ["NXP", "LPC176X"], "macros": ["TARGET_LPC1768"], "inherits": ["LPCTarget"], - "progen": {"target": "ublox-c027"} + "progen": {"target": "ublox-c027"}, + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_RED", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "XBED_LPC1768": { "inherits": ["LPCTarget"], @@ -276,21 +294,24 @@ "extra_labels": ["NXP", "LPC176X", "XBED_LPC1768"], "macros": ["TARGET_LPC1768"], "progen": {"target": "lpc1768"}, - "detect_code": ["1010"] + "detect_code": ["1010"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOCALFILESYSTEM", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC2368": { "inherits": ["LPCTarget"], "core": "ARM7TDMI-S", "progen": {"target": "lpc2368"}, "extra_labels": ["NXP", "LPC23XX"], - "supported_toolchains": ["ARM", "GCC_ARM", "GCC_CR"] + "supported_toolchains": ["ARM", "GCC_ARM", "GCC_CR"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOCALFILESYSTEM", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC2460": { "inherits": ["LPCTarget"], "core": "ARM7TDMI-S", "progen": {"target": "lpc2460"}, "extra_labels": ["NXP", "LPC2460"], - "supported_toolchains": ["GCC_ARM"] + "supported_toolchains": ["GCC_ARM"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC810": { "inherits": ["LPCTarget"], @@ -304,7 +325,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PWMOUT", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE"] }, "LPC812": { "supported_form_factors": ["ARDUINO"], @@ -320,7 +342,8 @@ "template": ["uvision_microlib.uvproj.tmpl"] } }, - "detect_code": ["1050"] + "detect_code": ["1050"], + "features": ["ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PWMOUT", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE"] }, "LPC824": { "supported_form_factors": ["ARDUINO"], @@ -335,7 +358,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "SSCI824": { "inherits": ["LPCTarget"], @@ -349,7 +373,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "LPC4088": { "inherits": ["LPCTarget"], @@ -361,7 +386,8 @@ "function": "LPC4088Code.binary_hook", "toolchains": ["ARM_STD", "ARM_MICRO"] }, - "progen": {"target": "lpc4088"} + "progen": {"target": "lpc4088"}, + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC4088_DM": { "inherits": ["LPC4088"] @@ -371,20 +397,23 @@ "core": "Cortex-M4F", "progen": {"target": "lpc4330"}, "extra_labels": ["NXP", "LPC43XX", "LPC4330"], - "supported_toolchains": ["ARM", "GCC_CR", "IAR", "GCC_ARM"] + "supported_toolchains": ["ARM", "GCC_CR", "IAR", "GCC_ARM"], + "features": ["ANALOGIN", "ANALOGOUT", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC4330_M0": { "inherits": ["LPCTarget"], "core": "Cortex-M0", "extra_labels": ["NXP", "LPC43XX", "LPC4330"], - "supported_toolchains": ["ARM", "GCC_CR", "IAR"] + "supported_toolchains": ["ARM", "GCC_CR", "IAR"], + "features": ["ANALOGIN", "ANALOGOUT", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC4337": { "inherits": ["LPCTarget"], "core": "Cortex-M4F", "progen": {"target": "lpc4337"}, "extra_labels": ["NXP", "LPC43XX", "LPC4337"], - "supported_toolchains": ["ARM"] + "supported_toolchains": ["ARM"], + "features": ["ANALOGIN", "ANALOGOUT", "DEBUG_AWARENESS", "ERROR_RED", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "LPC1800": { "inherits": ["LPCTarget"], @@ -405,7 +434,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "ELEKTOR_COCORICO": { "core": "Cortex-M0+", @@ -435,7 +465,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "KL25Z": { "supported_form_factors": ["ARDUINO"], @@ -445,7 +476,8 @@ "supported_toolchains": ["ARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "frdm-kl25z"}, - "detect_code": ["0200"] + "detect_code": ["0200"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "KL26Z": { "supported_form_factors": ["ARDUINO"], @@ -454,7 +486,8 @@ "is_disk_virtual": true, "supported_toolchains": ["ARM", "GCC_ARM", "IAR"], "inherits": ["Target"], - "progen": {"target": "kl26z"} + "progen": {"target": "kl26z"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "KL43Z": { "supported_form_factors": ["ARDUINO"], @@ -463,7 +496,8 @@ "is_disk_virtual": true, "supported_toolchains": ["GCC_ARM", "ARM"], "inherits": ["Target"], - "progen": {"target": "frdm-kl43z"} + "progen": {"target": "frdm-kl43z"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "KL46Z": { "supported_form_factors": ["ARDUINO"], @@ -473,7 +507,8 @@ "supported_toolchains": ["GCC_ARM", "ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "frdm-kl46z"}, - "detect_code": ["0220"] + "detect_code": ["0220"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "K20D50M": { "inherits": ["Target"], @@ -482,7 +517,8 @@ "is_disk_virtual": true, "supported_toolchains": ["GCC_ARM", "ARM", "IAR"], "progen": {"target": "frdm-k20d50m"}, - "detect_code": ["0230"] + "detect_code": ["0230"], + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "TEENSY3_1": { "inherits": ["Target"], @@ -496,7 +532,8 @@ "toolchains": ["ARM_STD", "ARM_MICRO", "GCC_ARM"] }, "progen": {"target": "teensy-31"}, - "detect_code": ["0230"] + "detect_code": ["0230"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "K22F": { "supported_form_factors": ["ARDUINO"], @@ -507,19 +544,21 @@ "macros": ["CPU_MK22FN512VLH12", "FSL_RTOS_MBED"], "inherits": ["Target"], "progen": {"target": "frdm-k22f"}, - "detect_code": ["0231"] + "detect_code": ["0231"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "KL27Z": { "inherits": ["Target"], "core": "Cortex-M0+", "extra_labels": ["Freescale", "KSDK2_MCUS", "FRDM"], "macros": ["CPU_MKL27Z64VLH4", "FSL_RTOS_MBED"], - "supported_toolchains": ["ARM","GCC_ARM","IAR"], + "supported_toolchains": ["ARM", "GCC_ARM", "IAR"], "supported_form_factors": ["ARDUINO"], "is_disk_virtual": true, "default_toolchain": "ARM", "detect_code": ["0261"], - "progen_target": {"target":"frdm-kl27z"} + "progen_target": {"target": "frdm-kl27z"}, + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "K64F": { "supported_form_factors": ["ARDUINO"], @@ -530,7 +569,8 @@ "macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED"], "inherits": ["Target"], "progen": {"target": "frdm-k64f"}, - "detect_code": ["0240"] + "detect_code": ["0240"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "MTS_GAMBIT": { "inherits": ["Target"], @@ -539,7 +579,8 @@ "extra_labels": ["Freescale", "KSDK2_MCUS", "K64F", "KPSDK_MCUS", "KPSDK_CODE", "MCU_K64F"], "is_disk_virtual": true, "macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED", "TARGET_K64F"], - "progen": {"target": "mts-gambit"} + "progen": {"target": "mts-gambit"}, + "features": ["I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "HEXIWEAR": { "inherits": ["Target"], @@ -550,7 +591,8 @@ "is_disk_virtual": true, "default_toolchain": "ARM", "detect_code": ["0214"], - "progen": {"target":"hexiwear-k64f"} + "progen": {"target": "hexiwear-k64f"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F030R8": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -560,7 +602,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f030r8"}, - "detect_code": ["0725"] + "detect_code": ["0725"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F031K6": { "supported_form_factors": ["ARDUINO"], @@ -570,7 +613,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f031k6"}, - "detect_code": ["0791"] + "detect_code": ["0791"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F042K6": { "supported_form_factors": ["ARDUINO"], @@ -580,7 +624,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f042k6"}, - "detect_code": ["0785"] + "detect_code": ["0785"], + "features": ["ANALOGIN", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F070RB": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -590,7 +635,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f070rb"}, - "detect_code": ["0755"] + "detect_code": ["0755"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F072RB": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -600,7 +646,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f072rb"}, - "detect_code": ["0730"] + "detect_code": ["0730"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F091RC": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -610,7 +657,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f091rc"}, - "detect_code": ["0750"] + "detect_code": ["0750"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F103RB": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -620,7 +668,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "nucleo-f103rb"}, - "detect_code": ["0700"] + "detect_code": ["0700"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F302R8": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -630,7 +679,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f302r8"}, - "detect_code": ["0705"] + "detect_code": ["0705"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F303K8": { "supported_form_factors": ["ARDUINO"], @@ -640,7 +690,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f303k8"}, - "detect_code": ["0775"] + "detect_code": ["0775"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F303RE": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -650,7 +701,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f303re"}, - "detect_code": ["0745"] + "detect_code": ["0745"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F334R8": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -660,7 +712,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f334r8"}, - "detect_code": ["0735"] + "detect_code": ["0735"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F401RE": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -670,7 +723,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "nucleo-f401re"}, - "detect_code": ["0720"] + "detect_code": ["0720"], + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F410RB": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -680,7 +734,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "nucleo-f410rb"}, - "detect_code": ["0740"] + "detect_code": ["0740"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F411RE": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -690,7 +745,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "nucleo-f411re"}, - "detect_code": ["0740"] + "detect_code": ["0740"], + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "ELMO_F411RE": { "supported_form_factors": ["ARDUINO"], @@ -699,7 +755,8 @@ "extra_labels": ["STM", "STM32F4", "STM32F411RE"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM"], "inherits": ["Target"], - "detect_code": ["----"] + "detect_code": ["----"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F446RE": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -709,7 +766,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "nucleo-f446re"}, - "detect_code": ["0777"] + "detect_code": ["0777"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "B96B_F446VE": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -718,7 +776,8 @@ "extra_labels": ["STM", "STM32F4", "STM32F446VE"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], - "detect_code": ["0840"] + "detect_code": ["0840"], + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_ASYNCH_DMA", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_F746ZG": { "inherits": ["Target"], @@ -731,7 +790,8 @@ "template": ["iar_nucleo_f746zg.ewp.tmpl"] } }, - "detect_code": ["0816"] + "detect_code": ["0816"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_L031K6": { "inherits": ["Target"], @@ -741,7 +801,8 @@ "default_toolchain": "uARM", "supported_form_factors": ["ARDUINO"], "detect_code": ["0790"], - "progen": {"target":"nucleo-l031k6"} + "progen": {"target": "nucleo-l031k6"}, + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_L053R8": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -751,7 +812,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "nucleo-l053r8"}, - "detect_code": ["0715"] + "detect_code": ["0715"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_L073RZ": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -761,7 +823,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "inherits": ["Target"], "progen": {"target": "nucleo-l073rz"}, - "detect_code": ["0760"] + "detect_code": ["0760"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_L152RE": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -771,7 +834,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-l152re"}, - "detect_code": ["0710"] + "detect_code": ["0710"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NUCLEO_L476RG": { "supported_form_factors": ["ARDUINO", "MORPHO"], @@ -781,7 +845,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-l476rg"}, - "detect_code": ["0765"] + "detect_code": ["0765"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "STM32F3XX": { "inherits": ["Target"], @@ -804,28 +869,32 @@ "extra_labels": ["STM", "STM32F4", "STM32F407", "STM32F407VG"], "macros": ["LSI_VALUE=32000"], "inherits": ["Target"], - "progen": {"target": "lpc1768"} + "progen": {"target": "lpc1768"}, + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F051R8": { "inherits": ["Target"], "core": "Cortex-M0", "default_toolchain": "uARM", "extra_labels": ["STM", "STM32F0", "STM32F051", "STM32F051R8"], - "supported_toolchains": ["GCC_ARM"] + "supported_toolchains": ["GCC_ARM"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F100RB": { "inherits": ["Target"], "core": "Cortex-M3", "default_toolchain": "uARM", "extra_labels": ["STM", "STM32F1", "STM32F100RB"], - "supported_toolchains": ["GCC_ARM"] + "supported_toolchains": ["GCC_ARM"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F303VC": { "inherits": ["Target"], "core": "Cortex-M4F", "default_toolchain": "uARM", "extra_labels": ["STM", "STM32F3", "STM32F303", "STM32F303VC"], - "supported_toolchains": ["GCC_ARM"] + "supported_toolchains": ["GCC_ARM"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F334C8": { "inherits": ["Target"], @@ -834,14 +903,16 @@ "extra_labels": ["STM", "STM32F3", "STM32F334C8"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "progen": {"target": "disco-f334c8"}, - "detect_code": ["0810"] + "detect_code": ["0810"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F407VG": { "inherits": ["Target"], "core": "Cortex-M4F", "progen": {"target": "disco-f407vg"}, "extra_labels": ["STM", "STM32F4", "STM32F407", "STM32F407VG"], - "supported_toolchains": ["ARM", "uARM", "GCC_ARM"] + "supported_toolchains": ["ARM", "uARM", "GCC_ARM"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F429ZI": { "inherits": ["Target"], @@ -849,7 +920,8 @@ "default_toolchain": "uARM", "extra_labels": ["STM", "STM32F4", "STM32F429", "STM32F429ZI"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], - "progen": {"target": "disco-f429zi"} + "progen": {"target": "disco-f429zi"}, + "features": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F469NI": { "supported_form_factors": ["ARDUINO"], @@ -859,7 +931,8 @@ "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "disco-f469ni"}, - "detect_code": ["0788"] + "detect_code": ["0788"], + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_L053C8": { "inherits": ["Target"], @@ -867,7 +940,8 @@ "default_toolchain": "uARM", "extra_labels": ["STM", "STM32L0", "STM32L053C8"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], - "progen": {"target": "disco-l053c8"} + "progen": {"target": "disco-l053c8"}, + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F746NG": { "inherits": ["Target"], @@ -875,7 +949,8 @@ "extra_labels": ["STM", "STM32F7", "STM32F746", "STM32F746NG"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "progen": {"target": "disco-f746ng"}, - "detect_code": ["0815"] + "detect_code": ["0815"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_L476VG": { "inherits": ["Target"], @@ -884,7 +959,8 @@ "extra_labels": ["STM", "STM32L4", "STM32L476VG"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "progen": {"target": "disco-l476vg"}, - "detect_code": ["0820"] + "detect_code": ["0820"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "MTS_MDOT_F405RG": { "inherits": ["Target"], @@ -893,7 +969,8 @@ "extra_labels": ["STM", "STM32F4", "STM32F405RG"], "is_disk_virtual": true, "macros": ["HSE_VALUE=26000000", "OS_CLOCK=48000000"], - "progen": {"target": "mts-mdot-f405rg"} + "progen": {"target": "mts-mdot-f405rg"}, + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "MTS_MDOT_F411RE": { "inherits": ["Target"], @@ -905,7 +982,8 @@ "function": "MTSCode.combine_bins_mts_dot", "toolchains": ["GCC_ARM", "ARM_STD", "ARM_MICRO"] }, - "progen": {"target": "mts-mdot-f411re"} + "progen": {"target": "mts-mdot-f411re"}, + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "MTS_DRAGONFLY_F411RE": { "inherits": ["Target"], @@ -913,11 +991,12 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "extra_labels": ["STM", "STM32F4", "STM32F411RE"], "macros": ["HSE_VALUE=26000000", "VECT_TAB_OFFSET=0x08010000"], - "post_binary_hook": { + "post_binary_hook": { "function": "MTSCode.combine_bins_mts_dragonfly", "toolchains": ["GCC_ARM", "ARM_STD", "ARM_MICRO"] }, - "progen": {"target": "mts-dragonfly-f411re"} + "progen": {"target": "mts-dragonfly-f411re"}, + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "MOTE_L152RC": { "inherits": ["Target"], @@ -926,14 +1005,16 @@ "extra_labels": ["STM", "STM32L1", "STM32L152RC"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "progen": {"target": "stm32l151rc"}, - "detect_code": ["4100"] + "detect_code": ["4100"], + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F401VC": { "inherits": ["Target"], "core": "Cortex-M4F", "default_toolchain": "GCC_ARM", "extra_labels": ["STM", "STM32F4", "STM32F401", "STM32F401VC"], - "supported_toolchains": ["GCC_ARM"] + "supported_toolchains": ["GCC_ARM"], + "features": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "UBLOX_C029": { "supported_form_factors": ["ARDUINO"], @@ -942,7 +1023,8 @@ "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "extra_labels": ["STM", "STM32F4", "STM32F439", "STM32F439ZI"], "macros": ["HSE_VALUE=24000000", "HSE_STARTUP_TIMEOUT=5000"], - "inherits": ["Target"] + "inherits": ["Target"], + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "NZ32_SC151": { "inherits": ["Target"], @@ -951,7 +1033,8 @@ "program_cycle_s": 1.5, "extra_labels": ["STM", "STM32L1", "STM32L151RC"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM"], - "progen": {"target": "stm32l151rc"} + "progen": {"target": "stm32l151rc"}, + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "MCU_NRF51": { "inherits": ["Target"], @@ -1030,14 +1113,14 @@ "macros_add": ["TARGET_MCU_NRF51_16K_S110"], "EXPECTED_SOFTDEVICES_WITH_OFFSETS": [ { - "name" : "s110_nrf51822_8.0.0_softdevice.hex", - "boot" : "s110_nrf51822_8.0.0_bootloader.hex", - "offset" : 98304 + "name": "s110_nrf51822_8.0.0_softdevice.hex", + "boot": "s110_nrf51822_8.0.0_bootloader.hex", + "offset": 98304 }, { - "name" : "s110_nrf51822_7.1.0_softdevice.hex", - "boot" : "s110_nrf51822_7.1.0_bootloader.hex", - "offset" : 90112 + "name": "s110_nrf51822_7.1.0_softdevice.hex", + "boot": "s110_nrf51822_7.1.0_bootloader.hex", + "offset": 90112 } ], "public": false @@ -1105,7 +1188,8 @@ "ARCH_BLE": { "supported_form_factors": ["ARDUINO"], "inherits": ["MCU_NRF51_16K"], - "progen": {"target": "arch-ble"} + "progen": {"target": "arch-ble"}, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "ARCH_BLE_BOOT": { "supported_form_factors": ["ARDUINO"], @@ -1139,7 +1223,8 @@ }, "SEEED_TINY_BLE": { "inherits": ["MCU_NRF51_16K"], - "progen": {"target": "seed-tinyble"} + "progen": {"target": "seed-tinyble"}, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "SEEED_TINY_BLE_BOOT": { "inherits": ["MCU_NRF51_16K_BOOT"], @@ -1154,7 +1239,8 @@ "HRM1017": { "inherits": ["MCU_NRF51_16K"], "progen": {"target": "hrm1017"}, - "macros_add": ["TARGET_NRF_LFCLK_RC"] + "macros_add": ["TARGET_NRF_LFCLK_RC"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "HRM1017_BOOT": { "inherits": ["MCU_NRF51_16K_BOOT"], @@ -1169,7 +1255,8 @@ "RBLAB_NRF51822": { "supported_form_factors": ["ARDUINO"], "inherits": ["MCU_NRF51_16K"], - "progen": {"target": "rblab-nrf51822"} + "progen": {"target": "rblab-nrf51822"}, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "RBLAB_NRF51822_BOOT": { "supported_form_factors": ["ARDUINO"], @@ -1184,7 +1271,8 @@ "macros_add": ["TARGET_RBLAB_NRF51822"] }, "RBLAB_BLENANO": { - "inherits": ["MCU_NRF51_16K"] + "inherits": ["MCU_NRF51_16K"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "RBLAB_BLENANO_BOOT": { "inherits": ["MCU_NRF51_16K_BOOT"], @@ -1197,10 +1285,12 @@ "macros_add": ["TARGET_RBLAB_BLENANO"] }, "NRF51822_Y5_MBUG": { - "inherits": ["MCU_NRF51_16K"] + "inherits": ["MCU_NRF51_16K"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "WALLBOT_BLE": { - "inherits": ["MCU_NRF51_16K"] + "inherits": ["MCU_NRF51_16K"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "WALLBOT_BLE_BOOT": { "inherits": ["MCU_NRF51_16K_BOOT"], @@ -1216,7 +1306,8 @@ "inherits": ["MCU_NRF51_32K"], "program_cycle_s": 10, "progen": {"target": "dfcm-nnn40"}, - "macros_add": ["TARGET_NRF_LFCLK_RC"] + "macros_add": ["TARGET_NRF_LFCLK_RC"], + "features": ["ANALOGIN", "DEBUG_AWARENESS", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "DELTA_DFCM_NNN40_BOOT": { "inherits": ["MCU_NRF51_32K_BOOT"], @@ -1233,7 +1324,8 @@ "NRF51_DK": { "supported_form_factors": ["ARDUINO"], "inherits": ["MCU_NRF51_32K"], - "progen": {"target": "nrf51-dk"} + "progen": {"target": "nrf51-dk"}, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "NRF51_DK_BOOT": { "supported_form_factors": ["ARDUINO"], @@ -1249,7 +1341,8 @@ }, "NRF51_DONGLE": { "inherits": ["MCU_NRF51_32K"], - "progen": {"target": "nrf51-dongle"} + "progen": {"target": "nrf51-dongle"}, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "NRF51_DONGLE_BOOT": { "inherits": ["MCU_NRF51_32K_BOOT"], @@ -1263,7 +1356,8 @@ }, "NRF51_MICROBIT": { "inherits": ["MCU_NRF51_16K_S110"], - "macros_add": ["TARGET_NRF_LFCLK_RC"] + "macros_add": ["TARGET_NRF_LFCLK_RC"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "NRF51_MICROBIT_BOOT": { "inherits": ["MCU_NRF51_16K_BOOT_S110"], @@ -1292,7 +1386,8 @@ }, "TY51822R3": { "inherits": ["MCU_NRF51_32K"], - "macros_add": ["TARGET_NRF_32MHZ_XTAL"] + "macros_add": ["TARGET_NRF_32MHZ_XTAL"], + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] }, "TY51822R3_BOOT": { "inherits": ["MCU_NRF51_32K_BOOT"], @@ -1306,60 +1401,69 @@ }, "ARM_MPS2_Target": { "inherits": ["Target"], - "public": false + "public": false, + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_MPS2_M0": { "inherits": ["ARM_MPS2_Target"], "core": "Cortex-M0", "supported_toolchains": ["ARM"], "extra_labels": ["ARM_SSG", "MPS2", "MPS2_M0"], - "macros": ["CMSDK_CM0"] + "macros": ["CMSDK_CM0"], + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_MPS2_M0P": { "inherits": ["ARM_MPS2_Target"], "core": "Cortex-M0+", "supported_toolchains": ["ARM"], "extra_labels": ["ARM_SSG", "MPS2", "MPS2_M0P"], - "macros": ["CMSDK_CM0plus"] + "macros": ["CMSDK_CM0plus"], + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_MPS2_M1": { "inherits": ["ARM_MPS2_Target"], "core": "Cortex-M1", "supported_toolchains": ["ARM"], "extra_labels": ["ARM_SSG", "MPS2", "MPS2_M1"], - "macros": ["CMSDK_CM1"] + "macros": ["CMSDK_CM1"], + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_MPS2_M3": { "inherits": ["ARM_MPS2_Target"], "core": "Cortex-M3", "supported_toolchains": ["ARM"], "extra_labels": ["ARM_SSG", "MPS2", "MPS2_M3"], - "macros": ["CMSDK_CM3"] + "macros": ["CMSDK_CM3"], + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_MPS2_M4": { "inherits": ["ARM_MPS2_Target"], "core": "Cortex-M4F", "supported_toolchains": ["ARM"], "extra_labels": ["ARM_SSG", "MPS2", "MPS2_M4"], - "macros": ["CMSDK_CM4"] + "macros": ["CMSDK_CM4"], + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_MPS2_M7": { "inherits": ["ARM_MPS2_Target"], "core": "Cortex-M7", "supported_toolchains": ["ARM"], "extra_labels": ["ARM_SSG", "MPS2", "MPS2_M7"], - "macros": ["CMSDK_CM7"] + "macros": ["CMSDK_CM7"], + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_IOTSS_Target": { "inherits": ["Target"], - "public": false + "public": false, + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "ARM_IOTSS_BEID": { "inherits": ["ARM_IOTSS_Target"], "core": "Cortex-M3", "supported_toolchains": ["ARM"], "extra_labels": ["ARM_SSG", "IOTSS", "IOTSS_BEID"], - "macros": ["CMSDK_BEID"] + "macros": ["CMSDK_BEID"], + "features": ["AACI", "ANALOGIN", "CLCD", "ETHERNET", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "TSC"] }, "RZ_A1H": { "supported_form_factors": ["ARDUINO"], @@ -1373,7 +1477,8 @@ "iar": { "template": ["iar_rz_a1h.ewp.tmpl"] } - } + }, + "features": ["ANALOGIN", "CAN", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, "VK_RZ_A1H": { "inherits": ["Target"], @@ -1387,7 +1492,8 @@ "template": ["iar_rz_a1h.ewp.tmpl"] } }, - "program_cycle_s": 2 + "program_cycle_s": 2, + "features": ["ANALOGIN", "CAN", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "MAXWSNENV": { "inherits": ["Target"], @@ -1395,7 +1501,8 @@ "macros": ["__SYSTEM_HFX=24000000"], "extra_labels": ["Maxim", "MAX32610"], "supported_toolchains": ["GCC_ARM", "IAR", "ARM"], - "progen": {"target": "maxwsnenv"} + "progen": {"target": "maxwsnenv"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "STDIO_MESSAGES"] }, "MAX32600MBED": { "inherits": ["Target"], @@ -1403,7 +1510,8 @@ "macros": ["__SYSTEM_HFX=24000000"], "extra_labels": ["Maxim", "MAX32600"], "supported_toolchains": ["GCC_ARM", "IAR", "ARM"], - "progen": {"target": "max32600mbed"} + "progen": {"target": "max32600mbed"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "STDIO_MESSAGES"] }, "EFM32GG_STK3700": { "inherits": ["Target"], @@ -1411,7 +1519,8 @@ "macros": ["EFM32GG990F1024"], "extra_labels": ["Silicon_Labs", "EFM32"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], - "progen": {"target": "efm32gg-stk"} + "progen": {"target": "efm32gg-stk"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_PATTERN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, "EFM32LG_STK3600": { "inherits": ["Target"], @@ -1419,7 +1528,8 @@ "macros": ["EFM32LG990F256"], "extra_labels": ["Silicon_Labs", "EFM32"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], - "progen": {"target": "efm32lg-stk"} + "progen": {"target": "efm32lg-stk"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_PATTERN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, "EFM32WG_STK3800": { "inherits": ["Target"], @@ -1427,7 +1537,8 @@ "macros": ["EFM32WG990F256"], "extra_labels": ["Silicon_Labs", "EFM32"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], - "progen": {"target": "efm32wg-stk"} + "progen": {"target": "efm32wg-stk"}, + "features": ["ANALOGIN", "ANALOGOUT", "ERROR_PATTERN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, "EFM32ZG_STK3200": { "inherits": ["Target"], @@ -1441,7 +1552,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, "EFM32HG_STK3400": { "inherits": ["Target"], @@ -1455,7 +1567,8 @@ "uvision": { "template": ["uvision_microlib.uvproj.tmpl"] } - } + }, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, "EFM32PG_STK3401": { "inherits": ["Target"], @@ -1463,7 +1576,8 @@ "macros": ["EFM32PG1B200F256GM48"], "extra_labels": ["Silicon_Labs", "EFM32"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM", "IAR"], - "progen": {"target": "efm32pg-stk"} + "progen": {"target": "efm32pg-stk"}, + "features": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, "WIZWIKI_W7500": { "supported_form_factors": ["ARDUINO"], @@ -1471,7 +1585,8 @@ "extra_labels": ["WIZNET", "W7500x", "WIZwiki_W7500"], "supported_toolchains": ["uARM", "ARM"], "inherits": ["Target"], - "progen": {"target": "wizwiki-w7500"} + "progen": {"target": "wizwiki-w7500"}, + "features": ["ANALOGIN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "WIZWIKI_W7500P": { "supported_form_factors": ["ARDUINO"], @@ -1479,71 +1594,53 @@ "extra_labels": ["WIZNET", "W7500x", "WIZwiki_W7500P"], "supported_toolchains": ["uARM", "ARM"], "inherits": ["Target"], - "progen": {"target": "wizwiki-w7500p"} + "progen": {"target": "wizwiki-w7500p"}, + "features": ["ANALOGIN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "WIZWIKI_W7500ECO": { "inherits": ["Target"], "core": "Cortex-M0", "progen": {"target": "wizwiki_w7500eco"}, "extra_labels": ["WIZNET", "W7500x", "WIZwiki_W7500ECO"], - "supported_toolchains": ["uARM", "ARM"] + "supported_toolchains": ["uARM", "ARM"], + "features": ["ANALOGIN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "SAMR21G18A": { "inherits": ["Target"], "core": "Cortex-M0+", - "macros": [ - "__SAMR21G18A__", - "I2C_MASTER_CALLBACK_MODE=true", - "EXTINT_CALLBACK_MODE=true", - "USART_CALLBACK_MODE=true", - "TC_ASYNC=true" - ], + "macros": ["__SAMR21G18A__", "I2C_MASTER_CALLBACK_MODE=true", "EXTINT_CALLBACK_MODE=true", "USART_CALLBACK_MODE=true", "TC_ASYNC=true"], "extra_labels": ["Atmel", "SAM_CortexM0P", "SAMR21"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], - "progen": {"target": "samr21g18a"} + "progen": {"target": "samr21g18a"}, + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH"] }, "SAMD21J18A": { "inherits": ["Target"], "core": "Cortex-M0+", - "macros": [ - "__SAMD21J18A__", - "I2C_MASTER_CALLBACK_MODE=true", - "EXTINT_CALLBACK_MODE=true", - "USART_CALLBACK_MODE=true", - "TC_ASYNC=true" - ], + "macros": ["__SAMD21J18A__", "I2C_MASTER_CALLBACK_MODE=true", "EXTINT_CALLBACK_MODE=true", "USART_CALLBACK_MODE=true", "TC_ASYNC=true"], "extra_labels": ["Atmel", "SAM_CortexM0P", "SAMD21"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], - "progen": {"target": "samd21j18a"} + "progen": {"target": "samd21j18a"}, + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH"] }, "SAMD21G18A": { "inherits": ["Target"], "core": "Cortex-M0+", - "macros": [ - "__SAMD21G18A__", - "I2C_MASTER_CALLBACK_MODE=true", - "EXTINT_CALLBACK_MODE=true", - "USART_CALLBACK_MODE=true", - "TC_ASYNC=true" - ], + "macros": ["__SAMD21G18A__", "I2C_MASTER_CALLBACK_MODE=true", "EXTINT_CALLBACK_MODE=true", "USART_CALLBACK_MODE=true", "TC_ASYNC=true"], "extra_labels": ["Atmel", "SAM_CortexM0P", "SAMD21"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], - "progen": {"target": "samd21g18a"} + "progen": {"target": "samd21g18a"}, + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH"] }, "SAML21J18A": { "inherits": ["Target"], "core": "Cortex-M0+", - "macros": [ - "__SAML21J18A__", - "I2C_MASTER_CALLBACK_MODE=true", - "EXTINT_CALLBACK_MODE=true", - "USART_CALLBACK_MODE=true", - "TC_ASYNC=true" - ], + "macros": ["__SAML21J18A__", "I2C_MASTER_CALLBACK_MODE=true", "EXTINT_CALLBACK_MODE=true", "USART_CALLBACK_MODE=true", "TC_ASYNC=true"], "extra_labels": ["Atmel", "SAM_CortexM0P", "SAML21"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], "progen": {"target": "samr21j18a"}, - "progen_target": "samr21j18a" + "progen_target": "samr21j18a", + "features": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH"] }, "SAMG55J19": { "inherits": ["Target"], @@ -1552,7 +1649,8 @@ "macros": ["__SAMG55J19__", "BOARD=75", "I2C_MASTER_CALLBACK_MODE=true", "EXTINT_CALLBACK_MODE=true", "USART_CALLBACK_MODE=true", "TC_ASYNC=true"], "supported_toolchains": ["GCC_ARM", "ARM", "uARM"], "default_toolchain": "ARM", - "progen": {"target":"samg55j19"}, - "progen_target": "samg55j19" + "progen": {"target": "samg55j19"}, + "progen_target": "samg55j19", + "features": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH"] } } diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/device.h b/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/device.h index 6dd951b6181..6bc793863a5 100644 --- a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/device.h +++ b/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,48 +18,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CLCD 1 -#define DEVICE_TSC 1 -#define DEVICE_AACI 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 0 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 0 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/device.h b/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/device.h index 6dd951b6181..6bc793863a5 100644 --- a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/device.h +++ b/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,48 +18,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CLCD 1 -#define DEVICE_TSC 1 -#define DEVICE_AACI 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 0 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 0 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h index 916e982bdcc..3b470c68647 100644 --- a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h +++ b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,47 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_ID_LENGTH 0 -#define DEVICE_MAC_OFFSET 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h index 916e982bdcc..3b470c68647 100644 --- a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h +++ b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,47 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_ID_LENGTH 0 -#define DEVICE_MAC_OFFSET 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h index 36c0913eb3b..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h +++ b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,47 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_ID_LENGTH 0 -#define DEVICE_MAC_OFFSET 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h index c18588a3379..3b470c68647 100644 --- a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h +++ b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,47 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_ID_LENGTH 0 -#define DEVICE_MAC_OFFSET 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h index 2f71f3d8e6f..3b470c68647 100644 --- a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h +++ b/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,48 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_ID_LENGTH 0 -#define DEVICE_MAC_OFFSET 0 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h index 220ba743f49..939393fe9b8 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h index 23dd0c0a469..939393fe9b8 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h index ef2d8260d37..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h index ef2d8260d37..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h index ef2d8260d37..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL43Z/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL43Z/device.h index ef2d8260d37..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL43Z/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL43Z/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h index ef2d8260d37..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h index 8f3ef7e1252..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_FRDM/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_FRDM/device.h index 8f3ef7e1252..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_FRDM/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_FRDM/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_HEXIWEAR/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_HEXIWEAR/device.h index 8f3ef7e1252..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_HEXIWEAR/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_HEXIWEAR/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_MTS_GAMBIT/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_MTS_GAMBIT/device.h index 109924b210c..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_MTS_GAMBIT/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K64F/TARGET_MTS_GAMBIT/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 0 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 0 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h index 135a13814d9..29a4e7a0b18 100644 --- a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h +++ b/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 0 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 0 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/device.h b/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/device.h index 3b8d9841db9..c933d6637bd 100644 --- a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/device.h +++ b/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /******************************************************************************* * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved. * @@ -34,40 +36,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SPI 1 -#define DEVICE_I2C 1 -#define DEVICE_SERIAL 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_RTC 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_CAN 0 -#define DEVICE_ETHERNET 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/device.h b/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/device.h index 3b8d9841db9..c933d6637bd 100644 --- a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/device.h +++ b/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /******************************************************************************* * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved. * @@ -34,40 +36,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SPI 1 -#define DEVICE_I2C 1 -#define DEVICE_SERIAL 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_RTC 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_CAN 0 -#define DEVICE_ETHERNET 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h index 2b5a0b6b3f9..3b470c68647 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h index 0a99298a32d..3b470c68647 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h index 9d5a5e2109e..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h +++ b/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/device.h index 4894a9640d3..1b25d4c364a 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2014 ARM Limited * @@ -16,41 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 0 -#define DEVICE_PORTOUT 0 -#define DEVICE_PORTINOUT 0 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 0 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h index 62f823dcb3b..71deacc1116 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h index 120ca9edb6a..5d57c9de571 100755 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h index ab3d3238043..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 1 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h index ab3d3238043..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 1 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h index 62f823dcb3b..71deacc1116 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h index 120ca9edb6a..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h index 120ca9edb6a..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h index 120ca9edb6a..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h index 120ca9edb6a..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h index 120ca9edb6a..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h index 120ca9edb6a..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h index 120ca9edb6a..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h index a45349a9e3d..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h index f7d2f2a614c..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h index a45349a9e3d..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/device.h index 00991eafd8f..93bf787cf28 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,41 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/device.h index 1ef3bcbb3e7..1b25d4c364a 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2014 ARM Limited * @@ -16,42 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 0 -#define DEVICE_PORTOUT 0 -#define DEVICE_PORTINOUT 0 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 0 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h index a60f677905c..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,44 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_ID_LENGTH 0 -#define DEVICE_MAC_OFFSET 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h index a4646b7a004..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,44 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 1 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h index 3b6e556a403..1c6f6037caf 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,46 +18,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_ID_LENGTH 0 -#define DEVICE_MAC_OFFSET 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 1 // should only enable one or the other, not both -#define DEVICE_ERROR_PATTERN 0 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h index a4646b7a004..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,44 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 1 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/device.h index 9a20ae4a36f..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 1 -#define DEVICE_LOCALFILESYSTEM 1 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 0 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/device.h index 74d8ebc9cfb..71deacc1116 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 0 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/device.h index c9bd8d0d0db..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h index b16eeced0e7..9e9e1cba707 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,44 +18,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 //#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h index 8bc66616968..5d57c9de571 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,43 +18,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/device.h index 491694096b2..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 0 -#define DEVICE_PORTOUT 0 -#define DEVICE_PORTINOUT 0 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 0 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h index 52d2e95d0ef..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 0 -#define DEVICE_PORTOUT 0 -#define DEVICE_PORTINOUT 0 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 0 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h b/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h index 52d2e95d0ef..2427e752ea9 100644 --- a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h +++ b/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -16,42 +18,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 0 -#define DEVICE_PORTOUT 0 -#define DEVICE_PORTINOUT 0 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 0 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 0 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 -#define DEVICE_SLEEP 1 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 0 -#define DEVICE_ERROR_RED 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/device.h b/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/device.h index 58795181dfd..ba7b41162ff 100644 --- a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/device.h +++ b/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -24,48 +26,23 @@ #endif /* <-Take measures about optimization problems of web compiler */ -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 #define TRANSACTION_QUEUE_SIZE_SPI 16 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 0 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" #include "dma_api.h" diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h b/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h index ef79620884d..76739b32c42 100644 --- a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h +++ b/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -24,44 +26,22 @@ #endif /* <-Take measures about optimization problems of web compiler */ -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_CAN 1 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 32 #define DEVICE_MAC_OFFSET 20 -#define DEVICE_SLEEP 0 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device.h index c1d8731420d..a2031eabeb9 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,39 +32,20 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 //#define DEVICE_ERROR_RED 0 diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device.h index 2a485c0e17b..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device.h index ce26c8b99a2..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device.h index d3704c8ce68..bdad16c6f18 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,43 +32,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device.h index 2a485c0e17b..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device.h index 796242cb24a..f0799e9083e 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,43 +32,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device.h index 796242cb24a..f0799e9083e 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,43 +32,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device.h index 2a485c0e17b..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device.h index 2a485c0e17b..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/device.h index 0ec2fdffa6f..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/device.h index 0ec2fdffa6f..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/device.h index 63b22fe2165..0aa49de2ae9 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,43 +32,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 #define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/device.h index 63b22fe2165..0aa49de2ae9 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,43 +32,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 #define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/device.h index 63b22fe2165..0aa49de2ae9 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,43 +32,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 #define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/device.h index 63b22fe2165..0aa49de2ae9 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,43 +32,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 #define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/device.h index 81dc1b3295c..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/device.h index 97e99af12fb..766dbb9ccc1 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,47 +32,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_SERIAL_ASYNCH_DMA 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 0 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/device.h index f0227ec42c5..ada82d8c640 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/device.h index cd9614c5eef..ada82d8c640 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/device.h index 83296d8d7ca..ca87126633e 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,44 +32,22 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 1 -/* LSE not soldered by default : RTC date backup not guaranteed */ -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED2 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/device.h index c9cff106740..a8acd67f23e 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,43 +32,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 #define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/device.h index 2a485c0e17b..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device.h index 2a485c0e17b..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device.h index 4701cebf966..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device.h index 2a485c0e17b..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/device.h index dcc1eadaee5..ada82d8c640 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,42 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/device.h index 97b3cad5823..de47c39c286 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/device.h index 6ccaf054a2e..de47c39c286 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/device.h index c9cff106740..a8acd67f23e 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,43 +32,23 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 #define DEVICE_CAN 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 1 #define LED_RED LED1 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/device.h index 64519b79780..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 0 // MAMM Not present on this module 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/device.h index 8b1f3d7ca23..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/device.h index aa30383f4d7..852b02ea765 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2016, STMicroelectronics @@ -30,42 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 0 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device.h index 8b1f3d7ca23..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device.h index 3df70a734d0..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device.h index 8b1f3d7ca23..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device.h index 8b1f3d7ca23..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device.h index b44e75e5afb..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device.h index 4701cebf966..bbb4b7513e6 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device.h index 674ae0a1b3e..17cd684d651 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -39,41 +41,21 @@ //MODTRONIX END /////////////////////////////////////////////////////////////// -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/device.h index 8b1f3d7ca23..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,41 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/device.h b/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/device.h index b65e4b18ca0..38e5143ddb2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/device.h +++ b/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015, STMicroelectronics @@ -30,42 +32,21 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_FC 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_RTC_LSI 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h index 12a4894fe8e..f021343664c 100644 --- a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h +++ b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /***************************************************************************//** * @file device.h ******************************************************************************* @@ -30,41 +32,19 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" #include "device_peripherals.h" diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h index 89bd0086683..b1b9c22ddfb 100644 --- a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h +++ b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /***************************************************************************//** * @file device.h ******************************************************************************* @@ -30,41 +32,19 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_ERROR_PATTERN 1 // Redefine OPEN_MAX from sys_limits.h to save on RAM. // Effect: maximum amount of file handlers = OPEN_MAX diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h index e68891604f3..fe9973ec60f 100644 --- a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h +++ b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /***************************************************************************//** * @file device.h ******************************************************************************* @@ -30,41 +32,19 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" #include "Modules.h" diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h index 4cee666521b..fe9973ec60f 100644 --- a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h +++ b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /***************************************************************************//** * @file device.h ******************************************************************************* @@ -30,41 +32,19 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" #include "Modules.h" diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h index e68891604f3..fe9973ec60f 100644 --- a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h +++ b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /***************************************************************************//** * @file device.h ******************************************************************************* @@ -30,41 +32,19 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 1 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_ERROR_PATTERN 1 #include "objects.h" #include "Modules.h" diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h index 25eec569b10..30f7f17aaa3 100644 --- a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h +++ b/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /***************************************************************************//** * @file device.h ******************************************************************************* @@ -30,41 +32,19 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 -#define DEVICE_SERIAL 1 -#define DEVICE_SERIAL_ASYNCH 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 1 -#define DEVICE_I2C_ASYNCH 1 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_SPI_ASYNCH 1 -#define DEVICE_CAN 0 -#define DEVICE_RTC 1 -#define DEVICE_ETHERNET 0 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 1 -#define DEVICE_STDIO_MESSAGES 1 -#define DEVICE_LOWPOWERTIMER 1 -#define DEVICE_ERROR_PATTERN 1 // Redefine OPEN_MAX from sys_limits.h to save on RAM. // Effect: maximum amount of file handlers = OPEN_MAX diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h b/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h index fe976be652d..951130a3571 100644 --- a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h +++ b/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015 WIZnet Co.,Ltd. All rights reserved. @@ -31,48 +33,28 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 0 -#define DEVICE_ETHERNET 0 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 #define STDIO_UART_TX PC_2 #define STDIO_UART_RX PC_3 #define STDIO_UART UART_1 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h b/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h index 2645702c525..1a077b07eaa 100644 --- a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h +++ b/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015 WIZnet Co.,Ltd. All rights reserved. @@ -31,48 +33,28 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 0 -#define DEVICE_ETHERNET 0 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 #define STDIO_UART_TX PC_10 #define STDIO_UART_RX PC_11 #define STDIO_UART UART_2 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h b/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h index 3052f21dafb..c633df117be 100644 --- a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h +++ b/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h @@ -1,3 +1,5 @@ +// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. +// Check the 'features' section of the target description in 'targets.json' for more details. /* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015 WIZnet Co.,Ltd. All rights reserved. @@ -31,47 +33,27 @@ #ifndef MBED_DEVICE_H #define MBED_DEVICE_H -#define DEVICE_PORTIN 1 -#define DEVICE_PORTOUT 1 -#define DEVICE_PORTINOUT 1 -#define DEVICE_INTERRUPTIN 1 -#define DEVICE_ANALOGIN 1 -#define DEVICE_ANALOGOUT 0 // Not present on this device -#define DEVICE_SERIAL 1 -#define DEVICE_I2C 1 -#define DEVICE_I2CSLAVE 0 -#define DEVICE_SPI 1 -#define DEVICE_SPISLAVE 1 -#define DEVICE_RTC 1 -#define DEVICE_PWMOUT 1 -#define DEVICE_SLEEP 0 -#define DEVICE_ETHERNET 0 //======================================= -#define DEVICE_SEMIHOST 0 -#define DEVICE_LOCALFILESYSTEM 0 #define DEVICE_ID_LENGTH 24 -#define DEVICE_DEBUG_AWARENESS 0 -#define DEVICE_STDIO_MESSAGES 1 #define STDIO_UART_TX PC_10 #define STDIO_UART_RX PC_11 #define STDIO_UART UART_2 -#define DEVICE_ERROR_RED 0 #include "objects.h" diff --git a/workspace_tools/remove-device-h.py b/workspace_tools/remove-device-h.py new file mode 100644 index 00000000000..19500f772f0 --- /dev/null +++ b/workspace_tools/remove-device-h.py @@ -0,0 +1,214 @@ +import json +import os +import stat +import re +from collections import OrderedDict +from subprocess import Popen + +git_processes = [] + +class MyJSONEncoder(json.JSONEncoder): + def __init__(self, *args, **kwargs): + super(MyJSONEncoder, self).__init__(*args, **kwargs) + self.current_indent = 0 + self.current_indent_str = "" + + + def encode(self, o): + #Special Processing for lists + if isinstance(o, (list, tuple)): + primitives_only = True + for item in o: + if isinstance(item, (list, tuple, dict)): + primitives_only = False + break + output = [] + if primitives_only: + for item in o: + output.append(json.dumps(item)) + return "[" + ", ".join(output) + "]" + else: + self.current_indent += self.indent + self.current_indent_str = " " * self.current_indent + for item in o: + output.append(self.current_indent_str + self.encode(item)) + self.current_indent -= self.indent + self.current_indent_str = " " * self.current_indent + return "[\n" + ",\n".join(output) + "\n" + self.current_indent_str + "]" + elif isinstance(o, dict): + primitives_only = True + for item in o.values(): + if isinstance(item, (list, tuple, dict)): + primitives_only = False + break + output = [] + if primitives_only and len(o) < 3: + for key, value in o.iteritems(): + output.append(json.dumps(key) + ": " + self.encode(value)) + return "{" + ", ".join(output) + "}" + else: + self.current_indent += self.indent + self.current_indent_str = " " * self.current_indent + for key, value in o.iteritems(): + output.append(self.current_indent_str + json.dumps(key) + ": " + self.encode(value)) + self.current_indent -= self.indent + self.current_indent_str = " " * self.current_indent + return "{\n" + ",\n".join(output) + "\n" + self.current_indent_str + "}" + else: + return json.dumps(o) + +def load(path): + with open(path, 'r') as f : + return json.load(f, object_pairs_hook=OrderedDict) + +def dump(path, obj): + with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT, stat.S_IRUSR | stat.S_IWUSR), 'w') as f : + os.chmod(path, stat.S_IRUSR | stat.S_IWUSR) + f.write(MyJSONEncoder(indent=4).encode(obj)) + f.write(u'\n') + f.truncate() + +def find(stem, path) : + for root, directories, files in os.walk(path, followlinks=True) : + [dir for dir in directories if dir[0] != '.'] + if (stem_match(stem,os.path.basename(os.path.normpath(root))) and + "device.h" in files) : + return os.path.join(root, "device.h") + +def find_all_devices(path, verbose=False) : + for root, directories, files in os.walk(path, followlinks=True) : + [dir for dir in directories if dir[0] != '.'] + if "device.h" in files : + if verbose : print("[VERBOSE] found a device.h file in {}".format(root)) + yield os.path.join(root, "device.h") + +mbed_matcher = re.compile('mbed', re.IGNORECASE) +def stem_match(stem, thing) : + return (stem in thing or + re.sub(mbed_matcher, '', stem) in thing) + +attr_matcher = re.compile('^#define\W+DEVICE_(\w+)\W+1.*$') +def parse_attributes(path) : + with open(path) as input : + for line in input : + m = re.match(attr_matcher, line) + if m: yield m.group(1) + +remove_matcher = re.compile('^#define\W+DEVICE_(\w+)\W+[10].*$') +def remove_attributes(path) : + with open(path) as input : + remainder = filter(lambda l: not re.match(remove_matcher, l), input) + with open(path,"wb") as output : + output.truncate(0) + output.write("// The 'provides' section in 'target.json' is now used"+ + " to create the device's hardware preprocessor switches.\n") + output.write("// Check the 'provides' section of the target description"+ + " in 'targets.json' for more details.\n") + output.writelines(remainder) + +def user_select(things, message) : + print(message) + for thing, number in zip(things, range(len(things))): + print("{} : {}".format(number, thing)) + selection = None + while selection is None : + print("please select an integer [0..{}] or specify all".format(len(things) - 1)) + try : + i = raw_input() + if i == "all" : + selection = "all" + else : + selection = int(i) + if (selection > len(things) or + selection < 0) : + print("selection {} out of range".format(selection)) + selection = None + except (ValueError, SyntaxError) : + print("selection not understood") + if selection == "all" : + return things + else : + return [things[selection]] + +target_matcher = re.compile("TARGET_") +def strip_target(str) : + return re.sub(target_matcher, "", str) + +def add_to_targets(targets, device_file, verbose=False, remove=False) : + if verbose : print("[VERBOSE] trying target {}".format(device_file)) + device = strip_target(os.path.basename(os.path.normpath(os.path.dirname(device_file)))) + if not device : + print("[WARNING] device {} did not have an associated device.h".format(device)) + else : + possible_matches = set([key for key in targets.keys() if stem_match(device, key)]) + for key, value in targets.iteritems() : + for alt in value['extra_labels'] if 'extra_labels' in value else [] : + if stem_match(device, alt) : possible_matches.add(key) + possible_matches = list(possible_matches) + for match in possible_matches : + if device == match : possible_matches = [match] + if not possible_matches : + print("[WARNING] device {} did not have an associated entry in targets.json".format(device)) + return None + elif len(possible_matches) > 1 : + message = ("possible matches for file {}".format(device_file)) + target = user_select(possible_matches, message) + else : + target = possible_matches + attrs = list(parse_attributes(device_file)) + if attrs : + for t in target : + targets[t]["features"] = sorted(list(set(targets[t].setdefault("features",[]) + attrs))) + if verbose : print("[VERBOSE] target {} now features {}".format(t, attrs)) + if remove is True: + remove_attributes(device_file) + +if __name__ == '__main__' : + import argparse + parser = argparse.ArgumentParser(description='A helpful little script for converting' + + ' device.h files to parts of the targets.json file') + parser.add_argument('-a', '--all', action='store_true', + help='find and convert all available device.h files in the'+ + ' directory tree starting at the current directory') + parser.add_argument('-f', '--file', nargs='+', help='specify an individual file to '+ + 'convert from device.h format to a piece of targets.json') + parser.add_argument('-t', '--target', nargs='+', help='specify an individual target'+ + ' to convert from device.h format to a piece of targets.json') + parser.add_argument('-v', '--verbose', action='store_true', + help="print out every target that is updated in the targets.json") + parser.add_argument('-r', '--rm', action='store_true', + help="remove the used attributes from a device.h file") + args = parser.parse_args() + if not args.target and not args.file and not args.all : + print("[WARNING] no action specified; auto-formatting targets.json") + + targets_file_name = os.path.join(os.curdir, "hal", "targets.json") + try : + targets = load(targets_file_name) + except OSError : + print("[ERROR] did not find targets.json where I expected it {}".format(targets_file_name)) + exit(1) + except ValueError : + print("[ERROR] invalid json found in {}".format(targets_file_name)) + exit(2) + + if args.target : + for target in args.target : + device_file = find(target, os.curdir) + if device_file : + add_to_targets(targets, device_file, verbose=args.verbose, remove=args.rm) + else : + print("[WARNING] could not locate a device file for target {}".format(target)) + + if args.file : + for file in args.file : + add_to_targets(targets, file, verbose=args.verbose, remove=args.rm) + + if args.all : + for file in find_all_devices(os.curdir, verbose=args.verbose) : + add_to_targets(targets, file, verbose=args.verbose, remove=args.rm) + + dump(targets_file_name, targets) + + for process in git_processes : + process.wait() diff --git a/workspace_tools/targets.py b/workspace_tools/targets.py index 6fb1ca9c5a0..097c5bbfc6d 100755 --- a/workspace_tools/targets.py +++ b/workspace_tools/targets.py @@ -58,7 +58,7 @@ def wrapper(*args, **kwargs): class Target: # Cumulative attributes can have values appended to them, so they # need to be computed differently than regular attributes - __cumulative_attributes = ['extra_labels', 'macros'] + __cumulative_attributes = ['extra_labels', 'macros', 'features'] # Utility function: traverse a dictionary and change all the strings in the dictionary to # ASCII from Unicode. Needed because the original mbed target definitions were written in diff --git a/workspace_tools/toolchains/__init__.py b/workspace_tools/toolchains/__init__.py index d122fb72d14..c83da39acf8 100644 --- a/workspace_tools/toolchains/__init__.py +++ b/workspace_tools/toolchains/__init__.py @@ -298,6 +298,7 @@ def get_symbols(self): # Add target's symbols self.symbols += self.target.macros + self.symbols += ["DEVICE_" + feature + "=1" for feature in self.target.features] # Add extra symbols passed via 'macros' parameter self.symbols += self.macros