258 Commits

Author SHA1 Message Date
clubby789
e1407f80c0 Control RFWKPSEL with ClockMux 2025-07-20 22:05:28 +01:00
Fabian Wolter
5ef796ded0 Refactor 2025-07-17 21:17:27 +02:00
Fabian Wolter
d9f0d80f73 Make remap value a number 2025-07-17 21:17:27 +02:00
Fabian Wolter
c279063c42 STM32F0/F3 Remap DMA channels
Fixes #3643
2025-07-17 21:17:27 +02:00
purepani
08f3b45de6
Adds ADC4 for WBA 2025-06-30 15:37:22 -05:00
melvdl
cbd24bf2ee stm32: fix timer break input 2 trait name in build script 2025-06-27 01:04:47 +02:00
melvdl
3e78f8a108 stm32: generify timer channels 2025-06-26 19:35:19 +02:00
Thomas Giesel
cbf61765f1 Generate pins for new opamp pin naming scheme
The new code implements the corresponding traits for the
common opamp pin naming scheme of all families, which
is VINPx/VINMx.

The same pin must not be used for multiple channels for the
same opamp. For example, if VINM0 and VINM1 of the same opamp
were assigned to the same pin, the channel would not be unique,
meaning that the traits would be implemented in a conflicting
manner.
2025-06-25 08:27:44 +02:00
okhsunrog
21004fce0d always declare eeprom 2025-05-21 02:50:36 +03:00
okhsunrog
e93ae32546 adding eeprom constants to _generated.rs 2025-05-20 21:31:32 +03:00
diondokter
f713f170a1 Merge branch 'main' into configurable-bank-support 2025-05-01 09:44:39 +02:00
Dario Nieuwenhuis
0591d60a79 stm32/otg: calculate TRDT using AHB freq instead of kernel freq. 2025-04-30 18:11:20 +02:00
Dion Dokter
5691c61ef9 Add F4 support 2025-04-29 16:55:11 +02:00
Dion Dokter
7259f20fe2 Add configurable bank support in build script 2025-04-24 11:23:11 +02:00
Dario Nieuwenhuis
7512c5f14e stm32: update metapac, cleanup clocks a bit. 2025-04-18 20:32:15 +02:00
Dario Nieuwenhuis
667400111a
Merge pull request #4089 from IvanLi-CN/g4-opamp
feat(embassy-stm32/opamp): Add some STM32G4 opamp usage
2025-04-18 11:09:00 +00:00
Dion Dokter
04dd1d9e77 Add the ADC5 to the DMA codegen for the STM32g4x3 and g4x4 2025-04-14 14:57:28 +02:00
Ivan Li
bbfebf968e feat(embassy-stm32/opamp): Add some stm32g4 opamp usage
Signed-off-by: Ivan Li <ivanli2048@gmail.com>
2025-04-14 20:42:46 +08:00
Dario Nieuwenhuis
717fbc1cd9
Merge pull request #4016 from antonok-edm/emmc
Support eMMC devices via SDMMC (STM32)
2025-04-06 22:04:18 +00:00
Matt Johnston
6b80f3bada stm32: xspi: rework switching between ncs1 and ncs2 2025-04-04 17:41:53 +08:00
Matt Johnston
36a5b02774 stm32: Update xspi for stm32-metapac changes
This is now closer to the original ospi, using more idiomatic naming.

Some dead code is removed (previously was hidden by [allow(dead_code)]).
2025-04-04 17:41:52 +08:00
Rick Rogers
6d384a1a39 introduce stm32h7rs xspi 2025-04-04 15:36:33 +08:00
Anton Lazarev
b92eb948b5
fix d6->d7 typo from build.rs 2025-03-31 12:47:41 -07:00
Dario Nieuwenhuis
d41eeeae79 Remove Peripheral trait, rename PeripheralRef->Peri. 2025-03-27 15:18:06 +01:00
Dario Nieuwenhuis
f007b53db3 stm32/dac: dedup pin and DMA traits, demacrofify. 2025-03-25 20:49:09 +01:00
Rasmus Melchior Jacobsen
97ed7f085a feat(stm32): Add OTP flash region (again) 2025-03-20 01:58:44 +01:00
elagil
f1db070f78 feat: add optional USB SOF output 2025-03-12 23:18:34 +01:00
Dario Nieuwenhuis
4e3d066251
Merge pull request #3779 from algesten/fix/f107-rcc
Full RCC support for STM32F107
2025-01-24 09:13:45 +00:00
Martin Algesten
c72d9ec859 Review fixes 2025-01-24 09:16:24 +01:00
Dario Nieuwenhuis
195b1a593a
Merge pull request #3792 from adamgreig/stm32-clkmux-unreachable
stm32: Change unreachable panic to explicit error message when access…
2025-01-22 01:22:37 +00:00
Adam Greig
da8612e95b
stm32: Change unreachable panic to explicit error message when accessing clock-muxed peripherals set to invalid clocks 2025-01-22 01:17:20 +00:00
mahu-wm
42817c4259
Fix issue with enabled split-pxy feature
The fixed error message is:
error[E0425]: cannot find value `pin_name` in this scope
2025-01-20 10:55:21 +01:00
Dario Nieuwenhuis
2a06eb2459
Merge pull request #3667 from williams-one/stm32u5-add-hspi-support
STM32U5: add HSPI support
2025-01-07 21:15:54 +00:00
Dario Nieuwenhuis
90cb610ef7
Merge pull request #3716 from elagil/fix_stm32f4_i2s_clocks
Fix STM32F4 I2S clock calculations
2025-01-07 22:06:20 +01:00
William Spinelli
19efea195d stm32u5: Add support for HSPI peripheral 2025-01-07 21:55:08 +01:00
Dario Nieuwenhuis
103bb0dfaa stm32: generate singletons only for pins that actually exist.
Before we'd generate all pins Px0..Px15 for each GPIOx port. This changes
codegen to only generate singletons for actually-existing pins.

(AFs were already previously filtered, so these non-existing pins were already mostly useless)
2025-01-07 20:46:08 +01:00
Dario Nieuwenhuis
7f05c1e439 Update stm32-metapac. 2025-01-06 15:40:05 +01:00
elagil
cf606a161f fix: STM32F4 I2S clock calculations 2025-01-03 22:57:31 +01:00
Olof
7cf96e4730
Merge branch 'embassy-rs:main' into u5_adc 2024-12-18 01:48:25 +01:00
decaday
18020d672d fix: error message for multiple time-driver-xxx cargo features 2024-12-02 16:51:50 +08:00
elagil
62dbdcd45a feat: add SPDIFRX driver 2024-11-18 20:51:22 +01:00
Dario Nieuwenhuis
ecac24a1c7 stm32: Fix build for chips with octospim but not octospi2. 2024-10-21 01:30:21 +02:00
HaoboGu
0222faa8a1
Add octospim support for octospi (#3102)
* feat: add octospim to ospi

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* feat: make octospim behind feature gate

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* refactor: fix fmt issue

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* refactor: fix ci failure

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* feat: add octospim reg writing code

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* feat(octospi): enable rcc for octospim at the initialization

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* fix: add octospim feature gate

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* fix: fix cfg flag

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* fix: fix rcc register on stm32l4 and stm32u5

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* feat(ospi): support OCTOSPI2 in build.rs

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* feat(ospi): add OCTOSPI2 pin impls

Signed-off-by: HaoboGu <haobogu@outlook.com>

* feat(ospi): support both ospi instances in stm32 OCTOSPIM

Signed-off-by: Haobo Gu <haobogu@outlook.com>

---------

Signed-off-by: Haobo Gu <haobogu@outlook.com>
Signed-off-by: HaoboGu <haobogu@outlook.com>
2024-10-13 22:32:22 +02:00
klownfish
60347976b2 Merge remote-tracking branch 'origin/main' into u5_adc 2024-09-24 20:46:04 +02:00
klownfish
3ce40f41fb WIP: add u5 adc4 2024-09-24 19:03:20 +02:00
Kevin
85b7c8957c Add presence check for OTG_HS peripheral on STM32H7R/S series 2024-09-22 01:11:32 +02:00
Romain Goyet
69208daf6d stm32: Fixing stupid typo (thanks @dirbaio) 2024-09-11 01:18:52 +02:00
Romain Goyet
652133bce4 stm32: Support LPTIM v1 and v2 2024-09-11 01:18:52 +02:00
Romain Goyet
a1c9a2e8bd First working draft of a lptim driver
This driver is able to PWM a pin
2024-09-11 01:18:52 +02:00
Alexandros Liarokapis
2b7e76efe9 Fix dma nvic issues on dual core lines
This commit addresses #3256 by disabling dma NVIC interrupt enablement at startup.
Instead, per-channel NVIC interrupt enablement is now done with the rest of the dma channel configuration.
This ensures that each core will only handle the interrupts of the DMA channels that it uses.
2024-08-17 16:54:41 +03:00