Skip to content

Commit

Permalink
Import all of Frank's T4 edits
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Feb 3, 2019
1 parent 6a96113 commit 07a305d
Show file tree
Hide file tree
Showing 37 changed files with 288 additions and 94 deletions.
2 changes: 1 addition & 1 deletion analyze_fft1024.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void AudioAnalyzeFFT1024::update(void)
block = receiveReadOnly();
if (!block) return;

#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)
switch (state) {
case 0:
blocklist[0] = block;
Expand Down
2 changes: 1 addition & 1 deletion analyze_rms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void AudioAnalyzeRMS::update(void)
count++;
return;
}
#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)
uint32_t *p = (uint32_t *)(block->data);
uint32_t *end = p + AUDIO_BLOCK_SAMPLES/2;
int64_t sum = accum;
Expand Down
2 changes: 1 addition & 1 deletion analyze_tonedetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "analyze_tonedetect.h"
#include "utility/dspinst.h"

#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)

static inline int32_t multiply_32x32_rshift30(int32_t a, int32_t b) __attribute__((always_inline));
static inline int32_t multiply_32x32_rshift30(int32_t a, int32_t b)
Expand Down
3 changes: 2 additions & 1 deletion control_sgtl5000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ bool AudioControlSGTL5000::enable(void)
//unsigned int n = read(CHIP_ID);
//Serial.println(n, HEX);

write(CHIP_ANA_POWER, 0x4060); // VDDD is externally driven with 1.8V
int r = write(CHIP_ANA_POWER, 0x4060); // VDDD is externally driven with 1.8V
if (!r) return false;
write(CHIP_LINREG_CTRL, 0x006C); // VDDA & VDDIO both over 3.1V
write(CHIP_REF_CTRL, 0x01F2); // VAG=1.575, normal ramp, +12.5% bias current
write(CHIP_LINE_OUT_CTRL, 0x0F22); // LO_VAGCNTRL=1.65V, OUT_CURRENT=0.54mA
Expand Down
4 changes: 2 additions & 2 deletions effect_freeverb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static const audio_block_t zeroblock = {

void AudioEffectFreeverb::update()
{
#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)
const audio_block_t *block;
audio_block_t *outblock;
int i;
Expand Down Expand Up @@ -294,7 +294,7 @@ AudioEffectFreeverbStereo::AudioEffectFreeverbStereo() : AudioStream(1, inputQue

void AudioEffectFreeverbStereo::update()
{
#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)
const audio_block_t *block;
audio_block_t *outblockL;
audio_block_t *outblockR;
Expand Down
2 changes: 1 addition & 1 deletion effect_midside.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void AudioEffectMidSide::update(void)
if (blockb) release(blockb); // of the blocks is NULL then it's trouble anyway
return;
}
#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)
pa = (uint32_t *)(blocka->data);
pb = (uint32_t *)(blockb->data);
end = pa + AUDIO_BLOCK_SAMPLES/2;
Expand Down
2 changes: 1 addition & 1 deletion effect_multiply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

void AudioEffectMultiply::update(void)
{
#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)
audio_block_t *blocka, *blockb;
uint32_t *pa, *pb, *end;
uint32_t a12, a34; //, a56, a78;
Expand Down
3 changes: 2 additions & 1 deletion examples/SamplePlayer/AudioSampleCashregister.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Audio data converted from WAV file by wav2sketch

#include "AudioSampleCashregister.h"

#include <Arduino.h>
// Converted from cashregister.wav, using 22050 Hz, u-law encoding
PROGMEM
const unsigned int AudioSampleCashregister[5809] = {
0x02005AB4,0x82060707,0x03010301,0x08038287,0x81820200,0x09120407,0x15091108,0x02080611,
0x0D050D11,0x8008150C,0x93810480,0x000D8890,0x0A060406,0x06000681,0x80828702,0x89928405,
Expand Down
3 changes: 2 additions & 1 deletion examples/SamplePlayer/AudioSampleGong.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Audio data converted from WAV file by wav2sketch

#include "AudioSampleGong.h"

#include <Arduino.h>
// Converted from gong.wav, using 11025 Hz, u-law encoding
PROGMEM
const unsigned int AudioSampleGong[27633] = {
0x0301AFA4,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00008000,0x00000000,0x00000000,0x80800000,
Expand Down
3 changes: 2 additions & 1 deletion examples/SamplePlayer/AudioSampleHihat.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Audio data converted from WAV file by wav2sketch

#include "AudioSampleHihat.h"

#include <Arduino.h>
// Converted from hihat.wav, using 44100 Hz, u-law encoding
PROGMEM
const unsigned int AudioSampleHihat[5953] = {
0x01005CB1,0x77766877,0xEAEC2195,0xE0737099,0x82807B70,0x88909012,0x8B822303,0x8C04180B,
0x090B9207,0x878EA413,0x1EB09F15,0x0B9B2122,0xA09E0094,0x51B2B980,0xD1485CCA,0xDACCBF48,
Expand Down
3 changes: 2 additions & 1 deletion examples/SamplePlayer/AudioSampleKick.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Audio data converted from WAV file by wav2sketch

#include "AudioSampleKick.h"

#include <Arduino.h>
// Converted from kick.wav, using 22050 Hz, 16 bit PCM encoding
PROGMEM
const unsigned int AudioSampleKick[2561] = {
0x820013EC,0xFFDC0027,0xFF710095,0x038DFF4C,0xFBA10105,0x0037FB6E,0x09D2011A,0x007504CA,
0x024BF6BF,0xF77B0AFF,0xFB72F723,0xEF3DEBAD,0x0F7009D6,0x09DD1736,0xF26EFA3E,0x0D7002FB,
Expand Down
3 changes: 2 additions & 1 deletion examples/SamplePlayer/AudioSampleSnare.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Audio data converted from WAV file by wav2sketch

#include "AudioSampleSnare.h"

#include <Arduino.h>
// Converted from snare.wav, using 22050 Hz, u-law encoding
PROGMEM
const unsigned int AudioSampleSnare[2817] = {
0x02002BD3,0x65636656,0x6B6A6B67,0x7071706F,0x43637171,0x29ABBA23,0x3137474C,0x3A4A544D,
0x30C1542C,0xE14F6360,0xEDDCE2E6,0xEEF1F4F4,0xEEEDEAEA,0x3745A2E2,0xE7E6DAC8,0xC7C3C3DA,
Expand Down
3 changes: 2 additions & 1 deletion examples/SamplePlayer/AudioSampleTomtom.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Audio data converted from WAV file by wav2sketch

#include "AudioSampleTomtom.h"

#include <Arduino.h>
// Converted from tomtom.wav, using 11025 Hz, 16 bit PCM encoding
PROGMEM
const unsigned int AudioSampleTomtom[3489] = {
0x83001B3C,0xFC0EFF8B,0xFB40FD97,0x045BFB30,0xEABCEAD6,0x04C2F8B3,0x002B0733,0xFB1C0879,
0xE9CCED7A,0xEC2AEC4D,0xF7D8EF09,0xF6EC0EE6,0x15A4F3A6,0xFAD81B95,0xF591F001,0x0A3FFF14,
Expand Down
6 changes: 1 addition & 5 deletions examples/Synthesis/PlaySynthMusic/william_tell_overture.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// Playtune bytestream for file "william_tell_overture.mid" created by MIDITONES V1.6 on Sat Sep 6 16:56:56 2014
// command line: ./miditones -t16 -v william_tell_overture
#ifdef __AVR__
#include <avr/pgmspace.h>
#else
#define PROGMEM
#endif
#include <Arduino.h>
const unsigned char PROGMEM score [] = {
0x90,72,127, 0x91,72,107, 0x92,72,127, 0x93,72,127, 0x94,72,127, 1,169, 0x80, 0x81, 0x82, 0x83,
0x84, 0,183, 0x90,72,127, 0x91,72,107, 0x92,72,127, 0x93,72,127, 0x94,72,127, 0,41, 0x80,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "Flute_100kbyte_samples.h"

PROGMEM
static const uint32_t sample_0_Flute_100kbyte_FluteD4[7936] = {
0xfbfffc4b,0xfba4fbac,0xfbbffbb2,0xfc00fbdc,0xfc3afc16,0xfcb8fc57,0xfcf9fcf3,0xfc87fcad,
0xfcabfc77,0xfd8cfd0c,0xfe7dfe0c,0xff24fee0,0xffc4ff61,0x006a002d,0x002d004c,0xffe90000,
Expand Down Expand Up @@ -988,6 +989,7 @@ static const uint32_t sample_0_Flute_100kbyte_FluteD4[7936] = {
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
static const uint32_t sample_1_Flute_100kbyte_FluteE5[9472] = {
0x03f00410,0x03f003c0,0x04500410,0x04500460,0x04200410,0x03800400,0x02f00320,0x01900230,
0x005000c0,0xff30ffb0,0xff70ff40,0xfe10fe90,0xfd70fde0,0xfc70fcc0,0xfc30fc00,0xfc40fca0,
Expand Down Expand Up @@ -2169,6 +2171,7 @@ static const uint32_t sample_1_Flute_100kbyte_FluteE5[9472] = {
0x00000000,0x00000000,
};

PROGMEM
static const uint32_t sample_2_Flute_100kbyte_FluteE6[7936] = {
0x01b003e0,0x02e00250,0x01300150,0x003000f0,0x01400180,0xffc0fed0,0xff600100,0x0080ffc0,
0xffd0feb0,0xff500130,0x0070feb0,0xfed00060,0x00d0ffc0,0xff10ff50,0xff500030,0x0080ff60,
Expand Down Expand Up @@ -3241,4 +3244,3 @@ static const AudioSynthWavetable::sample_data Flute_100kbyte_samples[3] = {
static const uint8_t Flute_100kbyte_ranges[] = {68, 83, 127, };

const AudioSynthWavetable::instrument_data Flute_100kbyte = {3, Flute_100kbyte_ranges, Flute_100kbyte_samples };

4 changes: 3 additions & 1 deletion examples/Synthesis/Wavetable/Zelda/MutedTrumpet_samples.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "MutedTrumpet_samples.h"

PROGMEM
static const uint32_t sample_0_MutedTrumpet_HRMMUTED4[8192] = {
0xffdaffd4,0xffdeffdd,0xffe4ffe1,0xffe2ffe5,0xffd0ffda,0xffbfffc7,0xffb8ffb9,0xffb8ffb9,
0xffb1ffb3,0xffaeffb1,0xffabffaa,0xffb1ffaf,0xffacffb0,0xffa2ffa7,0xffa3ffa0,0xffa9ffa7,
Expand Down Expand Up @@ -1018,6 +1019,7 @@ static const uint32_t sample_0_MutedTrumpet_HRMMUTED4[8192] = {
0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
static const uint32_t sample_1_MutedTrumpet_HRMMUTEC5[6912] = {
0x00000000,0xfffeffff,0x0000ffff,0xffff0000,0xfffffffe,0xffffffff,0xfffdfffe,0xfffdfffd,
0xfffbfffc,0xfff9fff9,0xfffbfffa,0xfffbfffb,0xfffafffb,0xfffafff9,0xfffbfffb,0xfff8fff9,
Expand Down Expand Up @@ -1875,6 +1877,7 @@ static const uint32_t sample_1_MutedTrumpet_HRMMUTEC5[6912] = {
0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
static const uint32_t sample_2_MutedTrumpet_HRMMUTEC6[4608] = {
0xff89ff87,0xff85ff8a,0xff7cff7f,0xff7bff7b,0xff79ff7a,0xff74ff77,0xff73ff72,0xff7cff78,
0xff82ff80,0xff85ff83,0xff8bff88,0xff8eff8d,0xff90ff90,0xff8cff8f,0xff87ff89,0xff7eff83,
Expand Down Expand Up @@ -2531,4 +2534,3 @@ static const AudioSynthWavetable::sample_data MutedTrumpet_samples[3] = {
static const uint8_t MutedTrumpet_ranges[] = {71, 82, 127, };

const AudioSynthWavetable::instrument_data MutedTrumpet = {3, MutedTrumpet_ranges, MutedTrumpet_samples };

8 changes: 2 additions & 6 deletions examples/Synthesis/Wavetable/Zelda/Overworld.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// Playtune bytestream for file "..\..\Downloads\Good Midi\Overworld.mid" created by MIDITONES V1.14 on Sun Mar 5 00:09:03 2017
// command line: miditones.exe -t16 -v -i ..\..\Downloads\Good Midi\Overworld
#ifdef __AVR__
#include <avr/pgmspace.h>
#else
#define PROGMEM
#endif
#include <Arduino.h>

const unsigned char PROGMEM score [] = {
0xC0,48, 0x90,66,127, 0xC1,48, 0x91,62,127, 0xC2,48, 0x92,38,127, 0xC3,48, 0x93,38,127, 0,222, 0x92,45,127, 0,222,
0x92,50,127, 0,222, 0x92,38,127, 0x93,52,127, 1,188, 0x93,50,127, 0,222, 0x93,50,127, 0,222, 0x92,33,127,
Expand Down
4 changes: 4 additions & 0 deletions examples/Synthesis/Wavetable/Zelda/Pizzicato_samples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const AudioSynthWavetable::sample_data Pizzicato_samples[4] = {
},
};

PROGMEM
const uint32_t sample_0_Pizzicato_PizzViolinE3[2944] = {
0xffeeffbc,0x03230104,0x062004f3,0x0d4f07cb,0x1c351736,0x16ae18bd,0x1cad1a19,0x1ed81ede,
0x1a1b1b79,0x1ea61c1e,0x11081a2f,0x074a0a00,0x034305c7,0x012e02b7,0xf781fc58,0xf5d7f770,
Expand Down Expand Up @@ -468,6 +469,7 @@ const uint32_t sample_0_Pizzicato_PizzViolinE3[2944] = {
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_1_Pizzicato_PizzViolinC4[2304] = {
0x02770000,0x0b55063e,0x109c0f35,0x0d690fda,0x088109dd,0xfea10525,0xea5bf55e,0xec27e61c,
0xf843f547,0xebc1f337,0xeb4be81f,0xf9dcf398,0xf90ffa32,0xfe29faae,0x043a0215,0xf9d20247,
Expand Down Expand Up @@ -760,6 +762,7 @@ const uint32_t sample_1_Pizzicato_PizzViolinC4[2304] = {

};

PROGMEM
const uint32_t sample_2_Pizzicato_PizzViolinE5[768] = {
0x00330000,0x0c1e0957,0x100c0a13,0xefb7085e,0xef13e447,0x25e11a69,0x23032238,0xc02ed183,
0xe93ddc07,0x0e2f1cb4,0x0a35fcfa,0xe333f478,0xee61d669,0x14351329,0x34ef33f1,0xd8cee3ff,
Expand Down Expand Up @@ -851,6 +854,7 @@ const uint32_t sample_2_Pizzicato_PizzViolinE5[768] = {
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_3_Pizzicato_PizzViolinE5[768] = {
0x00330000,0x0c1e0957,0x100c0a13,0xefb7085e,0xef13e447,0x25e11a69,0x23032238,0xc02ed183,
0xe93ddc07,0x0e2f1cb4,0x0a35fcfa,0xe333f478,0xee61d669,0x14351329,0x34ef33f1,0xd8cee3ff,
Expand Down
8 changes: 8 additions & 0 deletions examples/Synthesis/Wavetable/Zelda/Viola_samples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ const AudioSynthWavetable::sample_data Viola_samples[8] = {
},
};

PROGMEM
const uint32_t sample_0_Viola_ViolinBb2[768] = {
0x00c00062,0x01d00177,0x00d901a3,0xfd26ff1b,0xfbfffc14,0xfcc2fc94,0xfbf4fc33,0xfdbcfca6,
0xfe03fe3f,0xfe96fddc,0x035100ee,0x035d0423,0x002c01be,0x00e00025,0x002f0108,0xff46ff54,
Expand Down Expand Up @@ -299,6 +300,7 @@ const uint32_t sample_0_Viola_ViolinBb2[768] = {
0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_1_Viola_ViolinD3[896] = {
0xf22af42c,0xf477f50d,0x02bbf927,0x0e000a05,0x143e1088,0x15ac15b8,0x11f914ba,0x12870f75,
0x17fa1743,0x0d0c1332,0x07180989,0xfdef036b,0xfc75f893,0x0a50048f,0x0761093c,0x0e180a9b,
Expand Down Expand Up @@ -405,6 +407,7 @@ const uint32_t sample_1_Viola_ViolinD3[896] = {
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_2_Viola_ViolinG3[768] = {
0xff4afeb7,0xfeb0fed3,0xff55ff4a,0xffbeff92,0xffd9fff0,0x000f0001,0xfff0000b,0x00750031,
0x00be00e0,0x017f009a,0x020e01c7,0x025d024c,0x031002b9,0x036e02ec,0x038e0306,0x03420271,
Expand Down Expand Up @@ -504,6 +507,7 @@ const uint32_t sample_2_Viola_ViolinG3[768] = {
0xed98fa3f,0x0000dd29,0x00000000,0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_3_Viola_ViolinC4[768] = {
0x02720224,0x01790179,0x015b010f,0x023001a2,0x02dc0298,0x01d50280,0x00970141,0x011300f4,
0x00be00f3,0xffe3002b,0xffbdffdf,0x00560035,0x007900af,0xffd30046,0xff02fef0,0xfed0feb6,
Expand Down Expand Up @@ -595,6 +599,7 @@ const uint32_t sample_3_Viola_ViolinC4[768] = {

};

PROGMEM
const uint32_t sample_4_Viola_ViolinGb4[768] = {
0x0014001b,0x00150027,0x00390028,0x00450027,0x00120028,0x001b0022,0xffecfffe,0xffe6ffe0,
0xffeefffd,0x00370014,0x0093fff8,0xff980066,0x02d90135,0xf8f6052d,0xf60cf32b,0xfefdf844,
Expand Down Expand Up @@ -685,6 +690,7 @@ const uint32_t sample_4_Viola_ViolinGb4[768] = {
0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_5_Viola_ViolinC5[640] = {
0x01eafdb7,0xf3c6fadb,0xf8bef4e7,0x0c1aff72,0x15b51664,0x12ce16b5,0x0f101140,0x0b890d0a,
0x0aaa0be0,0x1905125c,0x2b9824a1,0x14a51f92,0xe92efcc9,0xe20ae403,0xde50e318,0xd902def2,
Expand Down Expand Up @@ -767,6 +773,7 @@ const uint32_t sample_5_Viola_ViolinC5[640] = {
0x1659239f,0x13282024,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_6_Viola_ViolinEb5[768] = {
0xff93feb8,0xfde4fb64,0xfe2dfc67,0x12fafe5e,0x120d13e5,0x00ca05cc,0x076307c9,0x0f5f06b9,
0x08080e4a,0x0f820d05,0x1c4813ad,0x0f4413f8,0xf9d10825,0xef44ec7d,0xeda5ec23,0xe7b9ed75,
Expand Down Expand Up @@ -863,6 +870,7 @@ const uint32_t sample_6_Viola_ViolinEb5[768] = {
0x00000000,0x00000000,
};

PROGMEM
const uint32_t sample_7_Viola_ViolinEb6[512] = {
0xfde7ff2e,0xffebfcf6,0x09180f77,0x066b0250,0x07fe09b7,0x12670b88,0xfd950d9b,0xf116f10d,
0xe96aef60,0xf60fe23f,0x129212e1,0xf943fe40,0xf013f48b,0xf7b2f480,0x000afda7,0x0d25014e,
Expand Down
3 changes: 2 additions & 1 deletion examples/Synthesis/Wavetable/Zelda/WT_Trumpet_samples.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "WT_Trumpet_samples.h"

PROGMEM
static const uint32_t sample_0_WT_Trumpet_trum04[10112] = {
0xff9cff8f,0xffceffa9,0xfff90000,0xffd7ffe9,0xffbcffb2,0xff72ffa4,0xffc4ff9e,0xffbcffb2,
0xffdcffca,0x006a001e,0x012600c2,0x01620159,0x01430152,0x014e014d,0x0118013c,0x00b100e5,
Expand Down Expand Up @@ -1265,6 +1266,7 @@ static const uint32_t sample_0_WT_Trumpet_trum04[10112] = {
0x07f2f8b2,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
};

PROGMEM
static const uint32_t sample_1_WT_Trumpet_trum09[9728] = {
0x0f1f0a8f,0x15811318,0x0d67137e,0xfeec05c4,0xf883fa6c,0xf8c9f836,0xfb84fa14,0xfe46fceb,
0xfeb1fee5,0xfe30fe62,0xfd05fdc9,0xfc17fc35,0xfbcafc52,0xf9c7fac5,0xf77af88a,0xf6e0f6d9,
Expand Down Expand Up @@ -2534,4 +2536,3 @@ static const AudioSynthWavetable::sample_data WT_Trumpet_samples[2] = {
static const uint8_t WT_Trumpet_ranges[] = {70, 127, };

const AudioSynthWavetable::instrument_data WT_Trumpet = {2, WT_Trumpet_ranges, WT_Trumpet_samples };

2 changes: 1 addition & 1 deletion filter_biquad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "filter_biquad.h"
#include "utility/dspinst.h"

#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)

void AudioFilterBiquad::update(void)
{
Expand Down
2 changes: 1 addition & 1 deletion filter_variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// no audible difference.
//#define IMPROVE_EXPONENTIAL_ACCURACY

#if defined(KINETISK)
#if defined(__ARM_ARCH_7EM__)

void AudioFilterStateVariable::update_fixed(const int16_t *in,
int16_t *lp, int16_t *bp, int16_t *hp)
Expand Down
3 changes: 3 additions & 0 deletions input_adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* THE SOFTWARE.
*/

#if !defined(__IMXRT1052__) && !defined(__IMXRT1062__)

#include <Arduino.h>
#include "input_adc.h"
#include "utility/pdb.h"
Expand Down Expand Up @@ -211,3 +213,4 @@ void AudioInputAnalog::update(void)
transmit(out_left);
release(out_left);
}
#endif
7 changes: 3 additions & 4 deletions input_i2s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* THE SOFTWARE.
*/

#if !defined(__IMXRT1052__) && !defined(__IMXRT1062__)

#include <Arduino.h>
#include "input_i2s.h"
#include "output_i2s.h"
Expand Down Expand Up @@ -203,7 +205,4 @@ void AudioInputI2Sslave::begin(void)
I2S0_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE; // TX clock enable, because sync'd to TX
dma.attachInterrupt(isr);
}




#endif
Loading

0 comments on commit 07a305d

Please sign in to comment.