Commit Graph

  • e13774574f Remove embassy_hal_common::peripheral_shared Dario Nieuwenhuis 2021-07-29 13:49:39 +02:00
  • 01e0a3928f
    Merge pull request #326 from embassy-rs/extras-rename Dario Nieuwenhuis 2021-07-29 13:53:03 +02:00
  • 1457ade49b
    Merge pull request #325 from embassy-rs/update-chiptool Dario Nieuwenhuis 2021-07-29 13:47:37 +02:00
  • 7bfb763e09 Rename embassy-extras to embassy-hal-common Dario Nieuwenhuis 2021-07-29 13:44:51 +02:00
  • 8d76c582f5 Update chiptool Dario Nieuwenhuis 2021-07-29 13:14:18 +02:00
  • c8a48d726a
    Merge pull request #277 from Liamolucko/fix-peripheral-ub Dario Nieuwenhuis 2021-07-29 13:08:30 +02:00
  • cd1a3fcff3 Don't bother supporting creating a PeripheralMutex in an exception handler Liam Murphy 2021-07-29 15:19:57 +10:00
  • d5ba35424d Replace PeripheralStateUnchecked with register_interrupt_unchecked Liam Murphy 2021-07-29 15:11:26 +10:00
  • 61340d8c65
    Merge pull request #320 from bobmcwhirter/data-update-28jul Bob McWhirter 2021-07-28 15:45:29 -04:00
  • d3d74fecdb Align with -data HEAD. Bob McWhirter 2021-07-28 15:21:39 -04:00
  • 6e4f4b63a8
    Merge pull request #317 from bobmcwhirter/peri_irq Bob McWhirter 2021-07-28 15:16:51 -04:00
  • d8c6ffe3a2 Revert "Optimize CI" Bob McWhirter 2021-07-28 09:24:45 -04:00
  • abe13e6b18 Trivial to trigger checks from CI. Bob McWhirter 2021-07-28 09:09:19 -04:00
  • 4d9514cbcb Don't allow disabling interrupts wrapped by PeripheralMutex Liam Murphy 2021-07-28 21:39:31 +10:00
  • 68c93256bc fix: interrupts with equal priority can't preempt each other Liam Murphy 2021-07-28 21:31:31 +10:00
  • 126407f8c8
    Merge pull request #319 from timokroeger/stm32f4-embassymain Dario Nieuwenhuis 2021-07-28 10:34:46 +02:00
  • ee755a729f Update to new stm32-data with better multicore NVIC parsing. Bob McWhirter 2021-07-27 13:49:14 -04:00
  • 8759213fcc Use new interrupt! table format to /enable/ the IRQs also. Bob McWhirter 2021-07-27 13:23:33 -04:00
  • b910551c9a Generate more rows in the interrupts! table. Adjust DMA/BDMA to use the new style. Bob McWhirter 2021-07-27 12:52:01 -04:00
  • 9fec792a6a Update data to include peripheral IRQs. Bob McWhirter 2021-07-27 12:39:34 -04:00
  • dd1ec8ebec Use embassy::main macro for stm32f4 examples Timo Kröger 2021-07-27 15:03:18 +02:00
  • a6fea3cb28 Fix #[cfg]s in exception_to_system_handler Liam Murphy 2021-07-27 17:40:13 +10:00
  • e57ca5f7db Remove critical-section dependency Liam Murphy 2021-07-27 17:30:10 +10:00
  • 079526559f Remove critical sections from PeripheralMutex interrupt handler by checking the interrupt's priority on startup. Liam Murphy 2021-07-27 17:28:52 +10:00
  • d83cd3fffd
    Merge pull request #315 from embassy-rs/ci-fixes Thales 2021-07-26 19:24:54 -03:00
  • 754b5ebefc
    Merge pull request #316 from bobmcwhirter/update-stm32data Bob McWhirter 2021-07-26 16:18:06 -04:00
  • 1a3fd765ad Update stm32-data. Bob McWhirter 2021-07-26 15:38:21 -04:00
  • fe58e9541d Optimize CI Dario Nieuwenhuis 2021-07-24 14:47:58 +02:00
  • 495d977b03
    Merge pull request #314 from embassy-rs/example-cleanup-l4 Dario Nieuwenhuis 2021-07-24 14:03:42 +02:00
  • 5b0ae5c25b stm32/examples: cleanup L4 Dario Nieuwenhuis 2021-07-24 13:57:11 +02:00
  • 4899168534
    Merge pull request #312 from timokroeger/en-exti-clock Dario Nieuwenhuis 2021-07-24 11:18:46 +02:00
  • 06fb2a7a80 Enable SYSCFG clock in exti::init() Timo Kröger 2021-07-22 23:12:07 +02:00
  • ad7a1f1453
    Merge pull request #309 from timokroeger/stm32-dmav1-interrupt-flags Dario Nieuwenhuis 2021-07-24 10:07:33 +02:00
  • 3c7375c6cd stm32/bdma: do not clear IF on IRQ handler Dario Nieuwenhuis 2021-07-24 10:01:11 +02:00
  • 43c4f24207 STM32 BDMA: Use interrupt flags instead of atomics Timo Kröger 2021-07-22 14:52:16 +02:00
  • 5a4a5ce334 STM32 DMA: Use interrupt flags instead of atomics Timo Kröger 2021-07-22 00:12:06 +02:00
  • 9c503a9256
    Merge pull request #305 from bobmcwhirter/spi_dma_take3 Dario Nieuwenhuis 2021-07-24 09:24:11 +02:00
  • 1b7ad7080e Add Send/Sync bounds to PeripheralState Liam Murphy 2021-07-24 12:53:57 +10:00
  • 83f63890e5 Actually take a &mut of that read slice. Bob McWhirter 2021-07-22 09:50:34 -04:00
  • 473a83a937 Adjust how we deal with read/write being different length. Including some docs about it. Removing the Rx-enablement for write-only operations. Bob McWhirter 2021-07-22 09:28:42 -04:00
  • 67283c0cbd Reset back the memory.x also. Bob McWhirter 2021-07-21 16:53:19 -04:00
  • f1a3e0e05d As before, EVERY DANG TIME. It'll be sweet with intellij-rust-plugin works better. Bob McWhirter 2021-07-21 16:50:38 -04:00
  • a63847944f Reset the examples to the original F4 flavor. Bob McWhirter 2021-07-21 16:48:42 -04:00
  • b07325b476 Enable DMA for SPIv1 on F4's etc. Bob McWhirter 2021-07-21 16:45:43 -04:00
  • 8ab82191b7 Every dang time. Bob McWhirter 2021-07-21 14:12:50 -04:00
  • a1dac21bdf Make SPIv3 work with DMA. Add both DMA and non-DMA example to H7. Bob McWhirter 2021-07-21 14:09:24 -04:00
  • 34dfe28d3a FFS warnings about unused Result<>. Bob McWhirter 2021-07-21 11:33:04 -04:00
  • 053e330375 Fix warnings about un-used variables. Bob McWhirter 2021-07-21 11:28:02 -04:00
  • e269971597 Fix extraneous mut warnings in L4 example. Bob McWhirter 2021-07-21 11:20:03 -04:00
  • 638235e72d Fix up the L0 example for SPI. Bob McWhirter 2021-07-21 11:05:50 -04:00
  • 6dbe049468 Add back in the other versions of SPI. Bob McWhirter 2021-07-21 10:55:13 -04:00
  • bee7f60f08 Improve the SPIv2 DMA example to verify it actually works. Bob McWhirter 2021-07-21 10:52:26 -04:00
  • 0d2051243e SPIv2 + DMA. Bob McWhirter 2021-07-21 10:42:22 -04:00
  • 1a03f00b56 Wire up peripheral DMA channels for SPI. Bob McWhirter 2021-07-20 15:44:13 -04:00
  • 3df2aadc39 Avoid borrowck issue. Bob McWhirter 2021-07-20 15:33:42 -04:00
  • dedc2bac42 IntelliJ'd. Bob McWhirter 2021-07-20 15:27:57 -04:00
  • 4c5a234a3a Add a non-minc write() to DMA which takes a count. Use it from "read-only" SPI. Bob McWhirter 2021-07-20 15:20:16 -04:00
  • 7bbad4c4e5 More unused allowances. Bob McWhirter 2021-07-20 14:07:11 -04:00
  • 4bcc3b06c6 Include all versions when handing to CI. Bob McWhirter 2021-07-20 14:01:33 -04:00
  • a75110296d Annotate to avoid unused warnings for the moment. Bob McWhirter 2021-07-20 13:48:54 -04:00
  • 3f379e06b0 Begin reworking SPI to add DMA for stm32. Bob McWhirter 2021-07-20 13:38:44 -04:00
  • fe66f0f8f8 Checkpoint. Bob McWhirter 2021-07-20 09:19:23 -04:00
  • a345dd9e2b More formatting! Bob McWhirter 2021-07-20 10:02:33 -04:00
  • 58edefff6e Formatting. Bob McWhirter 2021-07-20 09:54:19 -04:00
  • d5ed5c3ef3 Split up the nRF impls for SPI traits. Bob McWhirter 2021-07-20 09:52:03 -04:00
  • 22901938ce Split up the SPI trait into several with shared Error associated type. Bob McWhirter 2021-07-20 09:43:25 -04:00
  • 372884422a
    Merge pull request #313 from timokroeger/cleanup-gpio-clocks Bob McWhirter 2021-07-23 13:15:28 -04:00
  • 57eecd4292 Use Dbgmcu::enable_all() in stm32f4 examples Timo Kröger 2021-07-23 17:49:53 +02:00
  • 5ac91933ff stm32: No need to enable GPIO clocks manually Timo Kröger 2021-07-23 14:24:38 +02:00
  • ec5d44333a
    Merge pull request #311 from bobmcwhirter/gpio_enable Bob McWhirter 2021-07-23 11:38:53 -04:00
  • 650f867b1c Add a single-column variant to gpio_rcc! macro table which includes just the set of registers that need to be considered. Bob McWhirter 2021-07-23 11:16:17 -04:00
  • 13873df30b Auto-enable all GPIOs during init(). Bob McWhirter 2021-07-22 14:38:45 -04:00
  • e91c04a673
    Merge pull request #310 from bobmcwhirter/dbg Bob McWhirter 2021-07-23 11:21:02 -04:00
  • d68f2617e6 Add a Dbgmcu struct capable of enabling all relevant DBGMCU.cr fields. Bob McWhirter 2021-07-22 14:18:48 -04:00
  • 3655ceff27
    Merge pull request #308 from timokroeger/stmf4-example-cleanup Dario Nieuwenhuis 2021-07-21 23:21:28 +02:00
  • 5e998d1a6c Cleanup stm32f4 examples Timo Kröger 2021-07-21 23:12:36 +02:00
  • cec2654854
    Merge pull request #304 from bobmcwhirter/async_move_dma_transfer Thales 2021-07-20 13:07:28 -03:00
  • 2d3137afc7 The async move portion of @thalesfragoso's i2c PR. Bob McWhirter 2021-07-20 11:38:16 -04:00
  • 25b870d811
    Merge pull request #302 from embassy-rs/rp-spi-fixes Dario Nieuwenhuis 2021-07-20 10:11:58 +02:00
  • 451e342961 rp/examples: add spi_display example Dario Nieuwenhuis 2021-07-20 10:06:57 +02:00
  • da33b3a4d2 rp/spi: disable+enable when setting frequency Dario Nieuwenhuis 2021-07-20 09:43:06 +02:00
  • dbff5cc232 rp/spi: properly drain the rx buffer while writing Dario Nieuwenhuis 2021-07-20 09:42:52 +02:00
  • b04dc7e783
    Merge pull request #226 from huntc/mpsc Dario Nieuwenhuis 2021-07-20 08:01:42 +02:00
  • 1799938187 rp/examples: add spi example Dario Nieuwenhuis 2021-07-19 23:54:18 +02:00
  • 40ea8298ee
    Merge pull request #300 from thalesfragoso/clear-dma Thales 2021-07-17 17:28:02 -03:00
  • f4b8709bac
    Merge pull request #281 from thalesfragoso/i2c-256 Thales 2021-07-17 17:21:50 -03:00
  • aae0431d31 stm32: Clear possible set flags after disabling DMA Thales Fragoso 2021-07-17 16:08:13 -03:00
  • 59953b5b5e
    Merge pull request #295 from embassy-rs/all_dma Dario Nieuwenhuis 2021-07-17 08:32:31 +02:00
  • d7176da37c stm32/examples: update DMA channel names Dario Nieuwenhuis 2021-07-17 08:04:33 +02:00
  • 36be877ba3 stm32/dma: only set TRBUFF in DMAv1 (H7) Dario Nieuwenhuis 2021-07-17 08:01:20 +02:00
  • 3655048e0f stm32/dma: add MuxChannel trait to distinguish DMAMUX1 and DMAMUX2 channels. Dario Nieuwenhuis 2021-07-17 07:49:49 +02:00
  • 54b5012c56 stm32/dma: update codegen+macrotables for new stm32-data Dario Nieuwenhuis 2021-07-17 07:35:59 +02:00
  • dff4b42a33 stm32/dma: Fix macrotable column count not matching in DMAMUX-less BDMAv1. Dario Nieuwenhuis 2021-07-15 21:40:08 +02:00
  • 01cc733c61 Prep for new stm32-data with dmamux differentiation, but not yet using. Bob McWhirter 2021-07-16 15:44:22 -04:00
  • 0119ea809d Get DMA on H7 working, add usart_dma example for H7. Bob McWhirter 2021-07-16 14:40:25 -04:00
  • 1254e99be1 Be able to scrub out BDMA-centric IRQs. Further refine distinction between DMA and BDMA interrupts in the table. Bob McWhirter 2021-07-16 13:51:53 -04:00
  • ae948415a7 stm32/dma: disable after finishing Dario Nieuwenhuis 2021-07-15 15:34:48 +02:00
  • d0f2dc3abd Fix rustfmt Dario Nieuwenhuis 2021-07-15 06:33:34 +02:00
  • 63a0e188ea stm32/dma: fix h7 impls Dario Nieuwenhuis 2021-07-15 06:31:54 +02:00
  • 2ee20f5dcb Update vscode settings. Dario Nieuwenhuis 2021-07-15 05:43:06 +02:00