12 #ifndef CONFIG_CHECKS_STM32MAPLE_H
13 #define CONFIG_CHECKS_STM32MAPLE_H
82 #if not IS_STM32MAPLE()
83 #error This header should be included for STM32 (libmaple based core), only
86 #if !defined(MOZZI_AUDIO_MODE)
87 # define MOZZI_AUDIO_MODE MOZZI_OUTPUT_PWM
89 MOZZI_CHECK_SUPPORTED(
MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_TIMED, MOZZI_OUTPUT_EXTERNAL_CUSTOM, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM)
91 #if !defined(MOZZI_AUDIO_RATE)
92 # define MOZZI_AUDIO_RATE 32768
95 #if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM, MOZZI_OUTPUT_2PIN_PWM, MOZZI_OUTPUT_EXTERNAL_TIMED)
96 # if !defined(MOZZI_AUDIO_UPDATE_TIMER)
97 # define MOZZI_AUDIO_UPDATE_TIMER 2
99 # if !defined(MOZZI_AUDIO_PWM_TIMER)
100 # define MOZZI_AUDIO_PWM_TIMER 4
104 #if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PWM)
105 # if !defined(MOZZI_AUDIO_PIN_1)
106 # define MOZZI_AUDIO_PIN_1 PB8
108 # if (MOZZI_AUDIO_CHANNELS > 1) && !defined(MOZZI_AUDIO_PIN_1)
109 # define MOZZI_AUDIO_PIN_2 PB9
111 # if !defined(MOZZI_AUDIO_BITS)
112 # define MOZZI_AUDIO_BITS 10
114 # define MOZZI_AUDIO_BITS_PER_CHANNEL MOZZI_AUDIO_BITS
115 #elif MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_2PIN_PWM)
116 # if !defined(MOZZI_AUDIO_PIN_1)
117 # define MOZZI_AUDIO_PIN_1 PB8
119 # if !defined(MOZZI_AUDIO_PIN_1_LOW)
120 # define MOZZI_AUDIO_PIN_1_LOW PB9
122 # include "disable_stereo_on_github_workflow.h"
124 # if !defined(MOZZI_AUDIO_PER_CHANNEL)
125 # define MOZZI_AUDIO_PER_CHANNEL 7
127 # define MOZZI_AUDIO_BITS MOZZI_AUDIO_BITS_PER_CHANNEL * 2
130 #if !defined(MOZZI_ANALOG_READ)
131 #define MOZZI_ANALOG_READ MOZZI_ANALOG_READ_STANDARD
135 #define MOZZI__INTERNAL_ANALOG_READ_RESOLUTION 12
#define MOZZI_AUDIO_CHANNELS
This sets allows to change from a single/mono audio output channel to stereo output.
#define MOZZI_AUDIO_MODE
Configure how Mozzi outputs generated sounds.