Skip to content

Commit

Permalink
adding desc num
Browse files Browse the repository at this point in the history
  • Loading branch information
Harishguna Satgunarajah committed Oct 2, 2023
1 parent c00cebc commit 986170e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/ethernet-nucleo-h743zi2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ static TIME: AtomicU32 = AtomicU32::new(0);
/// Locally administered MAC address
const MAC_ADDRESS: [u8; 6] = [0x02, 0x00, 0x11, 0x22, 0x33, 0x44];

/// DesRing TD
const NUM_DESCRIPTORS: usize = 8;
#[link_section = ".sram3.eth"]
/// Doc
static mut TX_DESCRIPTORS: [TxDescriptor; NUM_DESCRIPTORS] =

Check failure on line 56 in examples/ethernet-nucleo-h743zi2.rs

View workflow job for this annotation

GitHub Actions / clippy

cannot find type `TxDescriptor` in this scope

error[E0412]: cannot find type `TxDescriptor` in this scope --> examples/ethernet-nucleo-h743zi2.rs:56:29 | 56 | static mut TX_DESCRIPTORS: [TxDescriptor; NUM_DESCRIPTORS] = | ^^^^^^^^^^^^ not found in this scope | help: consider importing one of these items | 16 | use crate::ethernet::TxDescriptor; | 16 | use stm32h7xx_hal::ethernet::TxDescriptor; |
Expand Down
2 changes: 2 additions & 0 deletions examples/ethernet-rtic-stm32h735g-dk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ static TIME: AtomicU32 = AtomicU32::new(0);
/// Locally administered MAC address
const MAC_ADDRESS: [u8; 6] = [0x02, 0x00, 0x11, 0x22, 0x33, 0x44];

/// DesRing TD
const NUM_DESCRIPTORS: usize = 8;
/// Ethernet descriptor rings are a global singleton
#[link_section = ".sram3.eth"]
/// Doc
Expand Down

0 comments on commit 986170e

Please sign in to comment.