12 #ifndef CONFIG_CHECK_MBED_H
13 #define CONFIG_CHECK_MBED_H
67 #error This header should be included for MBED architecture, only
71 #if !defined(MOZZI_AUDIO_MODE)
72 #define MOZZI_AUDIO_MODE MOZZI_OUTPUT_INTERNAL_DAC
74 MOZZI_CHECK_SUPPORTED(
MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_TIMED, MOZZI_OUTPUT_EXTERNAL_CUSTOM, MOZZI_OUTPUT_PDM_VIA_SERIAL, MOZZI_OUTPUT_INTERNAL_DAC)
76 #if !defined(MOZZI_AUDIO_RATE)
77 #define MOZZI_AUDIO_RATE 32768
80 #if defined(MOZZI_PWM_RATE)
81 #error Configuration of MOZZI_PWM_RATE is not currently supported on this platform (always same as MOZZI_AUDIO_RATE)
84 #if !defined(MOZZI_ANALOG_READ)
85 # define MOZZI_ANALOG_READ MOZZI_ANALOG_READ_NONE
90 MOZZI_CHECK_SUPPORTED(MOZZI_AUDIO_INPUT, MOZZI_AUDIO_INPUT_NONE, MOZZI_AUDIO_INPUT_STANDARD)
92 #if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_INTERNAL_DAC)
93 # if !defined(MOZZI_AUDIO_BITS)
94 # define MOZZI_AUDIO_BITS 12
96 # if !defined(MOZZI_AUDIO_PIN_1)
97 # define MOZZI_AUDIO_PIN_1 A13
99 # if !defined(MOZZI_AUDIO_PIN_2)
100 # define MOZZI_AUDIO_PIN_2 A12
104 #if !defined(MOZZI_AUDIO_BITS)
105 # define MOZZI_AUDIO_BITS 16
108 #if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PDM_VIA_SERIAL)
109 # if !defined(MOZZI_PDM_RESOLUTION)
110 # define MOZZI_PDM_RESOLUTION 2
112 # if !defined(MOZZI_SERIAL_PIN_TX)
113 # define MOZZI_SERIAL_PIN_TX SERIAL2_TX
115 # if !defined(MOZZI_SERIAL_PIN_RX)
116 # define MOZZI_SERIAL_PIN_RX SERIAL2_RX
121 #if !MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_TIMED)
122 # define BYPASS_MOZZI_OUTPUT_BUFFER true
126 #define MOZZI__INTERNAL_ANALOG_READ_RESOLUTION 16