3480 Commits

Author SHA1 Message Date
Iris Artin
440b94aecf
Added STM32 ADCv1 analog watchdog implementation 2025-06-26 21:07:12 -04:00
melvdl
2727fb266f run cargo fmt 2025-06-27 01:28:47 +02:00
melvdl
6f88c2c73c stm32: rename timer channel trait; replace impls via macro with impls generic over timer channels 2025-06-27 01:08:28 +02:00
melvdl
cbd24bf2ee stm32: fix timer break input 2 trait name in build script 2025-06-27 01:04:47 +02:00
melvdl
1623d4e639 stm32: generify timer::one_pulse and timer::qei pin constructors 2025-06-26 22:55:12 +02:00
melvdl
3e78f8a108 stm32: generify timer channels 2025-06-26 19:35:19 +02:00
Gerzain Mata
51675e9bc7 Added STM32WBA6XXX devices as features
Added 2 wba6 features to cargo batch in ci.sh

WIP

Added default RTC rust version for undefined peripherals

Added missing generated RTC peripheral to be handled by rtc/v3.rs

Reordered cfg_attrs in rtc/mod.rs
2025-06-26 04:38:22 -07:00
Thomas Giesel
ef4faffcb5
Merge branch 'main' into generate_all_opamp_pins 2025-06-25 21:10:25 +02:00
Thomas Giesel
ca14f54529 Adapt opamp driver to new opamp IP version numbers 2025-06-25 21:06:39 +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
jake-taf
9cb5c6d001
Fix issues #4333
Allow configs to be used in this macro
2025-06-23 10:30:09 -04:00
Dario Nieuwenhuis
454a5e9044
Merge pull request #4272 from cschuhen/fdcan_refcounter_raii
Fdcan use RAII for reference counting.
2025-06-22 21:37:15 +00:00
Dario Nieuwenhuis
bf3170ed38
Merge pull request #4294 from AlanRosenthal/rtc_c0
Add RTC example for STM32C0
2025-06-22 21:22:10 +00:00
Dario Nieuwenhuis
699626ced7
Merge pull request #4324 from plorefice/hsem-fixes
embassy-stm32: fix HSEM initialization and core detection
2025-06-22 21:08:38 +00:00
Dario Nieuwenhuis
c9709cf19d
Merge pull request #4311 from antonok-edm/sdmmc-set-datatime-during-init
[sdmmc] Set `datatime` during initialization
2025-06-22 21:04:22 +00:00
Corey Schuhen
8b280688e1 FDCAN/BXCAN: Finish implementation of RAII instance counters.
- Use DeRef in all types
    - Change Name of internal_operation and its enum
    - move into Info to avoid macro code dup
2025-06-21 12:31:56 +10:00
Tobias Naumann
e75b344089 Add TxGuard and RxGuard which impl RAII for the STM32 CAN reference counting 2025-06-21 12:29:36 +10:00
Corey Schuhen
b2dcdad51d BXCAN: Put State inside a critical section mutex of RefCell. This removed unsound code that was giving out mut& to State
This change is equiverlent to f5658d6833cb140296a0b6f25b7eb6d16f06c520
that was already done for the FDCAN driver.
2025-06-21 11:58:53 +10:00
Pietro Lorefice
59228e2ab4 stm32: hsem: fix broken CPUID detection 2025-06-20 10:47:37 +02:00
Pietro Lorefice
be5b62bdd4 stm32: hsem: add missing RCC initialization 2025-06-20 10:46:33 +02:00
Frank Stevenson
d750a8b6b9 Make more accurate table based MSI frequency calculation based on datasheet. 2025-06-17 15:46:32 +02:00
Frank Stevenson
7fe4547ecb U5: Apply auto-calibration on MSIK and calculate frequencies for detuned LSE input 2025-06-17 14:27:37 +02:00
Anton Lazarev
e155d17328
sdmmc: set datatime during initialization 2025-06-16 17:55:29 -07:00
Annie Ehler
4301016f15 Move the methods to the cfg gated impls to handle register renaming. 2025-06-12 04:11:49 +00:00
Annie Ehler
f226624204
Add extra methods for the low-power interrupt timer. 2025-06-11 19:37:37 -07:00
Jakob
09967b71f5 Also update the AdvancedInstace4Channel version 2025-06-11 11:48:39 +02:00
Jakob
66296f673b Enable autoreload_preload for complementary PWM 2025-06-11 11:34:37 +02:00
Jakob
0ee77f50aa Add separate case for center aligned mode 2025-06-11 09:24:00 +02:00
Jakob
56d76aeb7b Remove incorrect addition of 1 to get_max_duty 2025-06-11 09:08:55 +02:00
Alan Rosenthal
5534a36507 Add RTC example for STM32C0
Tested on STM32C0116F6

Requries: https://github.com/embassy-rs/stm32-data/pull/617
2025-06-10 18:46:41 -04:00
jrmoulton
fb71139522
fix name change 2025-06-10 15:53:06 -06:00
jrmoulton
3b2dd2bad8
fmt 2025-06-10 15:53:02 -06:00
jrmoulton
cfad9798ff
merge new embassy changes 2025-06-10 15:48:36 -06:00
David Lawrence
c10688cd40 Add public function to get current clock configuration 2025-06-06 13:05:35 -04:00
Benjamin
adb728009c adjusted for u0 as well 2025-06-03 21:10:19 +02:00
Benjamin
a912a3798d Fixed variations in register access for different families 2025-06-03 21:04:41 +02:00
Benjamin
94080b38a5 Added Option to enable HW Oversampling in STM32 V3 ADCs. Copied from adc/v4.rs and adjusted to reflect 2 to 256x oversampling + adjusted bit shifting operations 2025-06-03 20:29:06 +02:00
Dario Nieuwenhuis
141c170db4
Merge pull request #4277 from diondokter/fix-usb-race
STM32 USB: Read data before register update
2025-06-03 14:14:45 +00:00
Dion Dokter
9b3b6c5421 STM32 USB: Read data before register update 2025-06-03 16:08:55 +02:00
Frank Stevenson
011d7832f8 Use modify() for subsequent changes to RCC.cr() 2025-06-03 15:47:33 +02:00
Dario Nieuwenhuis
c637ee7d79
Merge pull request #4271 from cschuhen/fdcan_critical_section
Use a critical section mutex in CAN Fdcan driver.
2025-06-01 12:37:12 +00:00
Dario Nieuwenhuis
f3983328e0
Merge pull request #4231 from ROMemories/feat/stm32-rcc-const-constructors
feat(stm32): provide a `const` constructor on `rcc::Config`
2025-06-01 12:19:39 +00:00
Dario Nieuwenhuis
fc4139146f
Merge pull request #4251 from kpfleming/improve-stm32-ringbuffereduart-docs
stm32: Expand documentation of RingBufferedUartRx.
2025-06-01 12:15:19 +00:00
Corey Schuhen
010744802f Remove duplicate calc_timestamp and move to 'Registers' struct. 2025-05-31 09:09:12 +10:00
Corey Schuhen
f5658d6833 Put State inside a critical section mutex of RefCell. This removes the unsound code that was giving out mut&. to State 2025-05-31 08:20:03 +10:00
Corey Schuhen
eba9ddc805 Switch to SendDynamicSender for FDCAN. 2025-05-31 08:20:03 +10:00
Dario Nieuwenhuis
9b8d6d6f22
Merge pull request #4267 from melvdlin/stm32-qspi-from
convert embassy-stm32::qspi::enums `Into` impls into equivalant `From` impls
2025-05-30 11:15:54 +00:00
melvdl
86efdc9cc3 convert embassy-stm32::qspi::enums Into impls into equivalant From impls 2025-05-30 00:30:27 +02:00
Willdew
3d617007a2 fixed n in set_sq to be indexed correctly 2025-05-29 23:06:01 +02:00
Dario Nieuwenhuis
645883d874
Merge pull request #4223 from embedded-rust-iml/feature/drop-impl-for-stm32-fdcan
Cleanup Pins and RCC for FDCAN on STM32
2025-05-27 17:44:11 +00:00