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
1 change: 1 addition & 0 deletions target/ast10x0/board/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ rust_library(
deps = [
"//target/ast10x0/backend/i2c:i2c_backend_ast10x0",
"//target/ast10x0/peripherals",
"@ast1060_pac",
],
)
9 changes: 7 additions & 2 deletions target/ast10x0/board/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ pub mod monitor;
pub mod spim_wiring;

pub use monitor::Ast1060Monitor;
pub use spim_wiring::{apply_spim_wiring, presets, SpimWiring, SpimWiringError};
pub use spim_wiring::{
apply_spim_external_mux, apply_spim_pinctrl, apply_spim_wiring, apply_spim_wiring_with_log,
bmc_spim_csin_levels, bmc_spim_path_debug, enable_flash_power, presets,
release_spi_flash_resets, set_bmc_resets, spim_external_mux_state, BmcSpimPathDebug,
SpimWiring, SpimWiringError,
};

pub use ast10x0_peripherals::i2c::{I2cConfig, I2cError};

Expand Down Expand Up @@ -115,7 +120,7 @@ impl Ast10x0Board {
/// This is a placeholder; production code should use a proper timer or delay provider.
/// Spins for approximately `micros` microseconds.
#[inline]
fn delay_us(micros: u32) {
pub fn delay_us(micros: u32) {
// Very rough approximation: ~16 cycles per microsecond on Cortex-M4 @ ~50MHz
// This is calibration-free but inaccurate; improve for production.
for _ in 0..(micros * 16) {
Expand Down
Loading