Comments (1)
I was just going to open an issue about this. I have a similar use-case, where I have an ADC which has a dual-SPI-like interface connected to an STM32 SPI in Receive-only-slave mode, plus some unusual DMA configuration.
Previously I was using stm32-rs/stm32h7xx-hal which has fairly comprehensive support for peripheral configuration, but still maybe 10% of my peripherals had some configuration which wasn't supported natively in the HAL. When this situation came up I had a few choices:
- Use the HAL peripheral, but after the HAL configures it change a few values in the registers directly.
- Copy the HAL peripheral implementation into my project and modify it to work as necessary.
- Add support for the feature I needed to upstream, usually after having tested the changes by doing option 1 or 2.
Adding upstream support was preferred but was often way more work, as I'd need to come up with an expansive new general interface for the feature and implement it for all of the supported microcontrollers - not just a specific hack for my specific microcontroller. Often it's not practical for an upstream HAL to support the full breadth of a peripheral's possible configurations, as the implementation and interface would be massive and complex.
Options 1 and 2 would often break when updating the HAL since they relied so much on HAL internals, but they were still very useful and convenient compared to having to create a whole new peripheral from scratch based on just the PAC. embassy-stm32 sealing away its internals makes life more difficult for me.
from embassy.
Related Issues (20)
- Release gpio Pins back to Peripharals HOT 2
- When enabling DNS feature for rp pico W network stack never finish setup HOT 2
- [Feature] STM32 HAL required for `EXTI13` to implement `Into<embassy_stm32::exti::AnyChannel>` HOT 2
- Any plan to support STM32MP1?
- Bug(embassy_stm32): SPI Clock stuck at start and end of transaction for STM32F439ZIT6U HOT 1
- can't create Blocking I2C on STM32 HOT 2
- Re-add stm32 flash otp support?
- wrong reading stride on `uid::uid_hex()` HOT 3
- stm32h7: RNG locks up HOT 4
- stm32f401 Hardfault in i2cv1 write_frame (only with SPI enabled) HOT 1
- STM32H7 Sdmmc not functional
- Signal and !Send types? HOT 1
- `defmt` serial example? HOT 1
- STM32F373 does not have methods for using ADC
- LNK2019: unresolved external symbol HOT 1
- embassy-net does not have feature 'raw'. HOT 2
- Large arena causes memory errors and strange behaviour? HOT 3
- Getting started with nrf 52840 Error: No debug probes were found. HOT 2
- Examples should have a "different chip" checklist HOT 1
- macro expansion broken on latest nightly (2024-06-13)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embassy.