aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/dac/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-1/+1
|
* fix(embassy-stm32): Remove duplicate fn call, vestigial from earlier ↵Francisco José Gómez2025-09-051-2/+0
| | | | | | refcount implementation Refs: #4577
* fix(embassy-stm32): Prevent dropped DacChannel from disabling Dac peripheral ↵Francisco José Gómez2025-09-051-1/+54
| | | | | | if another DacChannel is still in scope Fix #4577 by counting references to DacChannel. Modeled after similar code in the `can` module.
* feat(stm32): Add DAC::new_unbuffered method.Ivan Li2025-05-251-0/+40
| | | | Signed-off-by: Ivan Li <[email protected]>
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-32/+21
|
* stm32/dac: remove DMA generic params.Dario Nieuwenhuis2025-03-251-130/+200
|
* stm32/dac: dedup pin and DMA traits, demacrofify.Dario Nieuwenhuis2025-03-251-107/+109
|
* Merge pull request #3002 from honzasp/rcc-infoDario Nieuwenhuis2024-05-301-8/+8
|\ | | | | | | stm32/rcc: replace generated enable/disable code with runtime info
| * stm32/rcc: replace generated enable/disable code with runtime infoJan Špaček2024-05-251-8/+8
| |
* | stm32: remove pointer-to-pointer-to-registers.Dario Nieuwenhuis2024-05-301-3/+3
|/ | | | | in chiptool pacs the register block struct is already a pointer, so using pointers to it is redundant.
* stm32: update metapac. Adds U5 LPDMA, fixes ADC_COMMONs.Dario Nieuwenhuis2024-04-291-1/+1
|
* stm32: dac: fix new_internal not setting mode as documentedAdam Greig2024-04-291-22/+41
|
* stm32: use private_bounds for sealed traits.Dario Nieuwenhuis2024-03-231-9/+8
|
* stm32/dac: use autogenerated RCC impls.Dario Nieuwenhuis2024-02-011-23/+0
|
* stm32: more docs.Dario Nieuwenhuis2023-12-191-1/+1
|
* stm32: add some docs.Dario Nieuwenhuis2023-12-181-9/+12
|
* stm32: fix dac traitDario Nieuwenhuis2023-11-251-1/+1
|
* STM32 DAC: Rework DAC driver, support all families.Adam Greig2023-11-251-363/+353
|
* STM32 DAC: Disable circular writes with GPDMA as it doesn't yet support ↵Adam Greig2023-11-251-0/+2
| | | | circular transfers
* STM32 DAC: Swap to new TSEL enum entirely in-HALAdam Greig2023-11-251-119/+27
|
* STM32 DAC: Use new Mode enum for setting channel modeAdam Greig2023-11-251-11/+54
|
* rcc: ahb/apb -> hclk/pclkxoviat2023-10-151-1/+1
|
* stm32: avoid creating many tiny critical sections in init.Dario Nieuwenhuis2023-10-121-10/+6
| | | | Saves 292 bytes on stm32f0 bilnky with max optimizations (from 3132 to 2840).
* enable clock firstpbert2023-10-121-4/+4
|
* STM32: combine RccPeripherals reset() and enable() to reset_and_enable()pbert2023-10-121-35/+27
|
* Merge pull request #2018 from jamesmunns/add-derivesDario Nieuwenhuis2023-10-071-1/+1
|\ | | | | | | Add some uncontroversial derives to Error types
| * Add some uncontroversial derives to Error typesJames Munns2023-10-061-1/+1
| |
* | h7: implement RTC and LSE clock configurationMatt Ickstadt2023-10-061-2/+2
|/
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-1/+1
| | | | internal use only. (#1700)
* update feature gates for v3JuliDi2023-07-221-5/+4
|
* Merge remote-tracking branch 'xoviat/update-metapac' into fix-dac-exampleJuliDi2023-07-221-2/+2
|\
| * stm32: add dac fixxoviat2023-07-221-0/+3
| |
* | update DAC triggers to incorporate v3JuliDi2023-07-221-6/+43
| |
* | stm32/dac: set pin mode to analog (ref #334)Adam Greig2023-07-221-4/+8
|/
* hal-common: require DerefMut for peripherals, not just Deref.Dario Nieuwenhuis2023-07-021-2/+2
| | | | | | | | | | | | | | | Otherwise you can create multiple drivers on the same singleton like this: ```rust let mut input = Input::new(&pin, Pull::None); let mut output = Output::new(&pin, Level::Low, Speed::Low); input.is_high(); output.set_high(); input.is_high(); output.set_high(); ``` Thanks @pennae for reporting.
* Update DAC examples, add DAC + DMA exampleJuliDi2023-06-281-1/+1
|
* fix warningsJuliDi2023-06-271-10/+11
|
* feature-gate set_channel_mode, undo dma.rs changesJuliDi2023-06-271-7/+10
|
* feature-gate dma write, make trigger not return a resultJuliDi2023-06-271-2/+5
|
* fix issues when DAC2 present, add additional options to DMA (NOT YET WORKING ↵JuliDi2023-06-261-115/+152
| | | | with STM32H7A3ZI)
* add docs, cleanupJuliDi2023-06-251-167/+155
|
* fix minor issues with splitting channels etcJuliDi2023-06-251-13/+33
|
* first attempt at fixing the 2nd channel problemJuliDi2023-06-241-142/+224
|
* allow independent use of ch1 and ch2 on dacJuliDi2023-06-231-50/+100
|
* update docs and update to new dma interfaceJuliDi2023-06-221-4/+16
|
* remove write_X variantsJuliDi2023-06-191-23/+3
|
* fix typo, minor cleanupJuliDi2023-06-191-6/+7
|
* remove Alignment and make Value and Value array look the sameJuliDi2023-06-191-10/+10
|
* add ValueArray type and respective write functionsJuliDi2023-06-191-84/+126
|
* add half transfer interrupt and circular dmaJuliDi2023-06-181-3/+14
|