You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 satır
495B

  1. #ifndef output_pwm_h_
  2. #define output_pwm_h_
  3. #include "AudioStream.h"
  4. class AudioOutputPWM : public AudioStream
  5. {
  6. public:
  7. AudioOutputPWM(void) : AudioStream(1, inputQueueArray) { begin(); }
  8. virtual void update(void);
  9. void begin(void);
  10. friend void dma_ch3_isr(void);
  11. private:
  12. static audio_block_t *block_1st;
  13. static audio_block_t *block_2nd;
  14. static uint32_t block_offset;
  15. static bool update_responsibility;
  16. static uint8_t interrupt_count;
  17. audio_block_t *inputQueueArray[1];
  18. };
  19. #endif