diff options
| author | Martin Liska <[email protected]> | 2024-08-08 10:53:55 +0200 |
|---|---|---|
| committer | Martin Liska <[email protected]> | 2024-08-08 12:03:43 +0200 |
| commit | 961ec387edec33fbaa9d63144f8826e3aff6cd45 (patch) | |
| tree | edc473818861d1d4c836ccc90dafbc12291aa089 /tests/stm32 | |
| parent | 891c5ee10584cd990dad529e3506fe1328e4e69d (diff) | |
Simplify construction of StackResources::new()
Diffstat (limited to 'tests/stm32')
| -rw-r--r-- | tests/stm32/src/bin/eth.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/stm32/src/bin/eth.rs b/tests/stm32/src/bin/eth.rs index 25a06b986..9da514881 100644 --- a/tests/stm32/src/bin/eth.rs +++ b/tests/stm32/src/bin/eth.rs | |||
| @@ -101,12 +101,7 @@ async fn main(spawner: Spawner) { | |||
| 101 | // Init network stack | 101 | // Init network stack |
| 102 | static STACK: StaticCell<Stack<Device>> = StaticCell::new(); | 102 | static STACK: StaticCell<Stack<Device>> = StaticCell::new(); |
| 103 | static RESOURCES: StaticCell<StackResources<2>> = StaticCell::new(); | 103 | static RESOURCES: StaticCell<StackResources<2>> = StaticCell::new(); |
| 104 | let stack = &*STACK.init(Stack::new( | 104 | let stack = &*STACK.init(Stack::new(device, config, RESOURCES.init(StackResources::new()), seed)); |
| 105 | device, | ||
| 106 | config, | ||
| 107 | RESOURCES.init(StackResources::<2>::new()), | ||
| 108 | seed, | ||
| 109 | )); | ||
| 110 | 105 | ||
| 111 | // Launch network task | 106 | // Launch network task |
| 112 | unwrap!(spawner.spawn(net_task(&stack))); | 107 | unwrap!(spawner.spawn(net_task(&stack))); |
