diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-05-23 03:50:43 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-05-25 19:56:22 +0200 |
| commit | a5aea995a802fea8fc1b3e4b5fe47bd6d1fca2a4 (patch) | |
| tree | 0fcb4c01914347eff5b3be44b284aa9432e28678 /embassy-net/src/lib.rs | |
| parent | 36a1f203648dcb402727ea3eb5d30cf1f6993795 (diff) | |
WIP embassy-net v2
Diffstat (limited to 'embassy-net/src/lib.rs')
| -rw-r--r-- | embassy-net/src/lib.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 18dc1ef61..7b5f29f16 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -5,20 +5,13 @@ | |||
| 5 | // This mod MUST go first, so that the others see its macros. | 5 | // This mod MUST go first, so that the others see its macros. |
| 6 | pub(crate) mod fmt; | 6 | pub(crate) mod fmt; |
| 7 | 7 | ||
| 8 | mod config; | ||
| 9 | mod device; | 8 | mod device; |
| 10 | mod packet_pool; | 9 | mod packet_pool; |
| 11 | mod stack; | 10 | mod stack; |
| 12 | 11 | ||
| 13 | #[cfg(feature = "dhcpv4")] | ||
| 14 | pub use config::DhcpConfigurator; | ||
| 15 | pub use config::{Config, Configurator, Event as ConfigEvent, StaticConfigurator}; | ||
| 16 | |||
| 17 | pub use device::{Device, LinkState}; | 12 | pub use device::{Device, LinkState}; |
| 18 | pub use packet_pool::{Packet, PacketBox, PacketBoxExt, PacketBuf, MTU}; | 13 | pub use packet_pool::{Packet, PacketBox, PacketBoxExt, PacketBuf, MTU}; |
| 19 | pub use stack::{ | 14 | pub use stack::{Config, ConfigStrategy, Stack, StackResources}; |
| 20 | config, ethernet_address, init, is_config_up, is_init, is_link_up, run, StackResources, | ||
| 21 | }; | ||
| 22 | 15 | ||
| 23 | #[cfg(feature = "tcp")] | 16 | #[cfg(feature = "tcp")] |
| 24 | pub mod tcp; | 17 | pub mod tcp; |
| @@ -30,4 +23,3 @@ pub use smoltcp::time::Instant as SmolInstant; | |||
| 30 | #[cfg(feature = "medium-ethernet")] | 23 | #[cfg(feature = "medium-ethernet")] |
| 31 | pub use smoltcp::wire::{EthernetAddress, HardwareAddress}; | 24 | pub use smoltcp::wire::{EthernetAddress, HardwareAddress}; |
| 32 | pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr}; | 25 | pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr}; |
| 33 | pub type Interface = smoltcp::iface::Interface<'static, device::DeviceAdapter>; | ||
