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
Misc fixes 2
  • Loading branch information
fauxpark committed Jul 11, 2023
commit cb72ff6d3ae408f309277850eaf9b5ac783b5954
2 changes: 1 addition & 1 deletion keyboards/boardsource/lulu/lulu.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2022 Cole Smith <cole@boadsource.xyz>
// SPDX-License-Identifier: GPL-2.0-or-later
#include "encoder.h"
#include "quantum.h"

#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
Expand Down
1 change: 1 addition & 0 deletions platforms/chibios/drivers/audio_dac_additive.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "audio.h"
#include <ch.h>
#include <hal.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
Expand Down
5 changes: 3 additions & 2 deletions platforms/chibios/drivers/audio_pwm_software.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ 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 <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
1 change: 1 addition & 0 deletions quantum/audio/voices.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
#include "voices.h"
#include "audio.h"
#include "timer.h"
#include <stdlib.h>

uint8_t note_timbre = TIMBRE_DEFAULT;
Expand Down
2 changes: 1 addition & 1 deletion quantum/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# include "process_midi.h"
#endif
#ifdef JOYSTICK_ENABLE
# include "process_joystick.h"
# include "joystick.h"
#endif
#ifdef HD44780_ENABLE
# include "hd44780.h"
Expand Down
5 changes: 5 additions & 0 deletions quantum/via.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@
#include "eeconfig.h"
#include "matrix.h"
#include "timer.h"
#include "wait.h"
#include "version.h" // for QMK_BUILDDATE used in EEPROM magic

#if defined(AUDIO_ENABLE)
# include "audio.h"
#endif

#if defined(BACKLIGHT_ENABLE)
# include "backlight.h"
#endif
Expand Down
1 change: 1 addition & 0 deletions tmk_core/protocol/arm_atsam/main_arm_atsam.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "report.h"
#include "host.h"
#include "host_driver.h"
#include "suspend.h"
#include "keycode_config.h"
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions tmk_core/protocol/arm_atsam/md_rgb_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# include "led.h"
# include "rgb_matrix.h"
# include "eeprom.h"
# include "host.h"
# include <string.h>
# include <math.h>

Expand Down
2 changes: 2 additions & 0 deletions tmk_core/protocol/arm_atsam/spi_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#pragma once

#include <stdint.h>
#include <stdbool.h>
#include "gpio.h"

typedef int16_t spi_status_t;

Expand Down