[FL-1528] SubGhz: dma send (#579)

* Gui: input injection in screen stream
* Cli: expose ASCII table in public header
* SubGhz: dma output draft
* SubGhz: output initialization cleanup
* SubGhz: update dma send routine, add subghz_tx cli command.
* SubGhz: proper register address for DMA
* SubGhz: proper, fully working dma+tim2 configuration
* SubGhz: transmit PT with cli.
* Drivers: fix invalid size in CC1101 PA_TABLE loading routine.
* Interrupts: configurable DMA isrs.
* F5: backport fixes.
* SubGhz: free buffer after use
* SubGhz: use sleep instead of reset at the end
* SubGhz: async tx repeat with circular DMA
* SubGhz: disable dma channel on complete, adjust PT send timings
* SubGhz: backport function singature change to F5
* SubGhz: add tx debug gpio
This commit is contained in:
あく
2021-07-15 16:54:11 +03:00
committed by GitHub
parent 5df346aebe
commit 851a44dc59
17 changed files with 485 additions and 85 deletions

View File

@@ -2,6 +2,15 @@
#include <stm32wbxx_ll_rcc.h>
void api_hal_clock_init() {
// AHB
LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_DMAMUX1);
LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_DMA1);
// APB
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_TIM2);
}
void api_hal_clock_switch_to_hsi() {
LL_RCC_HSI_Enable( );