Skip to content

Commit

Permalink
call correct macro for ns functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nahla-nee committed Nov 23, 2024
1 parent 88b8873 commit 13c62ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rp235x-hal/src/rom_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,39 +668,39 @@ pub mod sys_info_api {
);

#[cfg(all(target_arch = "arm", target_os = "none"))]
declare_get_sys_info_function!(
declare_get_sys_info_ns_function!(
/// Get the unique identifier for the chip
chip_info_ns, ChipInfo, GetSysInfoFlag::ChipInfo
);

#[cfg(all(target_arch = "arm", target_os = "none"))]
declare_get_sys_info_function!(
declare_get_sys_info_ns_function!(
/// Get the value of the OTP critical register
otp_critical_register_ns,
OtpCriticalReg,
GetSysInfoFlag::Critical
);

#[cfg(all(target_arch = "arm", target_os = "none"))]
declare_get_sys_info_function!(
declare_get_sys_info_ns_function!(
/// Get the current running CPU's info
cpu_info_ns, CpuInfo, GetSysInfoFlag::CpuInfo
);

#[cfg(all(target_arch = "arm", target_os = "none"))]
declare_get_sys_info_function!(
declare_get_sys_info_ns_function!(
/// Get flash device info in the format of OTP FLASH_DEVINFO
flash_dev_info_ns, FlashDevInfo, GetSysInfoFlag::FlashDevInfo
);

#[cfg(all(target_arch = "arm", target_os = "none"))]
declare_get_sys_info_function!(
declare_get_sys_info_ns_function!(
/// Get a 128-bit random number generated on each boot
boot_random_ns, BootRandom, GetSysInfoFlag::BootRandom
);

#[cfg(all(target_arch = "arm", target_os = "none"))]
declare_get_sys_info_function!(
declare_get_sys_info_ns_function!(
/// Get diagnostic boot info
boot_info_ns, BootInfo, GetSysInfoFlag::BootInfo
);
Expand Down

0 comments on commit 13c62ca

Please sign in to comment.