diff options
Diffstat (limited to 'embassy-rp/src/psram.rs')
| -rw-r--r-- | embassy-rp/src/psram.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-rp/src/psram.rs b/embassy-rp/src/psram.rs index ae43dd5aa..22eb1ed25 100644 --- a/embassy-rp/src/psram.rs +++ b/embassy-rp/src/psram.rs | |||
| @@ -251,7 +251,7 @@ impl<'d> Psram<'d> { | |||
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | /// Verify APS6404L PSRAM device matches expected configuration. | 253 | /// Verify APS6404L PSRAM device matches expected configuration. |
| 254 | #[link_section = ".data.ram_func"] | 254 | #[unsafe(link_section = ".data.ram_func")] |
| 255 | #[inline(never)] | 255 | #[inline(never)] |
| 256 | fn verify_aps6404l(qmi: &pac::qmi::Qmi, expected_size: usize) -> Result<(), Error> { | 256 | fn verify_aps6404l(qmi: &pac::qmi::Qmi, expected_size: usize) -> Result<(), Error> { |
| 257 | // APS6404L-specific constants | 257 | // APS6404L-specific constants |
| @@ -306,7 +306,7 @@ impl<'d> Psram<'d> { | |||
| 306 | Ok(()) | 306 | Ok(()) |
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | #[link_section = ".data.ram_func"] | 309 | #[unsafe(link_section = ".data.ram_func")] |
| 310 | #[inline(never)] | 310 | #[inline(never)] |
| 311 | unsafe fn read_aps6404l_kgd_eid(qmi: &pac::qmi::Qmi) -> (u32, u32) { | 311 | unsafe fn read_aps6404l_kgd_eid(qmi: &pac::qmi::Qmi) -> (u32, u32) { |
| 312 | const RESET_ENABLE_CMD: u8 = 0xf5; | 312 | const RESET_ENABLE_CMD: u8 = 0xf5; |
| @@ -435,7 +435,7 @@ impl<'d> Psram<'d> { | |||
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | /// Initialize PSRAM with proper timing. | 437 | /// Initialize PSRAM with proper timing. |
| 438 | #[link_section = ".data.ram_func"] | 438 | #[unsafe(link_section = ".data.ram_func")] |
| 439 | #[inline(never)] | 439 | #[inline(never)] |
| 440 | fn init_psram(qmi: &pac::qmi::Qmi, xip_ctrl: &pac::xip_ctrl::XipCtrl, config: &Config) -> Result<(), Error> { | 440 | fn init_psram(qmi: &pac::qmi::Qmi, xip_ctrl: &pac::xip_ctrl::XipCtrl, config: &Config) -> Result<(), Error> { |
| 441 | // Set PSRAM timing for APS6404 | 441 | // Set PSRAM timing for APS6404 |
| @@ -610,7 +610,7 @@ impl<'d> Psram<'d> { | |||
| 610 | Ok(()) | 610 | Ok(()) |
| 611 | } | 611 | } |
| 612 | 612 | ||
| 613 | #[link_section = ".data.ram_func"] | 613 | #[unsafe(link_section = ".data.ram_func")] |
| 614 | #[inline(never)] | 614 | #[inline(never)] |
| 615 | unsafe fn direct_csr_send_init_command(config: &Config, init_cmd: u8) { | 615 | unsafe fn direct_csr_send_init_command(config: &Config, init_cmd: u8) { |
| 616 | #[cfg(target_arch = "arm")] | 616 | #[cfg(target_arch = "arm")] |
