Skip to content

Commit

Permalink
passthru: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed May 26, 2023
1 parent a26d93b commit 09fad6d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions firmware/src/bin/passthru.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,18 @@ mod app {

#[init(
local = [
eth_rx_region: dma::RxRegion = dma::RxRegion([0; 1536]),
eth_tx_region: dma::TxRegion = dma::TxRegion([0; 1536]),
eth_rx_descriptors: dma::RxDescriptors = dma::RxDescriptors::new(),
eth_tx_descriptors: dma::TxDescriptors = dma::TxDescriptors::new(),
tcp_rx_payload: [u8; 128] = [0; 128],
tcp_tx_payload: [u8; 128] = [0; 128],
neighbors: [Option<(IpAddress, Neighbor)>; 8] = [None; 8],
sockets: [SocketStorage<'static>; 2] = [SocketStorage::EMPTY; 2],
ip_addresses: [IpCidr; 1] =
eth_rx_region: dma::RxRegion = dma::RxRegion([0; 1536]),
eth_tx_region: dma::TxRegion = dma::TxRegion([0; 1536]),
eth_rx_descriptors: dma::RxDescriptors = dma::RxDescriptors::new(),
eth_tx_descriptors: dma::TxDescriptors = dma::TxDescriptors::new(),
tcp_rx_payload: [u8; 128] = [0; 128],
tcp_tx_payload: [u8; 128] = [0; 128],
http_rx_payload: [u8; 128] = [0; 128],
http_tx_payload: [u8; 1024] = [0; 1024],
neighbors: [Option<(IpAddress, Neighbor)>; 8] = [None; 8],
sockets: [SocketStorage<'static>; 3] = [SocketStorage::EMPTY; 3],
ip_addresses: [IpCidr; 1] =
[IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address::UNSPECIFIED, 0))],
routes: [Option<(IpCidr, Route)>; 4] = [None; 4],
]
Expand Down

0 comments on commit 09fad6d

Please sign in to comment.