Skip to content

Commit

Permalink
Include Arduino.h first in all cpp files, for precompiled header speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Mar 11, 2018
1 parent be51fd5 commit 8fb976c
Show file tree
Hide file tree
Showing 57 changed files with 58 additions and 1 deletion.
1 change: 1 addition & 0 deletions analyze_fft1024.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "analyze_fft1024.h"
#include "sqrt_integer.h"
#include "utility/dspinst.h"
Expand Down
1 change: 1 addition & 0 deletions analyze_fft256.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "analyze_fft256.h"
#include "sqrt_integer.h"
#include "utility/dspinst.h"
Expand Down
1 change: 1 addition & 0 deletions analyze_notefreq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "analyze_notefreq.h"
#include "utility/dspinst.h"
#include "arm_math.h"
Expand Down
1 change: 1 addition & 0 deletions analyze_peak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "analyze_peak.h"

void AudioAnalyzePeak::update(void)
Expand Down
1 change: 1 addition & 0 deletions analyze_print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "analyze_print.h"

#define STATE_IDLE 0 // doing nothing
Expand Down
1 change: 1 addition & 0 deletions analyze_rms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/


#include <Arduino.h>
#include "analyze_rms.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions analyze_tonedetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "analyze_tonedetect.h"
#include "utility/dspinst.h"

Expand Down
3 changes: 2 additions & 1 deletion control_ak4558.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
*/

#include <Arduino.h>
#include "control_ak4558.h"
#include "Wire.h"

Expand Down Expand Up @@ -298,4 +299,4 @@ bool AudioControlAK4558::volumeRight(float n)
Serial.println(registers[AK4558_ROUT_VOL], BIN);
#endif
return ret;
}
}
1 change: 1 addition & 0 deletions control_cs42448.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "control_cs42448.h"
#include "Wire.h"

Expand Down
1 change: 1 addition & 0 deletions control_cs4272.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "control_cs4272.h"
#include "Wire.h"

Expand Down
1 change: 1 addition & 0 deletions control_sgtl5000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "control_sgtl5000.h"
#include "Wire.h"

Expand Down
1 change: 1 addition & 0 deletions control_wm8731.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "control_wm8731.h"
#include "Wire.h"

Expand Down
1 change: 1 addition & 0 deletions effect_bitcrusher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_bitcrusher.h"

void AudioEffectBitcrusher::update(void)
Expand Down
1 change: 1 addition & 0 deletions effect_chorus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_chorus.h"

/******************************************************************/
Expand Down
1 change: 1 addition & 0 deletions effect_delay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_delay.h"

void AudioEffectDelay::update(void)
Expand Down
1 change: 1 addition & 0 deletions effect_delay_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_delay_ext.h"

//#define INTERNAL_TEST
Expand Down
1 change: 1 addition & 0 deletions effect_envelope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_envelope.h"

#define STATE_IDLE 0
Expand Down
1 change: 1 addition & 0 deletions effect_fade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_fade.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions effect_flange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_flange.h"
#include "arm_math.h"

Expand Down
1 change: 1 addition & 0 deletions effect_midside.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_midside.h"

void AudioEffectMidSide::update(void)
Expand Down
1 change: 1 addition & 0 deletions effect_multiply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "effect_multiply.h"

void AudioEffectMultiply::update(void)
Expand Down
1 change: 1 addition & 0 deletions effect_reverb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

// https://github.com/joaoRossiFilho/teensy_reverb

#include <Arduino.h>
#include "effect_reverb.h"
#include "utility/dspinst.h"
#include "math_helper.h"
Expand Down
1 change: 1 addition & 0 deletions effect_waveshaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "effect_waveshaper.h"

AudioEffectWaveshaper::~AudioEffectWaveshaper()
Expand Down
1 change: 1 addition & 0 deletions filter_biquad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "filter_biquad.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions filter_fir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "filter_fir.h"


Expand Down
1 change: 1 addition & 0 deletions filter_variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "filter_variable.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions input_adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "input_adc.h"
#include "utility/pdb.h"
#include "utility/dspinst.h"
Expand Down
1 change: 1 addition & 0 deletions input_adcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "input_adcs.h"
#include "utility/pdb.h"
#include "utility/dspinst.h"
Expand Down
1 change: 1 addition & 0 deletions input_i2s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "input_i2s.h"
#include "output_i2s.h"

Expand Down
1 change: 1 addition & 0 deletions input_i2s_quad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "input_i2s_quad.h"
#include "output_i2s_quad.h"

Expand Down
1 change: 1 addition & 0 deletions input_tdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "input_tdm.h"
#include "output_tdm.h"
#if defined(KINETISK)
Expand Down
1 change: 1 addition & 0 deletions mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "mixer.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions output_adat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "output_adat.h"

#if defined(KINETISK)
Expand Down
1 change: 1 addition & 0 deletions output_dac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "output_dac.h"
#include "utility/pdb.h"

Expand Down
1 change: 1 addition & 0 deletions output_dacs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "output_dacs.h"
#include "utility/pdb.h"

Expand Down
1 change: 1 addition & 0 deletions output_i2s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "output_i2s.h"
#include "memcpy_audio.h"

Expand Down
1 change: 1 addition & 0 deletions output_i2s_quad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "output_i2s_quad.h"
#include "memcpy_audio.h"

Expand Down
1 change: 1 addition & 0 deletions output_pt8211.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

//Adapted to PT8211, Frank Bösing, Ben-Rheinland

#include <Arduino.h>
#include "output_pt8211.h"
#include "memcpy_audio.h"

Expand Down
1 change: 1 addition & 0 deletions output_pwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "output_pwm.h"

audio_block_t * AudioOutputPWM::block_1st = NULL;
Expand Down
1 change: 1 addition & 0 deletions output_spdif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

// 2015/08/23: (FB) added mute_PCM() - sets or unsets VALID in VUCP (and adjusts PARITY)

#include <Arduino.h>
#include "output_spdif.h"

#if defined(KINETISK)
Expand Down
1 change: 1 addition & 0 deletions output_tdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "output_tdm.h"
#include "memcpy_audio.h"
#if defined(KINETISK)
Expand Down
1 change: 1 addition & 0 deletions play_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "play_memory.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions play_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "play_queue.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions play_sd_raw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "play_sd_raw.h"
#include "spi_interrupt.h"

Expand Down
1 change: 1 addition & 0 deletions play_sd_wav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "play_sd_wav.h"
#include "spi_interrupt.h"

Expand Down
1 change: 1 addition & 0 deletions play_serialflash_raw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "play_serialflash_raw.h"
#include "spi_interrupt.h"

Expand Down
1 change: 1 addition & 0 deletions record_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "record_queue.h"
#include "utility/dspinst.h"

Expand Down
1 change: 1 addition & 0 deletions spi_interrupt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "spi_interrupt.h"

#ifdef SPI_HAS_NOTUSINGINTERRUPT
Expand Down
1 change: 1 addition & 0 deletions synth_dc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include <Arduino.h>
#include "synth_dc.h"

void AudioSynthWaveformDc::update(void)
Expand Down
Loading

0 comments on commit 8fb976c

Please sign in to comment.