Commit Graph

1172 Commits

Author SHA1 Message Date
Thales Fragoso
e7714983b3 f4-rcc: Add option to enable debug_wfe and add hello example 2021-07-29 18:43:15 -03:00
Thales Fragoso
5abaf8e9d6 Start working on the F4 PLL 2021-07-29 18:43:13 -03:00
Dario Nieuwenhuis
1ed65cb9e0
Merge pull request #328 from embassy-rs/remove_peripehral_shared
Remove embassy_hal_common::peripheral_shared
2021-07-29 17:22:25 +02:00
Dario Nieuwenhuis
e13774574f Remove embassy_hal_common::peripheral_shared 2021-07-29 14:10:17 +02:00
Dario Nieuwenhuis
01e0a3928f
Merge pull request #326 from embassy-rs/extras-rename
Rename embassy-extras to embassy-hal-common
2021-07-29 13:53:03 +02:00
Dario Nieuwenhuis
1457ade49b
Merge pull request #325 from embassy-rs/update-chiptool
Update chiptool
2021-07-29 13:47:37 +02:00
Dario Nieuwenhuis
7bfb763e09 Rename embassy-extras to embassy-hal-common 2021-07-29 13:44:51 +02:00
Dario Nieuwenhuis
8d76c582f5 Update chiptool 2021-07-29 13:39:19 +02:00
Dario Nieuwenhuis
c8a48d726a
Merge pull request #277 from Liamolucko/fix-peripheral-ub
extras: Fix UB in `Peripheral`
2021-07-29 13:08:30 +02:00
Liam Murphy
cd1a3fcff3 Don't bother supporting creating a PeripheralMutex in an exception handler 2021-07-29 15:19:57 +10:00
Liam Murphy
d5ba35424d Replace PeripheralStateUnchecked with register_interrupt_unchecked 2021-07-29 15:11:26 +10:00
Bob McWhirter
61340d8c65
Merge pull request #320 from bobmcwhirter/data-update-28jul
Align with -data HEAD.
2021-07-28 15:45:29 -04:00
Bob McWhirter
d3d74fecdb Align with -data HEAD. 2021-07-28 15:21:39 -04:00
Bob McWhirter
6e4f4b63a8
Merge pull request #317 from bobmcwhirter/peri_irq
Peri irq
2021-07-28 15:16:51 -04:00
Bob McWhirter
d8c6ffe3a2 Revert "Optimize CI"
This reverts commit fe58e9541d.
2021-07-28 09:24:45 -04:00
Bob McWhirter
abe13e6b18 Trivial to trigger checks from CI. 2021-07-28 09:09:19 -04:00
Liam Murphy
4d9514cbcb Don't allow disabling interrupts wrapped by PeripheralMutex 2021-07-28 21:39:31 +10:00
Liam Murphy
68c93256bc fix: interrupts with equal priority can't preempt each other 2021-07-28 21:31:31 +10:00
Dario Nieuwenhuis
126407f8c8
Merge pull request #319 from timokroeger/stm32f4-embassymain
Use `embassy::main` macro for stm32f4 examples
2021-07-28 10:34:46 +02:00
Bob McWhirter
ee755a729f Update to new stm32-data with better multicore NVIC parsing. 2021-07-27 13:49:14 -04:00
Bob McWhirter
8759213fcc Use new interrupt! table format to /enable/ the IRQs also. 2021-07-27 13:23:33 -04:00
Bob McWhirter
b910551c9a Generate more rows in the interrupts! table.
Adjust DMA/BDMA to use the new style.
2021-07-27 12:52:01 -04:00
Bob McWhirter
9fec792a6a Update data to include peripheral IRQs. 2021-07-27 12:39:34 -04:00
Timo Kröger
dd1ec8ebec Use embassy::main macro for stm32f4 examples 2021-07-27 15:03:18 +02:00
Liam Murphy
a6fea3cb28 Fix #[cfg]s in exception_to_system_handler 2021-07-27 17:40:13 +10:00
Liam Murphy
e57ca5f7db Remove critical-section dependency 2021-07-27 17:30:10 +10:00
Liam Murphy
079526559f Remove critical sections from PeripheralMutex interrupt handler by checking the interrupt's priority on startup.
Since `PeripheralMutex` is the only way to safely maintain state across interrupts, and it no longer allows setting the interrupt's priority, the priority changing isn't a concern.

This also prevents other causes of UB due to the interrupt being exposed during `with`, and allowing enabling the interrupt and setting its context to a bogus pointer.
2021-07-27 17:28:52 +10:00
Thales
d83cd3fffd
Merge pull request #315 from embassy-rs/ci-fixes
Optimize CI
2021-07-26 19:24:54 -03:00
Bob McWhirter
754b5ebefc
Merge pull request #316 from bobmcwhirter/update-stm32data
PR to test change to stm32-data.
2021-07-26 16:18:06 -04:00
Bob McWhirter
1a3fd765ad Update stm32-data. 2021-07-26 16:12:41 -04:00
Dario Nieuwenhuis
fe58e9541d Optimize CI 2021-07-24 15:29:31 +02:00
Dario Nieuwenhuis
495d977b03
Merge pull request #314 from embassy-rs/example-cleanup-l4
stm32/examples: cleanup L4
2021-07-24 14:03:42 +02:00
Dario Nieuwenhuis
5b0ae5c25b stm32/examples: cleanup L4 2021-07-24 13:57:11 +02:00
Dario Nieuwenhuis
4899168534
Merge pull request #312 from timokroeger/en-exti-clock
Enable SYSCFG clock in `exti::init()`
2021-07-24 11:18:46 +02:00
Timo Kröger
06fb2a7a80 Enable SYSCFG clock in exti::init() 2021-07-24 11:13:49 +02:00
Dario Nieuwenhuis
ad7a1f1453
Merge pull request #309 from timokroeger/stm32-dmav1-interrupt-flags
STM32 DMA/BDMA: Use interrupt flags instead of atomics
2021-07-24 10:07:33 +02:00
Dario Nieuwenhuis
3c7375c6cd stm32/bdma: do not clear IF on IRQ handler 2021-07-24 10:01:11 +02:00
Timo Kröger
43c4f24207 STM32 BDMA: Use interrupt flags instead of atomics 2021-07-24 09:26:07 +02:00
Timo Kröger
5a4a5ce334 STM32 DMA: Use interrupt flags instead of atomics 2021-07-24 09:26:07 +02:00
Dario Nieuwenhuis
9c503a9256
Merge pull request #305 from bobmcwhirter/spi_dma_take3
Spi dma take3
2021-07-24 09:24:11 +02:00
Liam Murphy
1b7ad7080e Add Send/Sync bounds to PeripheralState 2021-07-24 12:53:57 +10:00
Bob McWhirter
83f63890e5 Actually take a &mut of that read slice. 2021-07-23 13:22:39 -04:00
Bob McWhirter
473a83a937 Adjust how we deal with read/write being different length.
Including some docs about it.
Removing the Rx-enablement for write-only operations.
2021-07-23 13:22:39 -04:00
Bob McWhirter
67283c0cbd Reset back the memory.x also. 2021-07-23 13:22:39 -04:00
Bob McWhirter
f1a3e0e05d As before, EVERY DANG TIME.
It'll be sweet with intellij-rust-plugin works better.
2021-07-23 13:22:39 -04:00
Bob McWhirter
a63847944f Reset the examples to the original F4 flavor. 2021-07-23 13:22:39 -04:00
Bob McWhirter
b07325b476 Enable DMA for SPIv1 on F4's etc. 2021-07-23 13:22:39 -04:00
Bob McWhirter
8ab82191b7 Every dang time. 2021-07-23 13:22:39 -04:00
Bob McWhirter
a1dac21bdf Make SPIv3 work with DMA.
Add both DMA and non-DMA example to H7.
2021-07-23 13:22:39 -04:00
Bob McWhirter
34dfe28d3a FFS warnings about unused Result<>. 2021-07-23 13:22:39 -04:00