Merge pull request #370 from derekdreery/easy_dma_size
Expose EASY_DMA_SIZE.
This commit is contained in:
commit
548593ea41
@ -1,5 +1,6 @@
|
|||||||
pub use nrf52805_pac as pac;
|
pub use nrf52805_pac as pac;
|
||||||
|
|
||||||
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
pub const EASY_DMA_SIZE: usize = (1 << 14) - 1;
|
pub const EASY_DMA_SIZE: usize = (1 << 14) - 1;
|
||||||
pub const FORCE_COPY_BUFFER_SIZE: usize = 256;
|
pub const FORCE_COPY_BUFFER_SIZE: usize = 256;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
pub use nrf52810_pac as pac;
|
pub use nrf52810_pac as pac;
|
||||||
|
|
||||||
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
pub const EASY_DMA_SIZE: usize = (1 << 10) - 1;
|
pub const EASY_DMA_SIZE: usize = (1 << 10) - 1;
|
||||||
pub const FORCE_COPY_BUFFER_SIZE: usize = 256;
|
pub const FORCE_COPY_BUFFER_SIZE: usize = 256;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
pub use nrf52811_pac as pac;
|
pub use nrf52811_pac as pac;
|
||||||
|
|
||||||
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
pub const EASY_DMA_SIZE: usize = (1 << 14) - 1;
|
pub const EASY_DMA_SIZE: usize = (1 << 14) - 1;
|
||||||
pub const FORCE_COPY_BUFFER_SIZE: usize = 256;
|
pub const FORCE_COPY_BUFFER_SIZE: usize = 256;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
pub use nrf52820_pac as pac;
|
pub use nrf52820_pac as pac;
|
||||||
|
|
||||||
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
pub const EASY_DMA_SIZE: usize = (1 << 15) - 1;
|
pub const EASY_DMA_SIZE: usize = (1 << 15) - 1;
|
||||||
pub const FORCE_COPY_BUFFER_SIZE: usize = 512;
|
pub const FORCE_COPY_BUFFER_SIZE: usize = 512;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
pub use nrf52832_pac as pac;
|
pub use nrf52832_pac as pac;
|
||||||
|
|
||||||
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
pub const EASY_DMA_SIZE: usize = (1 << 8) - 1;
|
pub const EASY_DMA_SIZE: usize = (1 << 8) - 1;
|
||||||
pub const FORCE_COPY_BUFFER_SIZE: usize = 255;
|
pub const FORCE_COPY_BUFFER_SIZE: usize = 255;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
pub use nrf52833_pac as pac;
|
pub use nrf52833_pac as pac;
|
||||||
|
|
||||||
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
pub const EASY_DMA_SIZE: usize = (1 << 16) - 1;
|
pub const EASY_DMA_SIZE: usize = (1 << 16) - 1;
|
||||||
pub const FORCE_COPY_BUFFER_SIZE: usize = 512;
|
pub const FORCE_COPY_BUFFER_SIZE: usize = 512;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
pub use nrf52840_pac as pac;
|
pub use nrf52840_pac as pac;
|
||||||
|
|
||||||
|
/// The maximum buffer size that the EasyDMA can send/recv in one operation.
|
||||||
pub const EASY_DMA_SIZE: usize = (1 << 16) - 1;
|
pub const EASY_DMA_SIZE: usize = (1 << 16) - 1;
|
||||||
pub const FORCE_COPY_BUFFER_SIZE: usize = 512;
|
pub const FORCE_COPY_BUFFER_SIZE: usize = 512;
|
||||||
|
|
||||||
|
@ -67,6 +67,8 @@ mod chip;
|
|||||||
#[path = "chips/nrf52840.rs"]
|
#[path = "chips/nrf52840.rs"]
|
||||||
mod chip;
|
mod chip;
|
||||||
|
|
||||||
|
pub use chip::EASY_DMA_SIZE;
|
||||||
|
|
||||||
#[cfg(feature = "unstable-pac")]
|
#[cfg(feature = "unstable-pac")]
|
||||||
pub use chip::pac;
|
pub use chip::pac;
|
||||||
#[cfg(not(feature = "unstable-pac"))]
|
#[cfg(not(feature = "unstable-pac"))]
|
||||||
|
Loading…
Reference in New Issue
Block a user