File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
connectivity/drivers/emac/TARGET_ARM_SSG/COMPONENT_SMSC9220 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ bool SMSC9220_EMAC::power_up()
211
211
this));
212
212
213
213
/* Initialize the hardware */
214
- enum smsc9220_error_t init_successful = smsc9220_init(dev, &ThisThread::sleep_for );
214
+ enum smsc9220_error_t init_successful = smsc9220_init(dev, &thread_sleep_for );
215
215
if (init_successful != SMSC9220_ERROR_NONE) {
216
216
return false;
217
217
}
@@ -237,7 +237,7 @@ bool SMSC9220_EMAC::power_up()
237
237
&SMSC9220_EMAC::link_status_task));
238
238
239
239
/* Allow the Link Status task to detect the initial link state */
240
- ThisThread::sleep_for(10 );
240
+ ThisThread::sleep_for(10ms );
241
241
_link_status_task_handle = mbed::mbed_event_queue()->call_every(
242
242
LINK_STATUS_TASK_PERIOD_MS,
243
243
mbed::callback(this,
Original file line number Diff line number Diff line change 36
36
#define FLAG_RX 1U
37
37
#define LINK_STATUS_THREAD_PRIORITY (osPriorityNormal)
38
38
#define LINK_STATUS_THREAD_STACKSIZE 512U
39
- #define LINK_STATUS_TASK_PERIOD_MS 200U
39
+ #define LINK_STATUS_TASK_PERIOD_MS 200ms
40
40
#define PHY_STATE_LINK_DOWN false
41
41
#define PHY_STATE_LINK_UP true
42
42
#define CRC_LENGTH_BYTES 4U
You can’t perform that action at this time.
0 commit comments