stm32cubeprogrammer_sys/
lib.rs1#![allow(
5 non_snake_case,
6 non_camel_case_types,
7 non_upper_case_globals,
8 unused,
9 clippy::all
10)]
11
12#[cfg(windows)]
13include!("bindings_windows.rs");
14
15#[cfg(unix)]
16include!("bindings_linux.rs");
17
18pub use libloading;
20
21pub const FLASH_BASE_ADDRESS: u32 = 0x08000000;
23
24pub const SRAM_BASE_ADDRESS: u32 = 0x20000000;
26
27pub const SRAM2A_BASE_ADDRESS_STM32WB5X: u32 = 0x20030000;
29
30pub const SRAM2A_BASE_ADDRESS_STM32WB1X: u32 = 0x20003000;
32
33#[cfg(windows)]
34pub const PATH_API_LIBRARY_RELATIVE: &str = "api/lib/CubeProgrammer_API.dll";
35
36#[cfg(unix)]
37pub const PATH_API_LIBRARY_RELATIVE: &str = "lib/libCubeProgrammer_API.so";
38
39#[cfg(windows)]
40pub const PATH_LOADER_DIR_RELATIVE: &str = "bin";
41
42#[cfg(unix)]
43pub const PATH_LOADER_DIR_RELATIVE: &str = "bin";