aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f7/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-05-12 23:30:53 +0200
committerDario Nieuwenhuis <[email protected]>2024-05-13 01:11:49 +0200
commite2dfdcb5091388cfbd467e9d8ac9b7d2025cc833 (patch)
tree92230404e3274c92de51a0b46d6db43d987a1b49 /examples/stm32f7/src
parentb56a0419bdcec08015b0ba1e4fc137a56720ce72 (diff)
examples/stm32: reduce packet queue count to avoid OOM on smaller chips.
Diffstat (limited to 'examples/stm32f7/src')
-rw-r--r--examples/stm32f7/src/bin/eth.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32f7/src/bin/eth.rs b/examples/stm32f7/src/bin/eth.rs
index 9a608e909..41e2a6061 100644
--- a/examples/stm32f7/src/bin/eth.rs
+++ b/examples/stm32f7/src/bin/eth.rs
@@ -63,9 +63,9 @@ async fn main(spawner: Spawner) -> ! {
63 63
64 let mac_addr = [0x00, 0x00, 0xDE, 0xAD, 0xBE, 0xEF]; 64 let mac_addr = [0x00, 0x00, 0xDE, 0xAD, 0xBE, 0xEF];
65 65
66 static PACKETS: StaticCell<PacketQueue<16, 16>> = StaticCell::new(); 66 static PACKETS: StaticCell<PacketQueue<4, 4>> = StaticCell::new();
67 let device = Ethernet::new( 67 let device = Ethernet::new(
68 PACKETS.init(PacketQueue::<16, 16>::new()), 68 PACKETS.init(PacketQueue::<4, 4>::new()),
69 p.ETH, 69 p.ETH,
70 Irqs, 70 Irqs,
71 p.PA1, 71 p.PA1,