Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quantum: remove direct quantum.h includes #21507

Merged
merged 11 commits into from
Jul 16, 2023
Prev Previous commit
Next Next commit
Audio build fixes
  • Loading branch information
fauxpark committed Jul 11, 2023
commit 7379a6fe785ddab32683e173ac909dd043e60363
8 changes: 2 additions & 6 deletions platforms/avr/drivers/audio_pwm_hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#if defined(__AVR__)
# include <avr/pgmspace.h>
# include <avr/interrupt.h>
# include <avr/io.h>
#endif

#include "audio.h"
#include "gpio.h"
#include <avr/interrupt.h>

extern bool playing_note;
extern bool playing_melody;
Expand Down
3 changes: 1 addition & 2 deletions platforms/chibios/drivers/audio_pwm_hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
// function.

#include "audio.h"
#include "ch.h"
#include "hal.h"
#include "gpio.h"

#if !defined(AUDIO_PIN)
# error "Audio feature enabled, but no pin selected - see docs/feature_audio under the ARM PWM settings"
Expand Down
4 changes: 3 additions & 1 deletion quantum/process_keycode/process_clicky.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "audio.h"
#include "process_clicky.h"
#include "audio.h"
#include "eeconfig.h"
#include <stdlib.h>

#ifdef AUDIO_CLICKY

Expand Down