mirror of https://github.com/ARMmbed/mbed-os.git
MPS2 CM3DS ethernet fix deprecation warnings
The sleep_for function is updated to use the chrono time arguments since the regular ones are deprecated.pull/15284/head
parent
e2e927e2ee
commit
14aa25b8b7
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue