dtmf_dolphin_hal.h 655 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <furi.h>
  3. #include <furi_hal.h>
  4. #include <stm32wb55xx.h>
  5. #include <stm32wbxx_ll_tim.h>
  6. #include <stm32wbxx_ll_dma.h>
  7. #define FURI_HAL_SPEAKER_TIMER TIM16
  8. #define FURI_HAL_SPEAKER_CHANNEL LL_TIM_CHANNEL_CH1
  9. #define DMA_INSTANCE DMA1, LL_DMA_CHANNEL_1
  10. #define DTMF_DOLPHIN_HAL_DMA_PRESCALER 4
  11. #define DTMF_DOLPHIN_HAL_DMA_AUTORELOAD 255
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. void dtmf_dolphin_speaker_init();
  16. void dtmf_dolphin_speaker_start();
  17. void dtmf_dolphin_speaker_stop();
  18. void dtmf_dolphin_dma_init(uint32_t address, size_t size);
  19. void dtmf_dolphin_dma_start();
  20. void dtmf_dolphin_dma_stop();
  21. #ifdef __cplusplus
  22. }
  23. #endif