diff options
| author | thewon86 <[email protected]> | 2022-04-20 10:56:11 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2022-04-20 14:22:43 +0800 |
| commit | f5b0bfd3f4f450424b5bc1f084959d0436c8a6e6 (patch) | |
| tree | 1081304c855cd4002a7f460e59561415bf3e95c1 /components/net/lwip | |
| parent | 5fa15a19a0917e762c8d10207544f2a0396fd15b (diff) | |
uniform code writing-disable interrupt
Diffstat (limited to 'components/net/lwip')
| -rw-r--r-- | components/net/lwip/port/ethernetif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/net/lwip/port/ethernetif.c b/components/net/lwip/port/ethernetif.c index 76ea3a6472..f5c2417eb6 100644 --- a/components/net/lwip/port/ethernetif.c +++ b/components/net/lwip/port/ethernetif.c @@ -663,7 +663,7 @@ rt_err_t eth_device_ready(struct eth_device* dev) rt_err_t eth_device_linkchange(struct eth_device* dev, rt_bool_t up) { - rt_uint32_t level; + rt_base_t level; RT_ASSERT(dev != RT_NULL); @@ -740,7 +740,6 @@ static void eth_rx_thread_entry(void* parameter) if (device->link_changed) { int status; - rt_uint32_t level; level = rt_hw_interrupt_disable(); status = device->link_status; |
