aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-11 22:55:45 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-11 22:56:50 +0200
commit66f0e1af5b1f79ccb66909ce57f7d73ea7194a53 (patch)
treea355f4426dc01d1fb530501ff4e31d831f4b9202 /src
parent0ba699511c136e0215fd2f75e2800be920221497 (diff)
downloadglutte-o-matic-66f0e1af5b1f79ccb66909ce57f7d73ea7194a53.tar.gz
glutte-o-matic-66f0e1af5b1f79ccb66909ce57f7d73ea7194a53.tar.bz2
glutte-o-matic-66f0e1af5b1f79ccb66909ce57f7d73ea7194a53.zip
Reorder audio output NVIC settings
Diffstat (limited to 'src')
-rw-r--r--src/glutt-o-logique/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glutt-o-logique/audio.c b/src/glutt-o-logique/audio.c
index c2c2694..91fcc65 100644
--- a/src/glutt-o-logique/audio.c
+++ b/src/glutt-o-logique/audio.c
@@ -136,8 +136,8 @@ void audio_set_volume(int volume) {
void audio_play_with_callback(AudioCallbackFunction *callback, void *context) {
audio_stop_dma();
- NVIC_EnableIRQ(DMA1_Stream7_IRQn);
NVIC_SetPriority(DMA1_Stream7_IRQn, 5);
+ NVIC_EnableIRQ(DMA1_Stream7_IRQn);
SPI3 ->CR2 |= SPI_CR2_TXDMAEN; // Enable I2S TX DMA request.