mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
more feature flag bitrot in loader
This commit is contained in:
parent
f3517603e9
commit
201decd4ca
2 changed files with 3 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ board-baosec = [
|
||||||
]
|
]
|
||||||
board-baosor = ["cramium-hal/board-baosor"]
|
board-baosor = ["cramium-hal/board-baosor"]
|
||||||
board-dabao = ["cramium-hal/board-dabao"]
|
board-dabao = ["cramium-hal/board-dabao"]
|
||||||
cramium-fpga = ["utralib/cramium-fpga", "debug-print", "cramium-hal"]
|
cramium-fpga = ["utralib/cramium-fpga", "debug-print"]
|
||||||
atsama5d27 = ["utralib/atsama5d27", "armv7", "dep:atsama5d27"]
|
atsama5d27 = ["utralib/atsama5d27", "armv7", "dep:atsama5d27"]
|
||||||
|
|
||||||
# precursor flags
|
# precursor flags
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
use cramium_hal::axp2101::Axp2101;
|
use cramium_hal::axp2101::Axp2101;
|
||||||
#[cfg(not(feature = "verilator-only"))]
|
#[cfg(not(feature = "verilator-only"))]
|
||||||
use cramium_hal::iox::{Iox, IoxDir, IoxEnable, IoxFunction, IoxPort};
|
use cramium_hal::iox::{Iox, IoxDir, IoxEnable, IoxFunction, IoxPort};
|
||||||
|
#[cfg(feature = "cramium-soc")]
|
||||||
use cramium_hal::udma;
|
use cramium_hal::udma;
|
||||||
#[cfg(any(feature = "board-baosec", feature = "board-baosor"))]
|
#[cfg(any(feature = "board-baosec", feature = "board-baosor"))]
|
||||||
use cramium_hal::udma::PeriphId;
|
use cramium_hal::udma::PeriphId;
|
||||||
|
|
@ -1556,6 +1557,7 @@ fn fsfreq_to_hz(fs_freq: u32) -> u32 { (fs_freq * (48_000_000 / 32)) / 1_000_000
|
||||||
fn fsfreq_to_hz_32(fs_freq: u32) -> u32 { (fs_freq * (32_000_000 / 32)) / 1_000_000 }
|
fn fsfreq_to_hz_32(fs_freq: u32) -> u32 { (fs_freq * (32_000_000 / 32)) / 1_000_000 }
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
#[cfg(feature = "cramium-soc")]
|
||||||
/// Used mainly for debug breaks. Not used in every configuration.
|
/// Used mainly for debug breaks. Not used in every configuration.
|
||||||
pub fn getc() -> char {
|
pub fn getc() -> char {
|
||||||
let uart_buf_addr = loader::UART_IFRAM_ADDR;
|
let uart_buf_addr = loader::UART_IFRAM_ADDR;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue