Merge pull request #370 from derekdreery/easy_dma_size

Expose EASY_DMA_SIZE.
This commit is contained in:
Dario Nieuwenhuis 2021-08-22 01:30:15 +02:00 committed by GitHub
commit 548593ea41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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"))]