From dc7bc1272a765bdc8bea239b59015f8104f16edf Mon Sep 17 00:00:00 2001 From: JackN Date: Wed, 11 Oct 2023 15:59:10 -0400 Subject: [PATCH] Add OCTOSPIM and OCTOSPI to `perimap` --- stm32-data-gen/src/chips.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 7d09ea5..a2770ff 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -468,6 +468,36 @@ impl PeriMatcher { ("STM32L5.*:TAMP:.*", ("tamp", "l5", "TAMP")), ("STM32U5.*:TAMP:.*", ("tamp", "u5", "TAMP")), ("STM32WL.*:TAMP:.*", ("tamp", "wl", "TAMP")), + ( + "STM32L4R[59].*:OCTOSPIM:OCTOSPIM:octospi_v1_0.*", + ("octospim", "v1", "OCTOSPIM"), + ), + ( + "STM32U5.*:OCTOSPIM:OCTOSPIM:octospi1_v3_0.*", + ("octospim", "v2", "OCTOSPIM"), + ), + (".*:OCTOSPIM:.*", ("octospim", "v2", "OCTOSPIM")), //Next chips releasing OCTOSPIM will default to v2. + ( + "STM32L4.*:OCTOSPI[12]:OCTOSPI:octospi_v1_0.*", + ("octospi", "v1", "OCTOSPI"), + ), + ( + "STM32H7.*:OCTOSPI[12]:OCTOSPI:octospi_v2_1H7AB.*", + ("octospi", "v2", "OCTOSPI"), + ), + ( + "STM32L5.*:OCTOSPI[12]:OCTOSPI:octospi_v1_0L5.*", + ("octospi", "v3", "OCTOSPI"), // Slightly different field sizes from v2. + ), + ( + "STM32U5.*:OCTOSPI[12]:OCTOSPI:octospi1_v3_0.*", + ("octospi", "v4", "OCTOSPI"), // Introduces enum values into SVD. + ), + ( + "STM32H5.*:OCTOSPI:OCTOSPI:octospi1_v5_1.*", + ("octospi", "v4", "OCTOSPI"), // No register changes from `octospi1_v3_0_Cube` definition (our v4) + ), + (".*:OCTOSPI[12]:.*", ("octospi", "v4", "OCTOSPI")), // Next chips releasing OCTOSPI will default to v4. ]; Self {