aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/clock.rs
Commit message (Collapse)AuthorAgeFilesLines
* time: replace dyn clock/alarm with a global Driver traitDario Nieuwenhuis2021-08-051-372/+0
|
* Provide a way for a peripheral to query its clock frequencyUlf Lilleengen2021-06-141-1/+3
| | | | | | Currently this looks up the frequency in the global singleton that must be initialized by the per-chip RCC implementation. At present, this is only done for the L0 family of chips.
* Enable timer clock in RCC on timer startUlf Lilleengen2021-06-101-19/+5
| | | | | | | | | * Moves the tim2-specific code into macro which always uses TIM2 * For peripherals without clock specified, attempt to locate enable and reset registers in the RCC block matching the peripheral name. This could be useful for peripherals where deducing the clock name might not be feasible, but it remains to be tested with more chip families to see if it is sufficiently accurate.
* Fix stm32l0 buildUlf Lilleengen2021-06-071-1/+1
|
* Use macrotables from build.rsDario Nieuwenhuis2021-06-071-1/+1
|
* Migrate TIM[2-5] to macro tables.Bob McWhirter2021-06-031-3/+11
|
* Add a way to enable more features of the STM32L0 RCCUlf Lilleengen2021-06-021-1/+0
| | | | | Add ability to enable the hsi48 clock. Code modified from the STM32L0XX hal
* Add stm32-metapac crate, with codegen in rustDario Nieuwenhuis2021-05-311-3/+3
|
* Move clocks to rcc modUlf Lilleengen2021-05-271-24/+14
|
* Assume tim2 in macro and remove clock setup in chip specific rcc initUlf Lilleengen2021-05-261-6/+32
| | | | | Add temporary start_tim2() fn to Clock to assist macro in starting embassy clock
* Enable clock by default for stm32l0Ulf Lilleengen2021-05-261-3/+6
| | | | | | | | | | Modify init function to return a Clock instance defined by a per-chip SystemClock type and use this in macro setup A proof of concept implementation for STM32 L0 chips. This allows using embassy::main macros for STM32 devices that have the clock setup logic.
* STM32 Clock: Use atomic-polyfillThales Fragoso2021-05-231-1/+2
|
* Update stm32-data and rename RTC to ClockThales Fragoso2021-05-231-0/+357