quantum: remove direct quantum.h
includes (#21507)
This commit is contained in:
parent
b9e5895184
commit
da2d2f947d
51 changed files with 208 additions and 62 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue