mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
DM09x0 Ethernet now supports CONFIG_NET_NOINTS
This commit is contained in:
@@ -195,6 +195,26 @@ config DM9X_NINTERFACES
|
||||
default 1
|
||||
depends on EXPERIMENTAL
|
||||
|
||||
choice
|
||||
prompt "Work queue"
|
||||
default DM9X_LPWORK if SCHED_LPWORK
|
||||
default DM9X_HPWORK if !SCHED_LPWORK && SCHED_HPWORK
|
||||
depends on SCHED_WORKQUEUE
|
||||
---help---
|
||||
Work queue support is required to use the Ethernet driver. If the
|
||||
low priority work queue is available, then it should be used by the
|
||||
driver.
|
||||
|
||||
config DM9X_HPWORK
|
||||
bool "High priority"
|
||||
depends on SCHED_HPWORK
|
||||
|
||||
config DM9X_LPWORK
|
||||
bool "Low priority"
|
||||
depends on SCHED_LPWORK
|
||||
|
||||
endchoice # Work queue
|
||||
|
||||
endif # NET_DM90x0
|
||||
|
||||
config NET_CS89x0
|
||||
|
||||
+566
-194
File diff suppressed because it is too large
Load Diff
@@ -622,7 +622,7 @@ static int skel_interrupt(int irq, FAR void *context)
|
||||
|
||||
/* Cancel any pending poll work */
|
||||
|
||||
work_cancel(HPWORK, &priv->sk_work);
|
||||
work_cancel(ETHWORK, &priv->sk_work);
|
||||
|
||||
/* Schedule to perform the interrupt processing on the worker thread. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user