diff --git a/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac.cpp b/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac.cpp index 80b74bd862..0e33d285b1 100644 --- a/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac.cpp +++ b/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac.cpp @@ -211,7 +211,7 @@ bool SMSC9220_EMAC::power_up() this)); /* Initialize the hardware */ - enum smsc9220_error_t init_successful = smsc9220_init(dev, &ThisThread::sleep_for); + enum smsc9220_error_t init_successful = smsc9220_init(dev, &thread_sleep_for); if (init_successful != SMSC9220_ERROR_NONE) { return false; } @@ -237,7 +237,7 @@ bool SMSC9220_EMAC::power_up() &SMSC9220_EMAC::link_status_task)); /* Allow the Link Status task to detect the initial link state */ - ThisThread::sleep_for(10); + ThisThread::sleep_for(10ms); _link_status_task_handle = mbed::mbed_event_queue()->call_every( LINK_STATUS_TASK_PERIOD_MS, mbed::callback(this, diff --git a/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac_config.h b/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac_config.h index a96a008357..5f618308c5 100644 --- a/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac_config.h +++ b/connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac_config.h @@ -36,7 +36,7 @@ #define FLAG_RX 1U #define LINK_STATUS_THREAD_PRIORITY (osPriorityNormal) #define LINK_STATUS_THREAD_STACKSIZE 512U -#define LINK_STATUS_TASK_PERIOD_MS 200U +#define LINK_STATUS_TASK_PERIOD_MS 200ms #define PHY_STATE_LINK_DOWN false #define PHY_STATE_LINK_UP true #define CRC_LENGTH_BYTES 4U