Gerzain Mata
d9cd93ca22
Added RTC low-power support for STM32WBA65
...
Also added low-power feature for STM32WBA65RI build
2025-07-18 14:25:15 -07: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
Adam Morgan
0bbde1f659
Add support for rtc_v3h7rs
2025-05-21 12:40:10 +02:00
Dario Nieuwenhuis
d41eeeae79
Remove Peripheral trait, rename PeripheralRef->Peri.
2025-03-27 15:18:06 +01:00
Dario Nieuwenhuis
897d42e012
Merge pull request #3880 from nikvoid/stm32-rtc-subsecond
...
STM32: RTC subsecond support
2025-02-16 23:22:50 +00:00
nikvoid
610804f138
stm32: read microsecond from RTC
2025-02-13 15:15:47 +02:00
Georges Palauqui
da0f6dbe08
derive defmt::Format on pub struct/enum of stm32::rtc
2025-01-24 11:58:33 +01:00
Christian Enderle
a49289ce7b
low-power: add basic support for stm32u0
2024-11-22 10:37:12 +01:00
Christian Enderle
926ae1a1d5
low-power: add support for stm32u5
2024-11-03 10:56:40 +01:00
Dion Dokter
203297b569
Make clocks repr C.
...
Add shared data.
Modify freq functions to use shared data.
Modify examples to use new init/
2024-07-08 16:54:06 +02:00
Dario Nieuwenhuis
39c5a6c3f7
Merge pull request #3002 from honzasp/rcc-info
...
stm32/rcc: replace generated enable/disable code with runtime info
2024-05-30 11:50:40 +00:00
Dario Nieuwenhuis
2c691baadd
stm32/rtc: move lowpower stuff to a separate mod.
2024-05-30 13:26:14 +02:00
Dario Nieuwenhuis
c46172acac
stm32: remove pointer-to-pointer-to-registers.
...
in chiptool pacs the register block struct is already a pointer, so
using pointers to it is redundant.
2024-05-30 13:07:18 +02:00
Jan Špaček
081afca3f0
stm32/rcc: replace generated enable/disable code with runtime info
2024-05-25 18:44:55 +02:00
eZio Pan
d9e59e8e42
low power for h5
2024-04-28 00:33:02 +08:00
Dario Nieuwenhuis
2bca875b5f
stm32: use private_bounds for sealed traits.
2024-03-23 01:38:51 +01:00
Ben V. Brown
26c0e5d439
Extend RTC low power mode for STM32G0
2024-01-02 16:15:11 +11:00
Christian Enderle
30023c3bcc
Add low-power support for stm32l5
2023-12-26 11:58:38 +01:00
Scott Mabin
487a6324ef
stm32: make time provider public again
2023-12-23 00:14:10 +00:00
dragonn
871ed538b1
fix stm32 rtc year from 1970 base 2000
2023-12-19 21:17:42 +01:00
Dario Nieuwenhuis
49534cd405
stm32: more docs.
2023-12-19 00:10:36 +01:00
Dario Nieuwenhuis
124478c5e9
stm32: more docs.
2023-12-18 19:11:23 +01:00
xoviat
05a4bb3a4a
rustfmt
2023-11-08 19:06:29 -06:00
xoviat
4b4c28d875
stm32: add low power for g4
2023-11-08 19:04:20 -06:00
xoviat
3f2abd4fd5
Merge branch 'main' of github.com:embassy-rs/embassy into low-power
2023-11-04 13:51:11 -05:00
xoviat
dc467e89a0
stm32: compute stop mode and workaround rtt test bug
2023-11-04 13:49:54 -05:00
xoviat
bab61f9665
stm32/rtc: misc. cleanup and move to bps by default
2023-11-01 17:17:14 -05:00
xoviat
b6fc682117
Merge pull request #2117 from xoviat/rtc-3
...
stm32/rtc: more rtc cleanup
2023-10-26 00:55:32 +00:00
xoviat
0beb84768e
stm32/rtc: more rtc cleanup
2023-10-25 19:50:30 -05:00
xoviat
e8a3cfaed6
stm32/low-power: refactor refcount
2023-10-25 19:07:31 -05:00
xoviat
df4aa0fe25
stm32: fix low-power test
2023-10-23 16:26:34 -05:00
pbert
ecdd7c0e2f
enable clock first
2023-10-12 11:04:44 +02:00
pbert
f65a96c541
STM32: combine RccPeripherals reset() and enable() to reset_and_enable()
2023-10-12 11:04:19 +02:00
Dario Nieuwenhuis
b91d1eaca0
stm32/rcc: add LSE/LSI to all chips, add RTC to more chips.
2023-10-11 04:12:38 +02:00
Matt Ickstadt
f01609036f
h7: implement RTC and LSE clock configuration
2023-10-06 13:28:30 -05:00
xoviat
96edbd84fb
rtc: use enable on known working chips only
2023-09-25 16:38:30 -05:00
xoviat
04b09a2acb
stm32/rtc: use rccperi enable
2023-09-25 16:26:29 -05:00
Christian Enderle
ad64d7b20b
fix low-power: APB1 needed for LSE
2023-09-21 17:17:58 +02:00
xoviat
feaeee1e83
stm32: misc. cleanup
2023-09-17 18:47:22 -05:00
Scott Mabin
087ef918bf
stm32: Add RtcTimeProvider struct to Rtc module
...
This struct allows users to acquire the current time without putting `Rtc`
in a mutex and passing that around. This is allowed because reading from the
rtc registers is atomic.
2023-09-17 18:04:05 +01:00
Dario Nieuwenhuis
8315cf064e
stm32: add stm32wba support.
2023-09-16 04:04:45 +02:00
xoviat
6da75ea285
stm32: rtc/low-power cleanup
2023-09-15 18:41:33 -05:00
xoviat
11a78fb1e4
rcc: more cleanup
2023-09-08 18:20:58 -05:00
xoviat
21681d8b4e
rustfmt
2023-08-29 19:44:43 -05:00
xoviat
989c98f316
stm32/rtc: autocompute prescalers
2023-08-29 19:41:03 -05:00
xoviat
2c80784fe6
stm32/rtc: feature-gate instant
2023-08-27 21:26:29 -05:00
xoviat
538001a4bc
stm32/rtc: fix psc div
2023-08-27 21:24:16 -05:00
xoviat
e981cd4968
stm32: fix rtc wakeup timing and add dbg
2023-08-27 21:15:57 -05:00
xoviat
9f928010a8
stm32/rtc: use psc to compute instants
2023-08-27 16:06:33 -05:00
xoviat
fb942e6675
stm32: re-export rtcclocksource
2023-08-27 09:25:14 -05:00