diff options
Diffstat (limited to 'tests/stm32/src')
| -rw-r--r-- | tests/stm32/src/bin/cordic.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/stm32/src/bin/cordic.rs b/tests/stm32/src/bin/cordic.rs index 669fd96ab..400e10207 100644 --- a/tests/stm32/src/bin/cordic.rs +++ b/tests/stm32/src/bin/cordic.rs | |||
| @@ -2,11 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | // Test Cordic driver, with Q1.31 format, Sin function, at 24 iterations (aka PRECISION = 6), using DMA transfer | 3 | // Test Cordic driver, with Q1.31 format, Sin function, at 24 iterations (aka PRECISION = 6), using DMA transfer |
| 4 | 4 | ||
| 5 | // Only test on STM32H563ZI, STM32U585AI and STM32U5a5JI. | ||
| 6 | // STM32G491RE is not tested, since it memory.x has less memory size than it actually has, | ||
| 7 | // and the test seems use more memory than memory.x suggest. | ||
| 8 | // see https://github.com/embassy-rs/stm32-data/issues/301#issuecomment-1925412561 | ||
| 9 | |||
| 10 | #![no_std] | 5 | #![no_std] |
| 11 | #![no_main] | 6 | #![no_main] |
| 12 | 7 | ||
| @@ -69,11 +64,11 @@ async fn main(_spawner: Spawner) { | |||
| 69 | )), | 64 | )), |
| 70 | ); | 65 | ); |
| 71 | 66 | ||
| 72 | //#[cfg(feature = "stm32g491re")] | 67 | #[cfg(feature = "stm32g491re")] |
| 73 | //let (mut write_dma, mut read_dma) = (dp.DMA1_CH4, dp.DMA1_CH5); | 68 | let (mut write_dma, mut read_dma) = (dp.DMA1_CH4, dp.DMA1_CH5); |
| 74 | 69 | ||
| 75 | #[cfg(any(feature = "stm32h563zi", feature = "stm32u585ai", feature = "stm32u5a5zj"))] | 70 | #[cfg(any(feature = "stm32h563zi", feature = "stm32u585ai", feature = "stm32u5a5zj"))] |
| 76 | let (mut write_dma, mut read_dma) = (dp.GPDMA1_CH4, dp.GPDMA1_CH5); | 71 | let (mut write_dma, mut read_dma) = (dp.GPDMA1_CH0, dp.GPDMA1_CH1); |
| 77 | 72 | ||
| 78 | // calculate first result using blocking mode | 73 | // calculate first result using blocking mode |
| 79 | let cnt0 = defmt::unwrap!(cordic.blocking_calc_32bit(&input_q1_31[..2], &mut output_q1_31, false, false)); | 74 | let cnt0 = defmt::unwrap!(cordic.blocking_calc_32bit(&input_q1_31[..2], &mut output_q1_31, false, false)); |
