Pārlūkot izejas kodu

Add AudioStream update_stop

teensy4-core
PaulStoffregen pirms 11 gadiem
vecāks
revīzija
3e9587f682
2 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. +6
    -0
      teensy3/AudioStream.cpp
  2. +1
    -0
      teensy3/AudioStream.h

+ 6
- 0
teensy3/AudioStream.cpp Parādīt failu

@@ -183,6 +183,12 @@ bool AudioStream::update_setup(void)
return true;
}

void AudioStream::update_stop(void)
{
NVIC_DISABLE_IRQ(IRQ_SOFTWARE);
update_scheduled = false;
}

AudioStream * AudioStream::first_update = NULL;

void software_isr(void) // AudioStream::update_all()

+ 1
- 0
teensy3/AudioStream.h Parādīt failu

@@ -127,6 +127,7 @@ protected:
audio_block_t * receiveReadOnly(unsigned int index = 0);
audio_block_t * receiveWritable(unsigned int index = 0);
static bool update_setup(void);
static void update_stop(void);
static void update_all(void) { NVIC_SET_PENDING(IRQ_SOFTWARE); }
friend void software_isr(void);
friend class AudioConnection;

Notiek ielāde…
Atcelt
Saglabāt