summaryrefslogtreecommitdiff
path: root/platforms/chibios
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-07-16 23:42:56 +1000
committerGitHub <noreply@github.com>2023-07-16 23:42:56 +1000
commitda2d2f947d5c30aebea17f414fb22ad50fe5410b (patch)
treefdf2ed307ddb8f32ecb9ef7444ecfdf7ff7b4904 /platforms/chibios
parentb9e5895184c6d36b46ba723d6d71e27249e70c20 (diff)
quantum: remove direct `quantum.h` includes (#21507)
Diffstat (limited to 'platforms/chibios')
-rw-r--r--platforms/chibios/drivers/audio_dac_additive.c5
-rw-r--r--platforms/chibios/drivers/audio_dac_basic.c3
-rw-r--r--platforms/chibios/drivers/audio_pwm_hardware.c3
-rw-r--r--platforms/chibios/drivers/audio_pwm_software.c3
4 files changed, 6 insertions, 8 deletions
diff --git a/platforms/chibios/drivers/audio_dac_additive.c b/platforms/chibios/drivers/audio_dac_additive.c
index d29147ca3b..9a5fe4c336 100644
--- a/platforms/chibios/drivers/audio_dac_additive.c
+++ b/platforms/chibios/drivers/audio_dac_additive.c
@@ -16,8 +16,9 @@
*/
#include "audio.h"
-#include <ch.h>
-#include <hal.h>
+#include "gpio.h"
+#include <math.h>
+#include "util.h"
// Need to disable GCC's "tautological-compare" warning for this file, as it causes issues when running `KEEP_INTERMEDIATES=yes`. Corresponding pop at the end of the file.
#pragma GCC diagnostic push
diff --git a/platforms/chibios/drivers/audio_dac_basic.c b/platforms/chibios/drivers/audio_dac_basic.c
index 4ea23a2158..9a3f3fea1f 100644
--- a/platforms/chibios/drivers/audio_dac_basic.c
+++ b/platforms/chibios/drivers/audio_dac_basic.c
@@ -16,8 +16,7 @@
*/
#include "audio.h"
-#include "ch.h"
-#include "hal.h"
+#include "gpio.h"
// Need to disable GCC's "tautological-compare" warning for this file, as it causes issues when running `KEEP_INTERMEDIATES=yes`. Corresponding pop at the end of the file.
#pragma GCC diagnostic push
diff --git a/platforms/chibios/drivers/audio_pwm_hardware.c b/platforms/chibios/drivers/audio_pwm_hardware.c
index 54dac46605..40d891326f 100644
--- a/platforms/chibios/drivers/audio_pwm_hardware.c
+++ b/platforms/chibios/drivers/audio_pwm_hardware.c
@@ -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"
diff --git a/platforms/chibios/drivers/audio_pwm_software.c b/platforms/chibios/drivers/audio_pwm_software.c
index e01f86ea52..663a9eca16 100644
--- a/platforms/chibios/drivers/audio_pwm_software.c
+++ b/platforms/chibios/drivers/audio_pwm_software.c
@@ -25,8 +25,7 @@ this driver uses the chibios-PWM system to produce a square-wave on any given ou
*/
#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"