summaryrefslogtreecommitdiff
path: root/stm32-metapac-gen
AgeCommit message (Collapse)Author
2021-11-02Adjust for STM32U5.Bob McWhirter
2021-10-22Workaround duplicity of DMA channel declaration when the target chip ↵Matous Hybl
specifies more than one request, by processing only the first declared request for the channel.
2021-09-21Support for STM32L1Ulf Lilleengen
* Add RCC * Fix more issues with dash in chip names * Update stm32-data version * Add blinky and spi example
2021-09-15Ensure linear strideUlf Lilleengen
2021-09-15Calculate port number based on address and strideUlf Lilleengen
This allows out of order letter to port mapping
2021-09-15Add support for chip definitions with a dashUlf Lilleengen
2021-09-11Update lots of depsDario Nieuwenhuis
2021-08-20Add support for STM32G0Ben Gamari
2021-08-19stm32/metapac: check GPIO RCC regs are always found.Dario Nieuwenhuis
2021-08-19stm32-metapac: assume RCC is always presentDario Nieuwenhuis
2021-08-17Add per-core EXTI supportUlf Lilleengen
* Generate a core index put into the PAC for the peripherals to use as index into registers. * Add EXTI v2 which uses CORE_INDEX to index exti registers
2021-08-04Remove broken panic messageTimo Kröger
2021-08-04cargo fmtTimo Kröger
2021-08-04Refactor bit search logic when no clock specifiedTimo Kröger
Always search for a enable bit, even when no clock is specified in the yaml. Try to derive the clock name from the register name. This change picked up USART2 for stm32wle which was missing the clock.
2021-08-04Refactor `find_reg_for_field()`Timo Kröger
2021-08-03Use a regex to match find enable and rst regsTimo Kröger
2021-08-03Ignore the clock number for enable bit searchTimo Kröger
The number has different meanings depending on family: stm32f0: RCC_APB2ENR - APB peripheral clock enable register 2 CLOCK: APB1 stm32f4: RCC_APB2ENR - RCC APB2 peripheral clock enable register CLOCK: APB2 Ignore the clock number and search all registers for a matching enable bit.
2021-08-03BTreeMaps to preserve ordering of generated codeTimo Kröger
Makes diffing of changes easier
2021-08-02Use an em bikeshed instead of an underscore bikeshed.Bob McWhirter
2021-08-02Put the implicit memory.x behind a `memory_x` feature on embassy-stm32.Bob McWhirter
2021-08-02Fallback to total RAM or FLASH size if otherwise not present.Bob McWhirter
2021-08-02Emit a default memory.x alongside device.x from metapac.Bob McWhirter
2021-07-29Get rid of some warningsThales Fragoso
2021-07-29Update chiptoolDario Nieuwenhuis
2021-07-27Generate more rows in the interrupts! table.Bob McWhirter
Adjust DMA/BDMA to use the new style.
2021-07-23Add a single-column variant to gpio_rcc! macro tableBob McWhirter
which includes just the set of registers that need to be considered. Then match against those registers with a single `modify(...)`
2021-07-23Auto-enable all GPIOs during init().Bob McWhirter
2021-07-22Add a `Dbgmcu` struct capable of enabling all relevant DBGMCU.cr fields.Bob McWhirter
Includes the addition of a `dbgmcu!(...)` macro table which currently takes the form of (cr, $fn_name:ident) where `$fn_name` is something like `set_dbgsleep_d1` etc. The method is unsafe, since it's performing unsafe PAC operations. Two examples modified to demonstrate its usage.
2021-07-17stm32/dma: update codegen+macrotables for new stm32-dataDario Nieuwenhuis
2021-07-17stm32/dma: Fix macrotable column count not matching in DMAMUX-less BDMAv1.Dario Nieuwenhuis
2021-07-16Prep for new stm32-data with dmamux differentiation, but not yet using.Bob McWhirter
2021-07-16Be able to scrub out BDMA-centric IRQs.Bob McWhirter
Further refine distinction between DMA and BDMA interrupts in the table.
2021-07-15stm32: Allow for RccPeripheral without reset fieldThales Fragoso
This fix build on F0, since it doesn't have DMARST. This change makes RccPeripheral::reset a no-op on peripherals where a reset field couldn't be found
2021-07-13Remove some unused traits.Bob McWhirter
Move some fns to associated consts.
2021-07-13Let's count channels per DMA peripheral, shall we now?Bob McWhirter
2021-07-13Adjust to DMA1EN in the rcc for l0.Bob McWhirter
2021-07-13Undo special-casing FOO1 -> FOO in RCC searching.Bob McWhirter
2021-07-13Adapt for DMAEN for DMA1 if DMA1EN is not found (for all peripherals FOO1) ↵Bob McWhirter
for EN/RST rcc table.
2021-07-13Twizzle our DMA vs BDMA channels.Bob McWhirter
2021-07-13Mix dmamux into bdma_v1.Bob McWhirter
2021-07-13Fix "can't find crate for std" for stm32-metapac-gen deps.Dario Nieuwenhuis