1
0
Fork 0

Change include guards in quantum/ to pragma once (#11239)

This commit is contained in:
Ryan 2020-12-26 15:53:12 +11:00 committed by GitHub
parent 53eb7f0774
commit 48f4768d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 68 additions and 204 deletions

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _API_H_ #pragma once
#define _API_H_
#ifdef __AVR__ #ifdef __AVR__
# include "lufa.h" # include "lufa.h"
@ -54,5 +53,3 @@ __attribute__((weak)) bool process_api_quantum(uint8_t length, uint8_t* data);
__attribute__((weak)) bool process_api_keyboard(uint8_t length, uint8_t* data); __attribute__((weak)) bool process_api_keyboard(uint8_t length, uint8_t* data);
__attribute__((weak)) bool process_api_user(uint8_t length, uint8_t* data); __attribute__((weak)) bool process_api_user(uint8_t length, uint8_t* data);
#endif

View file

@ -14,13 +14,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _API_SYSEX_H_ #pragma once
#define _API_SYSEX_H_
#include "api.h" #include "api.h"
void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t* bytes, uint16_t length); void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t* bytes, uint16_t length);
#define SEND_BYTES(mt, dt, b, l) send_bytes_sysex(mt, dt, b, l) #define SEND_BYTES(mt, dt, b, l) send_bytes_sysex(mt, dt, b, l)
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef AUDIO_H
#define AUDIO_H #pragma once
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -103,5 +103,3 @@ void play_notes(float (*np)[][2], uint16_t n_count, bool n_repeat);
#define PLAY_LOOP(note_array) play_notes(&note_array, NOTE_ARRAY_SIZE((note_array)), true) #define PLAY_LOOP(note_array) play_notes(&note_array, NOTE_ARRAY_SIZE((note_array)), true)
bool is_playing_notes(void); bool is_playing_notes(void);
#endif

View file

@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
#if defined(__AVR__) #if defined(__AVR__)
# include <avr/io.h> # include <avr/io.h>
# include <avr/interrupt.h> # include <avr/interrupt.h>
@ -23,14 +25,9 @@
# include <hal.h> # include <hal.h>
#endif #endif
#ifndef LUTS_H
# define LUTS_H
#define VIBRATO_LUT_LENGTH 20 #define VIBRATO_LUT_LENGTH 20
#define FREQUENCY_LUT_LENGTH 349 #define FREQUENCY_LUT_LENGTH 349
extern const float vibrato_lut[VIBRATO_LUT_LENGTH]; extern const float vibrato_lut[VIBRATO_LUT_LENGTH];
extern const uint16_t frequency_lut[FREQUENCY_LUT_LENGTH]; extern const uint16_t frequency_lut[FREQUENCY_LUT_LENGTH];
#endif /* LUTS_H */

View file

@ -1,9 +1,6 @@
#ifndef MUSE_H #pragma once
#define MUSE_H
#include "quantum.h" #include "quantum.h"
#include "process_audio.h" #include "process_audio.h"
uint8_t muse_clock_pulse(void); uint8_t muse_clock_pulse(void);
#endif

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef MUSICAL_NOTES_H #pragma once
#define MUSICAL_NOTES_H
// Tempo Placeholder // Tempo Placeholder
#define TEMPO_DEFAULT 100 #define TEMPO_DEFAULT 100
@ -229,5 +228,3 @@
#define NOTE_GF8 NOTE_FS8 #define NOTE_GF8 NOTE_FS8
#define NOTE_AF8 NOTE_GS8 #define NOTE_AF8 NOTE_GS8
#define NOTE_BF8 NOTE_AS8 #define NOTE_BF8 NOTE_AS8
#endif

View file

@ -13,6 +13,9 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#if defined(__AVR__) #if defined(__AVR__)
@ -21,9 +24,6 @@
#include "wait.h" #include "wait.h"
#include "luts.h" #include "luts.h"
#ifndef VOICES_H
# define VOICES_H
float voice_envelope(float frequency); float voice_envelope(float frequency);
typedef enum { typedef enum {
@ -48,5 +48,3 @@ typedef enum {
void set_voice(voice_type v); void set_voice(voice_type v);
void voice_iterate(void); void voice_iterate(void);
void voice_deiterate(void); void voice_deiterate(void);
#endif

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef COLOR_H #pragma once
#define COLOR_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -86,4 +85,3 @@ RGB hsv_to_rgb_nocie(HSV hsv);
#ifdef RGBW #ifdef RGBW
void convert_rgb_to_rgbw(LED_TYPE *led); void convert_rgb_to_rgbw(LED_TYPE *led);
#endif #endif
#endif // COLOR_H

View file

@ -14,13 +14,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
#include "eeconfig.h" #include "eeconfig.h"
#include "keycode.h" #include "keycode.h"
#include "action_code.h" #include "action_code.h"
#ifndef KEYCODE_CONFIG_H
# define KEYCODE_CONFIG_H
uint16_t keycode_config(uint16_t keycode); uint16_t keycode_config(uint16_t keycode);
uint8_t mod_config(uint8_t mod); uint8_t mod_config(uint8_t mod);
@ -42,5 +41,3 @@ typedef union {
} keymap_config_t; } keymap_config_t;
extern keymap_config_t keymap_config; extern keymap_config_t keymap_config;
#endif /* KEYCODE_CONFIG_H */

View file

@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef KEYMAP_H #pragma once
#define KEYMAP_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -55,5 +54,3 @@ uint16_t keymap_function_id_to_action(uint16_t function_id);
extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS];
extern const uint16_t fn_actions[]; extern const uint16_t fn_actions[];
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef KEYMAP_NORDIC_H
#define KEYMAP_NORDIC_H #pragma once
#include "keymap.h" #include "keymap.h"
@ -66,5 +66,3 @@
#define NO_BSLS ALGR(KC_MINS) #define NO_BSLS ALGR(KC_MINS)
#define NO_MU ALGR(KC_M) #define NO_MU ALGR(KC_M)
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef KEYMAP_PLOVER_DVORAK_H
#define KEYMAP_PLOVER_DVORAK_H #pragma once
#include "keymap_dvorak.h" #include "keymap_dvorak.h"
@ -43,5 +43,3 @@
#define PD_O DV_V #define PD_O DV_V
#define PD_E DV_N #define PD_E DV_N
#define PD_U DV_M #define PD_U DV_M
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef KEYMAP_STENO_H
#define KEYMAP_STENO_H #pragma once
#include "keymap.h" #include "keymap.h"
@ -72,5 +72,3 @@ enum steno_keycodes {
STN_ZR, STN_ZR,
STN__MAX = STN_ZR, // must be less than QK_STENO_BOLT STN__MAX = STN_ZR, // must be less than QK_STENO_BOLT
}; };
#endif

View file

@ -17,8 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef LED_MATRIX_H #pragma once
#define LED_MATRIX_H
#ifndef BACKLIGHT_ENABLE #ifndef BACKLIGHT_ENABLE
# error You must define BACKLIGHT_ENABLE with LED_MATRIX_ENABLE # error You must define BACKLIGHT_ENABLE with LED_MATRIX_ENABLE
@ -123,5 +122,3 @@ typedef struct {
} led_matrix_driver_t; } led_matrix_driver_t;
extern const led_matrix_driver_t led_matrix_driver; extern const led_matrix_driver_t led_matrix_driver;
#endif

View file

@ -13,8 +13,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef LED_TABLES_H #pragma once
#define LED_TABLES_H
#include "progmem.h" #include "progmem.h"
#include <stdint.h> #include <stdint.h>
@ -22,5 +21,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef USE_CIE1931_CURVE #ifdef USE_CIE1931_CURVE
extern const uint8_t CIE1931_CURVE[] PROGMEM; extern const uint8_t CIE1931_CURVE[] PROGMEM;
#endif #endif
#endif

View file

@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef POINTING_DEVICE_H #pragma once
#define POINTING_DEVICE_H
#include <stdint.h> #include <stdint.h>
#include "host.h" #include "host.h"
@ -27,5 +26,3 @@ void pointing_device_task(void);
void pointing_device_send(void); void pointing_device_send(void);
report_mouse_t pointing_device_get_report(void); report_mouse_t pointing_device_get_report(void);
void pointing_device_set_report(report_mouse_t newMouseReport); void pointing_device_set_report(report_mouse_t newMouseReport);
#endif

View file

@ -1,5 +1,4 @@
#ifndef PROCESS_AUDIO_H #pragma once
#define PROCESS_AUDIO_H
float compute_freq_for_midi_note(uint8_t note); float compute_freq_for_midi_note(uint8_t note);
@ -9,5 +8,3 @@ void process_audio_noteoff(uint8_t note);
void process_audio_all_notes_off(void); void process_audio_all_notes_off(void);
void audio_on_user(void); void audio_on_user(void);
#endif

View file

@ -1,5 +1,4 @@
#ifndef PROCESS_CLICKY_H #pragma once
#define PROCESS_CLICKY_H
void clicky_play(void); void clicky_play(void);
bool process_clicky(uint16_t keycode, keyrecord_t *record); bool process_clicky(uint16_t keycode, keyrecord_t *record);
@ -13,5 +12,3 @@ void clicky_on(void);
void clicky_off(void); void clicky_off(void);
bool is_clicky_on(void); bool is_clicky_on(void);
#endif

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_COMBO_H #pragma once
#define PROCESS_COMBO_H
#include "progmem.h" #include "progmem.h"
#include "quantum.h" #include "quantum.h"
@ -62,5 +61,3 @@ void combo_enable(void);
void combo_disable(void); void combo_disable(void);
void combo_toggle(void); void combo_toggle(void);
bool is_combo_enabled(void); bool is_combo_enabled(void);
#endif

View file

@ -14,11 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_KEY_LOCK_H #pragma once
#define PROCESS_KEY_LOCK_H
#include "quantum.h" #include "quantum.h"
bool process_key_lock(uint16_t *keycode, keyrecord_t *record); bool process_key_lock(uint16_t *keycode, keyrecord_t *record);
#endif // PROCESS_KEY_LOCK_H

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_LEADER_H #pragma once
#define PROCESS_LEADER_H
#include "quantum.h" #include "quantum.h"
@ -37,5 +36,3 @@ void qk_leader_start(void);
extern uint16_t leader_sequence[5]; \ extern uint16_t leader_sequence[5]; \
extern uint8_t leader_sequence_size extern uint8_t leader_sequence_size
#define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT) #define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT)
#endif

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_MIDI_H #pragma once
#define PROCESS_MIDI_H
#include "quantum.h" #include "quantum.h"
@ -53,5 +52,3 @@ uint8_t midi_compute_note(uint16_t keycode);
# endif // MIDI_ADVANCED # endif // MIDI_ADVANCED
#endif // MIDI_ENABLE #endif // MIDI_ENABLE
#endif

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_MUSIC_H #pragma once
#define PROCESS_MUSIC_H
#include "quantum.h" #include "quantum.h"
@ -57,5 +56,3 @@ bool music_mask_user(uint16_t keycode);
# endif # endif
#endif // defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC)) #endif // defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC))
#endif

View file

@ -14,13 +14,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_PRINTER_H #pragma once
#define PROCESS_PRINTER_H
#include "quantum.h" #include "quantum.h"
#include "protocol/serial.h" #include "protocol/serial.h"
bool process_printer(uint16_t keycode, keyrecord_t *record); bool process_printer(uint16_t keycode, keyrecord_t *record);
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_STENO_H
#define PROCESS_STENO_H #pragma once
#include "quantum.h" #include "quantum.h"
@ -25,5 +25,3 @@ void steno_init(void);
void steno_set_mode(steno_mode_t mode); void steno_set_mode(steno_mode_t mode);
uint8_t *steno_get_state(void); uint8_t *steno_get_state(void);
uint8_t *steno_get_chord(void); uint8_t *steno_get_chord(void);
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_TAP_DANCE_H
#define PROCESS_TAP_DANCE_H #pragma once
#ifdef TAP_DANCE_ENABLE #ifdef TAP_DANCE_ENABLE
@ -101,5 +101,3 @@ void qk_tap_dance_dual_role_reset(qk_tap_dance_state_t *state, void *user_data);
# define TD(n) KC_NO # define TD(n) KC_NO
#endif #endif
#endif

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_TERMINAL_H #pragma once
#define PROCESS_TERMINAL_H
#include "quantum.h" #include "quantum.h"
@ -23,5 +22,3 @@ extern const char keycode_to_ascii_lut[58];
extern const char shifted_keycode_to_ascii_lut[58]; extern const char shifted_keycode_to_ascii_lut[58];
extern const char terminal_prompt[8]; extern const char terminal_prompt[8];
bool process_terminal(uint16_t keycode, keyrecord_t *record); bool process_terminal(uint16_t keycode, keyrecord_t *record);
#endif

View file

@ -14,12 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PROCESS_TERMINAL_H #pragma once
#define PROCESS_TERMINAL_H
#include "quantum.h" #include "quantum.h"
#define TERM_ON KC_NO #define TERM_ON KC_NO
#define TERM_OFF KC_NO #define TERM_OFF KC_NO
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef QUANTUM_KEYCODES_H
#define QUANTUM_KEYCODES_H #pragma once
#if defined(SEQUENCER_ENABLE) #if defined(SEQUENCER_ENABLE)
# include "sequencer.h" # include "sequencer.h"
@ -889,5 +889,3 @@ enum quantum_keycodes {
#define DM_RSTP DYN_REC_STOP #define DM_RSTP DYN_REC_STOP
#define DM_PLY1 DYN_MACRO_PLAY1 #define DM_PLY1 DYN_MACRO_PLAY1
#define DM_PLY2 DYN_MACRO_PLAY2 #define DM_PLY2 DYN_MACRO_PLAY2
#endif // QUANTUM_KEYCODES_H

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef RGB_H #pragma once
#define RGB_H
__attribute__((weak)) void rgblight_toggle(void){}; __attribute__((weak)) void rgblight_toggle(void){};
@ -38,5 +37,3 @@ __attribute__((weak)) void rgblight_decrease_val(void){};
__attribute__((weak)) void rgblight_increase_speed(void){}; __attribute__((weak)) void rgblight_increase_speed(void){};
__attribute__((weak)) void rgblight_decrease_speed(void){}; __attribute__((weak)) void rgblight_decrease_speed(void){};
#endif

View file

@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef RGB_MATRIX_H #pragma once
#define RGB_MATRIX_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -226,5 +225,3 @@ extern last_hit_t g_last_hit_tracker;
#ifdef RGB_MATRIX_FRAMEBUFFER_EFFECTS #ifdef RGB_MATRIX_FRAMEBUFFER_EFFECTS
extern uint8_t g_rgb_frame_buffer[MATRIX_ROWS][MATRIX_COLS]; extern uint8_t g_rgb_frame_buffer[MATRIX_ROWS][MATRIX_COLS];
#endif #endif
#endif

View file

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef RGBLIGHT_H
#define RGBLIGHT_H #pragma once
/***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) **** /***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) ****
@ -437,4 +437,3 @@ void rgblight_effect_twinkle(animation_status_t *anim);
# endif # endif
#endif // #ifndef RGBLIGHT_H_DUMMY_DEFINE #endif // #ifndef RGBLIGHT_H_DUMMY_DEFINE
#endif // RGBLIGHT_H

View file

@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef SERIAL_LINK_BYTE_STUFFER_H #pragma once
#define SERIAL_LINK_BYTE_STUFFER_H
#include <stdint.h> #include <stdint.h>
@ -33,5 +32,3 @@ SOFTWARE.
void init_byte_stuffer(void); void init_byte_stuffer(void);
void byte_stuffer_recv_byte(uint8_t link, uint8_t data); void byte_stuffer_recv_byte(uint8_t link, uint8_t data);
void byte_stuffer_send_frame(uint8_t link, uint8_t* data, uint16_t size); void byte_stuffer_send_frame(uint8_t link, uint8_t* data, uint16_t size);
#endif

View file

@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef SERIAL_LINK_FRAME_ROUTER_H #pragma once
#define SERIAL_LINK_FRAME_ROUTER_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -34,5 +33,3 @@ SOFTWARE.
void router_set_master(bool master); void router_set_master(bool master);
void route_incoming_frame(uint8_t link, uint8_t* data, uint16_t size); void route_incoming_frame(uint8_t link, uint8_t* data, uint16_t size);
void router_send_frame(uint8_t destination, uint8_t* data, uint16_t size); void router_send_frame(uint8_t destination, uint8_t* data, uint16_t size);
#endif

View file

@ -22,13 +22,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef SERIAL_LINK_FRAME_VALIDATOR_H #pragma once
#define SERIAL_LINK_FRAME_VALIDATOR_H
#include <stdint.h> #include <stdint.h>
void validator_recv_frame(uint8_t link, uint8_t* data, uint16_t size); void validator_recv_frame(uint8_t link, uint8_t* data, uint16_t size);
// The buffer pointed to by the data needs 4 additional bytes // The buffer pointed to by the data needs 4 additional bytes
void validator_send_frame(uint8_t link, uint8_t* data, uint16_t size); void validator_send_frame(uint8_t link, uint8_t* data, uint16_t size);
#endif

View file

@ -22,9 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef SERIAL_LINK_PHYSICAL_H #pragma once
#define SERIAL_LINK_PHYSICAL_H
void send_data(uint8_t link, const uint8_t* data, uint16_t size); void send_data(uint8_t link, const uint8_t* data, uint16_t size);
#endif

View file

@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef SERIAL_LINK_TRANSPORT_H #pragma once
#define SERIAL_LINK_TRANSPORT_H
#include "serial_link/protocol/triple_buffered_object.h" #include "serial_link/protocol/triple_buffered_object.h"
#include "serial_link/system/serial_link.h" #include "serial_link/system/serial_link.h"
@ -138,5 +137,3 @@ void add_remote_objects(remote_object_t** remote_objects, uint32_t num_remote_ob
void reinitialize_serial_link_transport(void); void reinitialize_serial_link_transport(void);
void transport_recv_frame(uint8_t from, uint8_t* data, uint16_t size); void transport_recv_frame(uint8_t from, uint8_t* data, uint16_t size);
void update_transport(void); void update_transport(void);
#endif

View file

@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef SERIAL_LINK_TRIPLE_BUFFERED_OBJECT_H #pragma once
#define SERIAL_LINK_TRIPLE_BUFFERED_OBJECT_H
#include <stdint.h> #include <stdint.h>
@ -43,5 +42,3 @@ void triple_buffer_init(triple_buffer_object_t* object);
void* triple_buffer_begin_write_internal(uint16_t object_size, triple_buffer_object_t* object); void* triple_buffer_begin_write_internal(uint16_t object_size, triple_buffer_object_t* object);
void triple_buffer_end_write_internal(triple_buffer_object_t* object); void triple_buffer_end_write_internal(triple_buffer_object_t* object);
void* triple_buffer_read_internal(uint16_t object_size, triple_buffer_object_t* object); void* triple_buffer_read_internal(uint16_t object_size, triple_buffer_object_t* object);
#endif

View file

@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef SERIAL_LINK_H #pragma once
#define SERIAL_LINK_H
#include "host_driver.h" #include "host_driver.h"
#include <stdbool.h> #include <stdbool.h>
@ -53,5 +52,3 @@ inline void serial_link_unlock(void) {}
void signal_data_written(void); void signal_data_written(void);
#endif #endif
#endif

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef VARIABLE_TRACE_H #pragma once
#define VARIABLE_TRACE_H
// For more information about the variable tracing see the readme. // For more information about the variable tracing see the readme.
@ -46,4 +45,3 @@
void add_traced_variable(const char* name, void* addr, unsigned size, const char* func, int line); void add_traced_variable(const char* name, void* addr, unsigned size, const char* func, int line);
void remove_traced_variable(const char* name, const char* func, int line); void remove_traced_variable(const char* name, const char* func, int line);
void verify_traced_variables(const char* func, int line); void verify_traced_variables(const char* func, int line);
#endif

View file

@ -1,5 +1,4 @@
#ifndef VELOCIKEY_H #pragma once
#define VELOCIKEY_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -9,5 +8,3 @@ void velocikey_toggle(void);
void velocikey_accelerate(void); void velocikey_accelerate(void);
void velocikey_decelerate(void); void velocikey_decelerate(void);
uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue); uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue);
#endif

View file

@ -19,8 +19,7 @@
* Please use spaces instead of tabs in this file. * Please use spaces instead of tabs in this file.
*/ */
#ifndef COMMON_GFXCONF_H #pragma once
#define COMMON_GFXCONF_H
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// GFX - Compatibility options // // GFX - Compatibility options //
@ -353,5 +352,3 @@
#define GMISC_NEED_MATRIXFLOAT2D GFXON #define GMISC_NEED_MATRIXFLOAT2D GFXON
#define GMISC_NEED_MATRIXFIXED2D GFXOFF #define GMISC_NEED_MATRIXFIXED2D GFXOFF
//#define GMISC_NEED_HITTEST_POLY GFXOFF //#define GMISC_NEED_HITTEST_POLY GFXOFF
#endif /* COMMON_GFXCONF_H */

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef DEFAULT_ANIMATIONS_H_ #pragma once
#define DEFAULT_ANIMATIONS_H_
#include "visualizer.h" #include "visualizer.h"
@ -26,5 +25,3 @@ extern keyframe_animation_t default_suspend_animation;
// An animation for testing and demonstrating the led support, should probably not be used for real world // An animation for testing and demonstrating the led support, should probably not be used for real world
// cases // cases
extern keyframe_animation_t led_test_animation; extern keyframe_animation_t led_test_animation;
#endif /* DEFAULT_ANIMATIONS_H_ */

View file

@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef LCD_BACKLIGHT_H_ #pragma once
#define LCD_BACKLIGHT_H_
#include <stdint.h> #include <stdint.h>
// Helper macros for storing hue, staturation and intensity as unsigned integers // Helper macros for storing hue, staturation and intensity as unsigned integers
@ -41,5 +41,3 @@ uint8_t lcd_get_backlight_brightness(void);
void lcd_backlight_hal_init(void); void lcd_backlight_hal_init(void);
void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b);
#endif /* LCD_BACKLIGHT_H_ */

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ #pragma once
#define QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_
#include "visualizer.h" #include "visualizer.h"
@ -26,5 +25,3 @@ bool lcd_backlight_keyframe_set_color(keyframe_animation_t* animation, visualize
bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state);
bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
#endif /* QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ */

View file

@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ #pragma once
#define QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_
#include "visualizer.h" #include "visualizer.h"
@ -34,5 +33,3 @@ bool lcd_keyframe_draw_logo(keyframe_animation_t* animation, visualizer_state_t*
bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state);
bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
#endif /* QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ */

View file

@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef LED_BACKLIGHT_KEYFRAMES_H #pragma once
#define LED_BACKLIGHT_KEYFRAMES_H
#include "visualizer.h" #include "visualizer.h"
@ -39,5 +38,3 @@ bool led_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_
bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
extern keyframe_animation_t led_test_animation; extern keyframe_animation_t led_test_animation;
#endif /* LED_KEYFRAMES_H */

View file

@ -14,13 +14,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ #pragma once
#define QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_
#include <stdint.h> #include <stdint.h>
#ifdef LCD_ENABLE #ifdef LCD_ENABLE
extern const uint8_t resource_lcd_logo[]; extern const uint8_t resource_lcd_logo[];
#endif #endif
#endif /* QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ */

View file

@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#ifndef VISUALIZER_H #pragma once
#define VISUALIZER_H
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -152,5 +152,3 @@ void user_visualizer_suspend(visualizer_state_t* state);
void initialize_user_visualizer(visualizer_state_t* state); void initialize_user_visualizer(visualizer_state_t* state);
// Called when the computer resumes from a suspend // Called when the computer resumes from a suspend
void user_visualizer_resume(visualizer_state_t* state); void user_visualizer_resume(visualizer_state_t* state);
#endif /* VISUALIZER_H */

View file

@ -14,13 +14,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ #pragma once
#define QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_
#include "visualizer.h" #include "visualizer.h"
// Some predefined keyframe functions that can be used by the user code // Some predefined keyframe functions that can be used by the user code
// Does nothing, useful for adding delays // Does nothing, useful for adding delays
bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state); bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state);
#endif /* QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ */