video_player_hal.h 601 B

12345678910111213141516171819202122232425
  1. #include <stm32wbxx_ll_dma.h>
  2. #include <stm32wbxx_ll_gpio.h>
  3. #include <stm32wbxx_ll_tim.h>
  4. #include <furi_hal.h>
  5. #include <furi_hal_gpio.h>
  6. #include <furi_hal_resources.h>
  7. #include "video_player.h"
  8. #define SPEAKER_PWM_TIMER TIM16
  9. #define SAMPLE_RATE_TIMER TIM1
  10. #define SPEAKER_PWM_TIMER_CHANNEL LL_TIM_CHANNEL_CH1
  11. #define TIMER_BASE_CLOCK 64000000 /* CPU frequency, 64 MHz */
  12. #define DMA_INSTANCE DMA1, LL_DMA_CHANNEL_1
  13. void player_init_hardware_and_play(VideoPlayerApp* player);
  14. void video_player_dma_isr(void* context);
  15. void player_deinit_hardware();
  16. void player_stop();
  17. void player_start();