From 2d8747605c22d813b3d99084e6e3fe06096564f6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 10 Oct 2024 02:03:37 +0800 Subject: [PATCH] promote visibility of some udma config constants --- libs/cramium-hal/src/udma/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/cramium-hal/src/udma/mod.rs b/libs/cramium-hal/src/udma/mod.rs index 10cda9c77..f43a8e96d 100644 --- a/libs/cramium-hal/src/udma/mod.rs +++ b/libs/cramium-hal/src/udma/mod.rs @@ -340,20 +340,20 @@ impl UdmaGlobalConfig for GlobalConfig { } } // --------------------------------- DMA channel ------------------------------------ -const CFG_EN: u32 = 0b01_0000; // start a transfer +pub(crate) const CFG_EN: u32 = 0b01_0000; // start a transfer #[allow(dead_code)] -const CFG_CONT: u32 = 0b00_0001; // continuous mode +pub(crate) const CFG_CONT: u32 = 0b00_0001; // continuous mode #[allow(dead_code)] -const CFG_SIZE_8: u32 = 0b00_0000; // 8-bit transfer +pub(crate) const CFG_SIZE_8: u32 = 0b00_0000; // 8-bit transfer #[allow(dead_code)] -const CFG_SIZE_16: u32 = 0b00_0010; // 16-bit transfer +pub(crate) const CFG_SIZE_16: u32 = 0b00_0010; // 16-bit transfer #[allow(dead_code)] -const CFG_SIZE_32: u32 = 0b00_0100; // 32-bit transfer +pub(crate) const CFG_SIZE_32: u32 = 0b00_0100; // 32-bit transfer #[allow(dead_code)] -const CFG_CLEAR: u32 = 0b10_0000; // stop and clear all pending transfers +pub(crate) const CFG_CLEAR: u32 = 0b10_0000; // stop and clear all pending transfers #[allow(dead_code)] -const CFG_PENDING: u32 = 0b10_0000; // on read, indicates a transfer pending -const CFG_SHADOW: u32 = 0b10_0000; // indicates a shadow transfer +pub(crate) const CFG_PENDING: u32 = 0b10_0000; // on read, indicates a transfer pending +pub(crate) const CFG_SHADOW: u32 = 0b10_0000; // indicates a shadow transfer #[repr(usize)] pub enum Bank {