Dario Nieuwenhuis
|
1b3c34b923
|
stm32/gpio: fix wrong conf for AF input.
|
2022-02-24 00:37:15 +01:00 |
|
Dario Nieuwenhuis
|
4a75475cfc
|
stm32: remove unused sealed::OptionalPin
|
2022-02-12 01:34:09 +01:00 |
|
Dario Nieuwenhuis
|
b99ab3d5d9
|
stm32: Add standard crate-wide macros for pin/dma traits, switch all drivers to use them.
|
2022-02-10 21:38:03 +01:00 |
|
Dario Nieuwenhuis
|
550da471be
|
stm32: Remove OptionalPin
The idea behind OptionalPin has a few problems:
- you need to impl the signal traits for NoPin which is a bit weird https://github.com/embassy-rs/embassy/blob/master/embassy-stm32/src/dcmi.rs#L413-L416
- you can pass any combination of set/unset pins, which needs checking at runtime https://github.com/embassy-rs/embassy/blob/master/embassy-stm32/src/dcmi.rs#L130
The replacement is to do multiple `new` constructors for each combination of pins you want to take.
|
2022-02-10 02:38:10 +01:00 |
|
Dario Nieuwenhuis
|
8160af6af9
|
stm32: replace peripheral_rcc! macrotable with build.rs
|
2022-02-09 00:58:17 +01:00 |
|
Ulf Lilleengen
|
4032fc0655
|
Support unstable-trait feature for stm32
|
2022-01-26 22:39:06 +01:00 |
|
Dario Nieuwenhuis
|
58fc64722c
|
stm32/gpio: expose all functionality as inherent methods.
|
2022-01-19 17:59:55 +01:00 |
|
Dario Nieuwenhuis
|
52e156b429
|
stm32: use critical_section instead of cortex_m::interrupt
|
2022-01-19 17:59:55 +01:00 |
|
Ulf Lilleengen
|
2bc105803a
|
Make exti an optional feature
* Add embassy-stm32 build with exti
* Add exti to examples
|
2022-01-12 14:28:10 +01:00 |
|
Dario Nieuwenhuis
|
b0fabfab5d
|
Update stm32-data: rcc regs info comes from yamls now.
|
2021-11-29 02:28:02 +01:00 |
|
Tobias Pisani
|
2cbb8a7ece
|
Add AFType::Input for input configurations.
|
2021-10-11 22:57:21 +02:00 |
|
Tobias Pisani
|
c44bed300b
|
Correctly set alternate function for stm32f1 gpios
|
2021-10-11 22:57:21 +02:00 |
|
Tobias Pisani
|
091e7e1f98
|
Generate USART pin definitions for stm32f1
|
2021-10-11 22:57:21 +02:00 |
|
Tobias Pisani
|
39880de958
|
partial alternate function configuration on STM32f1
|
2021-10-11 22:57:10 +02:00 |
|
Mariusz Ryndzionek
|
bce909ec1e
|
Initial STM32F1 family support with two examples for STM32F103C8 (Blue Pill)
|
2021-09-28 18:31:04 +02:00 |
|
Joshua Salzedo
|
ab60cfd64b
|
Patch additional regressions
|
2021-09-27 15:48:56 -07:00 |
|
Joshua Salzedo
|
67e2f9159c
|
set moder::ALTERNATE last when configuring pins to AF modes.
- as per STM32F4xx_hal's impl
|
2021-09-27 15:27:43 -07:00 |
|
Mariusz Ryndzionek
|
e4b37c40c9
|
Code review request - moving OutputType to mod sealed
|
2021-09-24 19:56:48 +02:00 |
|
Mariusz Ryndzionek
|
d371298a27
|
Small adjustment to 'set_as_af' interface
Small adjustment to 'set_as_af' interface - v2
|
2021-09-24 18:39:07 +02:00 |
|
Dario Nieuwenhuis
|
7bfb763e09
|
Rename embassy-extras to embassy-hal-common
|
2021-07-29 13:44:51 +02:00 |
|
Bob McWhirter
|
650f867b1c
|
Add a single-column variant to gpio_rcc! macro table
which includes just the set of registers that need to be
considered.
Then match against those registers with a single `modify(...)`
|
2021-07-23 11:32:20 -04:00 |
|
Bob McWhirter
|
13873df30b
|
Auto-enable all GPIOs during init().
|
2021-07-23 11:32:19 -04:00 |
|
Thales Fragoso
|
c5022b1196
|
stm32: Make sure Output gpio driver is pushpull
|
2021-06-27 13:25:35 -03:00 |
|
Thales Fragoso
|
0eaadfc125
|
stm32: Update gpio examples
|
2021-06-25 18:16:43 -03:00 |
|
Thales Fragoso
|
a3f0aa02a4
|
Separate OpenDrain pin to a new type
|
2021-06-25 17:22:51 -03:00 |
|
Thales Fragoso
|
efb3b3a0a8
|
stm32: Allow for open drain configuration for output pin
|
2021-06-24 20:42:43 -03:00 |
|
Ulf Lilleengen
|
1a9a619033
|
Implement togglable output pin for Output
|
2021-05-31 09:33:33 +02:00 |
|
Dario Nieuwenhuis
|
d8e4421fc6
|
Add stm32-metapac crate, with codegen in rust
|
2021-05-31 02:40:58 +02:00 |
|
Dario Nieuwenhuis
|
105c8504b6
|
Mark Unborrow as unsafe to implement
|
2021-05-19 23:29:33 +02:00 |
|
Dario Nieuwenhuis
|
e63c4bde0b
|
stm32: remove psel_bits
|
2021-05-15 03:07:59 +02:00 |
|
Dario Nieuwenhuis
|
8bb1bc3507
|
Move pin configuration to gpio mod
|
2021-05-15 03:07:59 +02:00 |
|
Bob McWhirter
|
36c16dbef8
|
Continuing to update clocks (unused now) and SPI
|
2021-05-12 10:46:18 -04:00 |
|
Dario Nieuwenhuis
|
f5f98cdeab
|
Autogenerate features for family, peripherals and peripheral versions
|
2021-05-06 03:59:16 +02:00 |
|
Dario Nieuwenhuis
|
23ca2f9174
|
Autogenerate the tailored PAC for each chip
|
2021-05-06 03:43:46 +02:00 |
|
Dario Nieuwenhuis
|
6ba915a308
|
Codegen GPIO pins
|
2021-04-23 23:47:34 +02:00 |
|
Dario Nieuwenhuis
|
170536b073
|
stm32: add exti
|
2021-04-20 02:44:54 +02:00 |
|
Dario Nieuwenhuis
|
258ba533bd
|
Implement GPIO input
|
2021-04-20 02:30:14 +02:00 |
|
Dario Nieuwenhuis
|
aa65d5ccaf
|
it's alive
|
2021-04-20 02:30:13 +02:00 |
|