Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions drivers/ethernet/Kconfig.w5500
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,12 @@ config ETH_W5500_TIMEOUT
Given timeout in milliseconds. Maximum amount of time
that the driver will wait from the IP stack to get
a memory buffer before the Ethernet frame is dropped.

config ETH_W5500_MONITOR_PERIOD
int "Monitor task execution period"
depends on ETH_W5500
default 500
help
Monitor task execution period in milliseconds. The monitor task is
periodically executed to detect and report any changes in the
link status to the operating system.
2 changes: 1 addition & 1 deletion drivers/ethernet/eth_w5500.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static void w5500_thread(void *p1, void *p2, void *p3)
const struct w5500_config *config = dev->config;

while (true) {
res = k_sem_take(&ctx->int_sem, K_MSEC(CONFIG_PHY_MONITOR_PERIOD));
res = k_sem_take(&ctx->int_sem, K_MSEC(CONFIG_ETH_W5500_MONITOR_PERIOD));

if (res == 0) {
/* semaphore taken, update link status and receive packets */
Expand Down