aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2539 from badrbouslikhin/stm32h7-flash-improvementsDario Nieuwenhuis2024-02-061-2/+6
|\ | | | | | | fix(stm32h7/flash): enhance resilience to program sequence errors (pgserr)
| * fix(stm32h7/flash): enhance resilience to program sequence errors (pgserr) Badr Bouslikhin2024-02-061-2/+6
| |
* | fix(stm32/h7): use correct unit in vco clock checkBadr Bouslikhin2024-02-061-1/+1
|/
* Merge pull request #2529 from GrantM11235/buffered-uart-doc-linksDario Nieuwenhuis2024-02-042-0/+6
|\ | | | | stm32/usart: Add doc links to buffered uarts
| * stm32/usart: Add doc links to buffered uartsGrant Miller2024-02-032-0/+6
| |
* | stm32/rcc: fix more build failures.Dario Nieuwenhuis2024-02-042-1/+5
| |
* | stm32/rcc: fix build for some f0 and l4 chips.Dario Nieuwenhuis2024-02-042-12/+39
|/ | | | Fixes #2531
* correct spelling of the word "receive"Stefan Gehr2024-02-031-1/+1
|
* stm32: autogenerate clocks struct, enable mux for all chips.Dario Nieuwenhuis2024-02-0223-427/+238
|
* Merge pull request #2520 from Ecco/stm32wba-rcc-v3Dario Nieuwenhuis2024-02-021-90/+103
|\ | | | | | | Migrate STM32WBA to RCCv3
| * Migrate STM32WBA to RCCv3Romain Goyet2024-02-021-90/+103
| |
* | stm32/dac: use autogenerated RCC impls.Dario Nieuwenhuis2024-02-011-23/+0
| |
* | Fix ADC max frequency for F2Joonas Javanainen2024-02-011-0/+4
| |
* | Fix F2 temperature sensor ADC channelJoonas Javanainen2024-02-011-1/+1
|/ | | | | On all F2 devices (F205/207/215/217) the sensor is connected to ADC1_IN16, and is not shared with VBAT which is connected to ADC1_IN18.
* STM32WBA's high speed external clock has to run at 32 MHzRomain Goyet2024-02-011-6/+8
|
* Merge pull request #2410 from eZioPan/waveform-on-CHxDario Nieuwenhuis2024-02-013-12/+124
|\ | | | | | | impl waveform with TIM OC Channel DMA
| * bug fixeZio Pan2024-01-081-1/+2
| |
| * refactor with clippyeZio Pan2024-01-063-11/+9
| |
| * impl waveform with TIM ChanneleZio Pan2024-01-062-1/+114
| |
* | stm32/eth: rename new_rmii to new, update metapac to fix issues with PC2_C.Dario Nieuwenhuis2024-02-011-1/+1
| |
* | Implement MII interfaceSimon B. Gasse2024-02-012-23/+120
| | | | | | | | | | | | | | | | - Extend the eth/v2 module to support MII besides RMII. - Replace `Ethernet::new` with `Ethernet::new_mii` and `Ethernet::new_rmii`. - Update ethernet examples. - Add example for MII ethernet.
* | Initial FDCAN driver implementation.Corey Schuhen2024-01-312-15/+706
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original author: Torin Cooper-Bennun <[email protected]> Cleanup and documentaion by: Tomasz bla Fortuna <[email protected]> Corey Schuhen <[email protected]> Use new PAC method now that the names are common. Use broken out definitions that can be shared with bxcan Populate Rx struct with an embassy timestamp. Remove use of RefCell. As per review comment. - THis will probably get squashed down. Fix
* | Add FDCAN clock registers to G4 RCC.Tomasz bla Fortuna2024-01-315-114/+172
| | | | | | | | | | | | | | | | Author: Adam Morgan <[email protected]> Break definitions out of bxcan that can be used innm fdcan. Typo
* | stm32/gpio: remove generics.Dario Nieuwenhuis2024-01-222-115/+71
| |
* | Merge pull request #2416 from andresv/stm32-fix-buffered-uart-flushDario Nieuwenhuis2024-01-201-5/+36
|\ \ | | | | | | | | | stm32: fix buffered uart flush
| * | stm32 uart: fix buffered flush for usart_v1, usart_v2Andres Vahter2024-01-201-1/+6
| | | | | | | | | | | | There is one caveat. For some reason with first send using usart_v1/usart_v2 TC flag appears right after first byte from buffer is written to DR. Consecutive transfers work as expected - TC flag appears when last byte is fully transferred to wire.
| * | stm32 uart: remove unwrapAndres Vahter2024-01-201-2/+4
| | | | | | | | | | | | unwraps take more space because of panics
| * | stm32 uart: fix `flush` for non usart_v4 variantsAndres Vahter2024-01-201-18/+9
| | | | | | | | | | | | | | | Byte was written to TDR and right after that waker was called. This means `flush` would see that `tx_buf` is empty and can return Ready although actually hardware was still writing this last byte to the wire. With this change non `usart_v4 ` variants would also use TC interrupt to check when last byte was sent out.
| * | stm32 uart: do not wake after sending each byteAndres Vahter2024-01-201-3/+6
| | | | | | | | | | | | usart_v4 uses TC interrupt to see if all bytes are sent out from the FIFO and waker is called from this interrupt. This minimises unnecessary wakeups during sending.
| * | stm32: fix buffered uart flushAndres Vahter2024-01-201-0/+30
| | | | | | | | | | | | usart_v4 uses internal FIFO and therefore actually all bytes are not yet sent out although state.tx_buf.is_empty()
* | | Merge pull request #2429 from ↵Dario Nieuwenhuis2024-01-201-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | jr-oss/stm32_simple_pwm_add_set_output_compare_mode stm32/simple_pwm: add set_output_compare_mode
| * | | stm32/simple_pwm: add set_output_compare_modeRalf2024-01-101-0/+5
| | | |
* | | | Merge pull request #2415 from hdoordt/patch-1Dario Nieuwenhuis2024-01-201-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | Make adc::Resolution::to_max_count const
| * | | Make adc::Resolution::to_max_count constHenk Oordt2024-01-081-1/+1
| | |/ | |/|
* | | make usart::State privateHarry Brooke2024-01-191-17/+19
| | |
* | | Merge pull request #2450 from shufps/feat/timer-driver-tim22-tim23Dario Nieuwenhuis2024-01-151-2/+22
|\ \ \ | | | | | | | | adds timer-driver for tim21 and tim22 (on L0)
| * | | fixed trailing white spacesshufps2024-01-151-2/+2
| | | |
| * | | adds timer-driver for tim21 and tim22 (on L0)shufps2024-01-151-2/+22
| | | |
* | | | Suppress "unused" warnings.Dario Nieuwenhuis2024-01-141-5/+6
| | | |
* | | | changes to get usb working on a L1. Adds a usb_serial example tooshufps2024-01-141-0/+6
|/ / /
* | | stm32,nrf: add warning on docs.rs directing the user to docs.embassy.dev.Dario Nieuwenhuis2024-01-111-0/+4
| | |
* | | Included README.md in docsBarnaby Walters2024-01-111-0/+1
| | |
* | | time: split driver into a separate embassy-time-driver crate.Dario Nieuwenhuis2024-01-111-3/+2
| |/ |/|
* | stm32: update metapac.Dario Nieuwenhuis2024-01-102-48/+20
| |
* | Change GPIO inherent methods back to `&self`.Dario Nieuwenhuis2024-01-102-59/+49
| | | | | | | | | | | | | | With the embedded-hal rc3 update I changed them to require `&mut self`, but in retrospect I think `&self` is better, for extra flexibility. This PR reverts the changes from the rc3 update to inherent methods.
* | Update embedded-hal to v1.0Dario Nieuwenhuis2024-01-091-21/+0
|/
* Merge pull request #2405 from Sizurka/stm32g0-usbDario Nieuwenhuis2024-01-061-1/+50
|\ | | | | | | stm32: Add G0 USB RCC and example
| * stm32: Add G0 USB RCCDerek Hageman2024-01-051-1/+50
| | | | | | | | Add configuration for STM32G0 USB clock.
* | stm32/flash: add support for f1.Dario Nieuwenhuis2024-01-058-23/+31
|/
* stm32: update metapac.Dario Nieuwenhuis2024-01-031-3/+3
|