Skip to content

Commit

Permalink
adding credit to @datdenkikniet (Johannes Draaijer)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harishguna Satgunarajah committed Sep 21, 2023
1 parent 98597be commit 0f0c47c
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ethernet/cache.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
#[cfg(feature = "ptp")]
use crate::ptp::Timestamp;

Expand Down
4 changes: 4 additions & 0 deletions src/ethernet/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
//! > want to enable the cache, the simplest method would be to mark SRAM3
//! > as uncacheable via the MPU.
//!
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
//!
//! [quartiq/stabilizer]: https://github.com/quartiq/stabilizer
//! [notes]: https://github.com/quartiq/stabilizer/commit/ab1735950b2108eaa8d51eb63efadcd2e25c35c4
Expand Down
4 changes: 4 additions & 0 deletions src/ethernet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
//! - SMSC LAN8742a
//! - Micrel KSZ8081R
//!
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
//!
//! # Examples
//!
//! - [Simple link checker for the Nucleo-H743ZI2](https://github.com/stm32-rs/stm32h7xx-hal/blob/master/examples/ethernet-nucleo-h743zi2.rs)
Expand Down
4 changes: 4 additions & 0 deletions src/ethernet/packet_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
/// This packet ID can be used to obtain information about a specific
/// ethernet frame (either sent or received) from the DMA.
///
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
#[cfg_attr(
feature = "ptp",
doc = "
Expand Down
5 changes: 5 additions & 0 deletions src/ethernet/raw_descriptor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project

//TODO remove
// this is raw_descriptor
use volatile_register::{RO, RW};
Expand Down
4 changes: 4 additions & 0 deletions src/ethernet/rx/descriptor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
use core::sync::atomic::{self, Ordering};

use crate::ethernet::{raw_descriptor::RawDescriptor, Cache, PacketId};
Expand Down
4 changes: 4 additions & 0 deletions src/ethernet/rx/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
pub use descriptor::RxDescriptor;

use super::{raw_descriptor::DescriptorRing, PacketId};
Expand Down
4 changes: 4 additions & 0 deletions src/ethernet/tx/descriptor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
use core::sync::atomic::{self, Ordering};

use crate::ethernet::{raw_descriptor::RawDescriptor, Cache, PacketId};
Expand Down
4 changes: 4 additions & 0 deletions src/ethernet/tx/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
use super::{raw_descriptor::DescriptorRing, PacketId};
use crate::stm32::ETHERNET_DMA;

Expand Down
3 changes: 3 additions & 0 deletions src/ptp/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
//! PTP access and configuration.
//!
//! See [`EthernetPTP`] for a more details.
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
use crate::ethernet::EthernetDMA;
use crate::rcc::CoreClocks;
Expand Down
4 changes: 4 additions & 0 deletions src/ptp/subseconds.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
/// The amount of nanoseconds per second.
pub const NANOS_PER_SECOND: u32 = 1_000_000_000;

Expand Down
4 changes: 4 additions & 0 deletions src/ptp/timestamp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! This implementation is derived from 0BSD-relicensed work done by
//! Johannes Draaijer <[email protected]> for the
//! [`stm32-eth`](https://github.com/stm32-rs/stm32-eth) project
use super::{Subseconds, NANOS_PER_SECOND};

/// A timestamp produced by the PTP periperhal
Expand Down

0 comments on commit 0f0c47c

Please sign in to comment.