summaryrefslogtreecommitdiff
path: root/examples/stm32f1/Cargo.toml
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-06-06 15:45:03 +0000
committerGitHub <noreply@github.com>2022-06-06 15:45:03 +0000
commit62add4b2ab4eb2ba19d51e119774ffcb258c63fe (patch)
tree453141969e2057cf9331cc085dda8cd0a5c85462 /examples/stm32f1/Cargo.toml
parent34673f52c9c23179f0274726a5aa1877dd554df0 (diff)
parent1bad6a498930991fcdc7454ad38e371d0966087d (diff)
parentfdc6cfed3e813aadffae607a5374e5b358bd9231 (diff)
downloadembassy-62add4b2ab4eb2ba19d51e119774ffcb258c63fe.zip
Merge #792 #794
792: Add example for using a Signal. r=Dirbaio a=hydra I didn't find an example, so I created one for the STM32H7. Code based on the nrf mutex.rs example. 794: Fix F1 compilation by implementig AF pullup r=Dirbaio a=chemicstry Embassy fails to compile on `STM32F103RET6`, because `set_as_af_pull` function is missing for GPIOv1: ``` error[E0599]: no method named `set_as_af_pull` found for mutable reference `&mut CLK` in the current scope --> C:\Users\chemi\.cargo\git\checkouts\embassy-0cff10c9b9902273\46473ae\embassy-stm32\src\sdmmc\mod.rs:1390:21 | 1390 | clk_pin.set_as_af_pull(clk_pin.af_num(), AFType::OutputPushPull, Pull::None); | ^^^^^^^^^^^^^^ method not found in `&mut CLK` ``` GPIOv1 actually supports pullups in AF mode, but only for inputs. The `sdmmc` driver, which was causing compile errors uses pullups for push-pull outputs and this will silently fail. But IMO not adding pullups to sdmmc interface is a hardware design problem, not HAL. Co-authored-by: Dominic Clifton <me@dominicclifton.name> Co-authored-by: chemicstry <chemicstry@gmail.com> Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>