Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions embassy-rp/src/float/add_sub.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Rust implementation of ROM floating point addition and subtraction functions.

// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/add_sub.rs

Expand Down
2 changes: 2 additions & 0 deletions embassy-rp/src/float/cmp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Rust implementation of floating point comparison.

// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/cmp.rs

Expand Down
2 changes: 2 additions & 0 deletions embassy-rp/src/float/conv.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Rust implementation of floating point conversion.

// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/conv.rs

Expand Down
2 changes: 2 additions & 0 deletions embassy-rp/src/float/div.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Rust implementation of floating point division.

// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/conv.rs

Expand Down
2 changes: 2 additions & 0 deletions embassy-rp/src/float/functions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Rust implementation of floating point functions.

// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/functions.rs

Expand Down
14 changes: 8 additions & 6 deletions embassy-rp/src/float/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Rust implementation of floating point operations.

// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/mod.rs

Expand Down Expand Up @@ -142,9 +144,9 @@ macro_rules! float_impl {
float_impl!(f32, u32, 32, 23);
float_impl!(f64, u64, 64, 52);

mod add_sub;
mod cmp;
mod conv;
mod div;
mod functions;
mod mul;
pub mod add_sub;
pub mod cmp;
pub mod conv;
pub mod div;
pub mod functions;
pub mod mul;
2 changes: 2 additions & 0 deletions embassy-rp/src/float/mul.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Rust implementation of floating point multiplication.

// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/mul.rs

Expand Down
2 changes: 1 addition & 1 deletion embassy-rp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub mod clocks;
pub mod dma;
pub mod flash;
#[cfg(feature = "rp2040")]
mod float;
pub mod float;
pub mod gpio;
pub mod i2c;
pub mod i2c_slave;
Expand Down