mirror of https://github.com/ARMmbed/mbed-os.git
Add extra labels for Freescale & STM EMAC drivers
Just checking "does the chip have an EMAC" doesn't work - there are targets using those chips which do not have an Ethernet connector and don't provide the necessary surrounding infrastructure (eg DISCO_F429ZI, not providing the board emac config call, and HEXIWEAR not providing PHY info). Make the targets that actually do want EMAC define their own local Freescale_EMAC and STM_EMAC labels, and move the drivers into the corresponding TARGET_ directories, removing the #ifdefs.pull/6847/head
parent
d83dec9ea4
commit
fbd920777b
|
@ -42,8 +42,6 @@
|
|||
#include "netsocket/nsapi_types.h"
|
||||
#include "mbed_shared_queues.h"
|
||||
|
||||
#ifdef ENET_BASE
|
||||
|
||||
#include "fsl_phy.h"
|
||||
|
||||
#include "k64f_emac_config.h"
|
||||
|
@ -614,7 +612,5 @@ MBED_WEAK EMAC &EMAC::get_default_instance() {
|
|||
* @}
|
||||
*/
|
||||
|
||||
#endif // ENET_BASE
|
||||
|
||||
/* --------------------------------- End Of File ------------------------------ */
|
||||
|
|
@ -7,8 +7,6 @@
|
|||
#include "mbed_shared_queues.h"
|
||||
#include "netsocket/nsapi_types.h"
|
||||
|
||||
#ifdef ETH_BASE
|
||||
|
||||
#include "stm32xx_emac_config.h"
|
||||
#include "stm32xx_emac.h"
|
||||
|
||||
|
@ -569,5 +567,3 @@ STM32_EMAC &STM32_EMAC::get_instance() {
|
|||
MBED_WEAK EMAC &EMAC::get_default_instance() {
|
||||
return STM32_EMAC::get_instance();
|
||||
}
|
||||
|
||||
#endif
|
|
@ -610,7 +610,7 @@
|
|||
"supported_form_factors": ["ARDUINO"],
|
||||
"core": "Cortex-M4F",
|
||||
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
|
||||
"extra_labels": ["Freescale", "MCUXpresso_MCUS", "KSDK2_MCUS", "FRDM", "KPSDK_MCUS", "KPSDK_CODE", "MCU_K64F"],
|
||||
"extra_labels": ["Freescale", "MCUXpresso_MCUS", "KSDK2_MCUS", "FRDM", "KPSDK_MCUS", "KPSDK_CODE", "MCU_K64F", "Freescale_EMAC"],
|
||||
"is_disk_virtual": true,
|
||||
"macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED"],
|
||||
"inherits": ["Target"],
|
||||
|
@ -674,7 +674,7 @@
|
|||
"supported_form_factors": ["ARDUINO"],
|
||||
"core": "Cortex-M4F",
|
||||
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
|
||||
"extra_labels": ["Freescale", "MCUXpresso_MCUS", "KSDK2_MCUS", "FRDM"],
|
||||
"extra_labels": ["Freescale", "MCUXpresso_MCUS", "KSDK2_MCUS", "FRDM", "Freescale_EMAC"],
|
||||
"is_disk_virtual": true,
|
||||
"macros": ["CPU_MK66FN2M0VMD18", "FSL_RTOS_MBED"],
|
||||
"inherits": ["Target"],
|
||||
|
@ -913,7 +913,7 @@
|
|||
"inherits": ["FAMILY_STM32"],
|
||||
"supported_form_factors": ["ARDUINO", "MORPHO"],
|
||||
"core": "Cortex-M3",
|
||||
"extra_labels_add": ["STM32F2", "STM32F207ZG"],
|
||||
"extra_labels_add": ["STM32F2", "STM32F207ZG", "STM_EMAC"],
|
||||
"config": {
|
||||
"d11_configuration": {
|
||||
"help": "Value: PA_7 for the default board configuration, PB_5 in case of solder bridge update (SB121 off/ SB122 on)",
|
||||
|
@ -1239,7 +1239,7 @@
|
|||
"macro_name": "CLOCK_SOURCE_USB"
|
||||
}
|
||||
},
|
||||
"extra_labels_add": ["STM32F4", "STM32F429", "STM32F429ZI", "STM32F429xx", "STM32F429xI"],
|
||||
"extra_labels_add": ["STM32F4", "STM32F429", "STM32F429ZI", "STM32F429xx", "STM32F429xI", "STM_EMAC"],
|
||||
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
|
||||
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "LOWPOWERTIMER", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH"],
|
||||
"detect_code": ["0796"],
|
||||
|
@ -1269,7 +1269,7 @@
|
|||
"macro_name": "CLOCK_SOURCE_USB"
|
||||
}
|
||||
},
|
||||
"extra_labels_add": ["STM32F4", "STM32F439", "STM32F439ZI", "STM32F439xx", "STM32F439xI"],
|
||||
"extra_labels_add": ["STM32F4", "STM32F439", "STM32F439ZI", "STM32F439xx", "STM32F439xI", "STM_EMAC"],
|
||||
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "USB_STM_HAL", "USBHOST_OTHER"],
|
||||
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "LOWPOWERTIMER", "SERIAL_FC", "TRNG", "FLASH"],
|
||||
"detect_code": ["0797"],
|
||||
|
@ -1328,7 +1328,7 @@
|
|||
"NUCLEO_F746ZG": {
|
||||
"inherits": ["FAMILY_STM32"],
|
||||
"core": "Cortex-M7F",
|
||||
"extra_labels_add": ["STM32F7", "STM32F746", "STM32F746xG", "STM32F746ZG"],
|
||||
"extra_labels_add": ["STM32F7", "STM32F746", "STM32F746xG", "STM32F746ZG", "STM_EMAC"],
|
||||
"config": {
|
||||
"d11_configuration": {
|
||||
"help": "Value: PA_7 for the default board configuration, PB_5 in case of solder bridge update (SB121 off/ SB122 on)",
|
||||
|
@ -1357,7 +1357,7 @@
|
|||
"NUCLEO_F756ZG": {
|
||||
"inherits": ["FAMILY_STM32"],
|
||||
"core": "Cortex-M7F",
|
||||
"extra_labels_add": ["STM32F7", "STM32F756", "STM32F756xG", "STM32F756ZG"],
|
||||
"extra_labels_add": ["STM32F7", "STM32F756", "STM32F756xG", "STM32F756ZG", "STM_EMAC"],
|
||||
"config": {
|
||||
"d11_configuration": {
|
||||
"help": "Value: PA_7 for the default board configuration, PB_5 in case of solder bridge update (SB121 off/ SB122 on)",
|
||||
|
@ -1385,7 +1385,7 @@
|
|||
"NUCLEO_F767ZI": {
|
||||
"inherits": ["FAMILY_STM32"],
|
||||
"core": "Cortex-M7FD",
|
||||
"extra_labels_add": ["STM32F7", "STM32F767", "STM32F767xI", "STM32F767ZI"],
|
||||
"extra_labels_add": ["STM32F7", "STM32F767", "STM32F767xI", "STM32F767ZI", "STM_EMAC"],
|
||||
"config": {
|
||||
"d11_configuration": {
|
||||
"help": "Value: PA_7 for the default board configuration, PB_5 in case of solder bridge update (SB121 off/ SB122 on)",
|
||||
|
@ -1847,7 +1847,7 @@
|
|||
"DISCO_F746NG": {
|
||||
"inherits": ["FAMILY_STM32"],
|
||||
"core": "Cortex-M7F",
|
||||
"extra_labels_add": ["STM32F7", "STM32F746", "STM32F746xG", "STM32F746NG"],
|
||||
"extra_labels_add": ["STM32F7", "STM32F746", "STM32F746xG", "STM32F746NG", "STM_EMAC"],
|
||||
"supported_form_factors": ["ARDUINO"],
|
||||
"config": {
|
||||
"clock_source": {
|
||||
|
@ -1874,7 +1874,7 @@
|
|||
"DISCO_F769NI": {
|
||||
"inherits": ["FAMILY_STM32"],
|
||||
"core": "Cortex-M7FD",
|
||||
"extra_labels_add": ["STM32F7", "STM32F769", "STM32F769xI", "STM32F769NI"],
|
||||
"extra_labels_add": ["STM32F7", "STM32F769", "STM32F769xI", "STM32F769NI", "STM_EMAC"],
|
||||
"supported_form_factors": ["ARDUINO"],
|
||||
"config": {
|
||||
"clock_source": {
|
||||
|
@ -2094,7 +2094,7 @@
|
|||
"MODULE_UBLOX_ODIN_W2": {
|
||||
"inherits": ["FAMILY_STM32"],
|
||||
"core": "Cortex-M4F",
|
||||
"extra_labels_add": ["STM32F4", "STM32F439", "STM32F439ZI","STM32F439xx", "STM32F439xI"],
|
||||
"extra_labels_add": ["STM32F4", "STM32F439", "STM32F439ZI","STM32F439xx", "STM32F439xI", "STM_EMAC"],
|
||||
"macros": ["MBEDTLS_CONFIG_HW_SUPPORT", "HSE_VALUE=24000000", "HSE_STARTUP_TIMEOUT=5000", "CB_INTERFACE_SDIO","CB_CHIP_WL18XX","SUPPORT_80211D_ALWAYS","WLAN_ENABLED","MBEDTLS_ARC4_C","MBEDTLS_DES_C","MBEDTLS_MD4_C","MBEDTLS_MD5_C","MBEDTLS_SHA1_C"],
|
||||
"device_has_add": ["CAN", "EMAC", "TRNG", "FLASH"],
|
||||
"device_has_remove": ["RTC", "SLEEP"],
|
||||
|
@ -2145,7 +2145,7 @@
|
|||
"supported_form_factors": ["ARDUINO"],
|
||||
"core": "Cortex-M4F",
|
||||
"supported_toolchains": ["GCC_ARM", "ARM", "IAR"],
|
||||
"extra_labels_add": ["STM32F4", "STM32F437", "STM32F437VG", "STM32F437xx", "STM32F437xG"],
|
||||
"extra_labels_add": ["STM32F4", "STM32F437", "STM32F437VG", "STM32F437xx", "STM32F437xG", "STM_EMAC"],
|
||||
"config": {
|
||||
"modem_is_on_board": {
|
||||
"help": "Value: Tells the build system that the modem is on-board as oppose to a plug-in shield/module.",
|
||||
|
|
Loading…
Reference in New Issue