diff options
| -rw-r--r-- | drivers/sensors/adns5050.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/adns9800.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/analog_joystick.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/azoteq_iqs5xx.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/cirque_pinnacle.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/paw3204.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/pimoroni_trackball.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/pmw3320.h | 2 | ||||
| -rw-r--r-- | drivers/sensors/pmw33xx_common.h | 2 | ||||
| -rw-r--r-- | keyboards/bajjak/bajjak.c | 4 | ||||
| -rw-r--r-- | keyboards/bajjak/bajjak.h | 6 | ||||
| -rw-r--r-- | keyboards/hardwareabstraction/handwire/handwire.c | 2 | ||||
| -rw-r--r-- | keyboards/sekigon/grs_70ec/matrix.c | 2 | ||||
| -rw-r--r-- | keyboards/system76/launch_1/launch_1.c | 2 | ||||
| -rw-r--r-- | keyboards/system76/launch_1/rgb_matrix_kb.inc | 2 | ||||
| -rw-r--r-- | keyboards/system76/system76_ec.c | 2 | ||||
| -rw-r--r-- | keyboards/work_louder/rgb_functions.c | 1 | ||||
| -rw-r--r-- | quantum/audio/audio.c | 5 |
18 files changed, 25 insertions, 19 deletions
diff --git a/drivers/sensors/adns5050.h b/drivers/sensors/adns5050.h index 004c54f560..648b49e387 100644 --- a/drivers/sensors/adns5050.h +++ b/drivers/sensors/adns5050.h | |||
| @@ -70,7 +70,7 @@ typedef struct { | |||
| 70 | int8_t dy; | 70 | int8_t dy; |
| 71 | } report_adns5050_t; | 71 | } report_adns5050_t; |
| 72 | 72 | ||
| 73 | const pointing_device_driver_t adns5050_pointing_device_driver; | 73 | extern const pointing_device_driver_t adns5050_pointing_device_driver; |
| 74 | 74 | ||
| 75 | // A bunch of functions to implement the ADNS5050-specific serial protocol. | 75 | // A bunch of functions to implement the ADNS5050-specific serial protocol. |
| 76 | // Note that the "serial.h" driver is insufficient, because it does not | 76 | // Note that the "serial.h" driver is insufficient, because it does not |
diff --git a/drivers/sensors/adns9800.h b/drivers/sensors/adns9800.h index 797aaf3cd0..ea854e8675 100644 --- a/drivers/sensors/adns9800.h +++ b/drivers/sensors/adns9800.h | |||
| @@ -61,7 +61,7 @@ typedef struct { | |||
| 61 | int16_t y; | 61 | int16_t y; |
| 62 | } report_adns9800_t; | 62 | } report_adns9800_t; |
| 63 | 63 | ||
| 64 | const pointing_device_driver_t adns9800_pointing_device_driver; | 64 | extern const pointing_device_driver_t adns9800_pointing_device_driver; |
| 65 | 65 | ||
| 66 | bool adns9800_init(void); | 66 | bool adns9800_init(void); |
| 67 | config_adns9800_t adns9800_get_config(void); | 67 | config_adns9800_t adns9800_get_config(void); |
diff --git a/drivers/sensors/analog_joystick.h b/drivers/sensors/analog_joystick.h index 4838f502f1..f8cc315533 100644 --- a/drivers/sensors/analog_joystick.h +++ b/drivers/sensors/analog_joystick.h | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | # define ANALOG_JOYSTICK_SPEED_MAX 2 | 43 | # define ANALOG_JOYSTICK_SPEED_MAX 2 |
| 44 | #endif | 44 | #endif |
| 45 | 45 | ||
| 46 | const pointing_device_driver_t analog_joystick_pointing_device_driver; | 46 | extern const pointing_device_driver_t analog_joystick_pointing_device_driver; |
| 47 | 47 | ||
| 48 | typedef struct { | 48 | typedef struct { |
| 49 | int8_t x; | 49 | int8_t x; |
diff --git a/drivers/sensors/azoteq_iqs5xx.h b/drivers/sensors/azoteq_iqs5xx.h index 1a70ac6149..a5866b3d85 100644 --- a/drivers/sensors/azoteq_iqs5xx.h +++ b/drivers/sensors/azoteq_iqs5xx.h | |||
| @@ -178,7 +178,7 @@ typedef struct { | |||
| 178 | # define POINTING_DEVICE_TASK_THROTTLE_MS AZOTEQ_IQS5XX_REPORT_RATE + 1 | 178 | # define POINTING_DEVICE_TASK_THROTTLE_MS AZOTEQ_IQS5XX_REPORT_RATE + 1 |
| 179 | #endif | 179 | #endif |
| 180 | 180 | ||
| 181 | const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver; | 181 | extern const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver; |
| 182 | 182 | ||
| 183 | bool azoteq_iqs5xx_init(void); | 183 | bool azoteq_iqs5xx_init(void); |
| 184 | i2c_status_t azoteq_iqs5xx_wake(void); | 184 | i2c_status_t azoteq_iqs5xx_wake(void); |
diff --git a/drivers/sensors/cirque_pinnacle.h b/drivers/sensors/cirque_pinnacle.h index 3541d62463..f71ee8da1f 100644 --- a/drivers/sensors/cirque_pinnacle.h +++ b/drivers/sensors/cirque_pinnacle.h | |||
| @@ -112,7 +112,7 @@ typedef struct { | |||
| 112 | 112 | ||
| 113 | #define cirque_pinnacle_i2c_pointing_device_driver cirque_pinnacle_pointing_device_driver | 113 | #define cirque_pinnacle_i2c_pointing_device_driver cirque_pinnacle_pointing_device_driver |
| 114 | #define cirque_pinnacle_spi_pointing_device_driver cirque_pinnacle_pointing_device_driver | 114 | #define cirque_pinnacle_spi_pointing_device_driver cirque_pinnacle_pointing_device_driver |
| 115 | const pointing_device_driver_t cirque_pinnacle_pointing_device_driver; | 115 | extern const pointing_device_driver_t cirque_pinnacle_pointing_device_driver; |
| 116 | 116 | ||
| 117 | bool cirque_pinnacle_init(void); | 117 | bool cirque_pinnacle_init(void); |
| 118 | void cirque_pinnacle_calibrate(void); | 118 | void cirque_pinnacle_calibrate(void); |
diff --git a/drivers/sensors/paw3204.h b/drivers/sensors/paw3204.h index 11759d64c3..0bf5713548 100644 --- a/drivers/sensors/paw3204.h +++ b/drivers/sensors/paw3204.h | |||
| @@ -41,7 +41,7 @@ typedef struct { | |||
| 41 | bool isMotion; | 41 | bool isMotion; |
| 42 | } report_paw3204_t; | 42 | } report_paw3204_t; |
| 43 | 43 | ||
| 44 | const pointing_device_driver_t paw3204_pointing_device_driver; | 44 | extern const pointing_device_driver_t paw3204_pointing_device_driver; |
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * @brief Initializes the sensor so it is in a working state and ready to | 47 | * @brief Initializes the sensor so it is in a working state and ready to |
diff --git a/drivers/sensors/pimoroni_trackball.h b/drivers/sensors/pimoroni_trackball.h index 4b8a2548ae..74ae6d7228 100644 --- a/drivers/sensors/pimoroni_trackball.h +++ b/drivers/sensors/pimoroni_trackball.h | |||
| @@ -50,7 +50,7 @@ typedef struct { | |||
| 50 | uint8_t click; | 50 | uint8_t click; |
| 51 | } pimoroni_data_t; | 51 | } pimoroni_data_t; |
| 52 | 52 | ||
| 53 | const pointing_device_driver_t pimoroni_trackball_pointing_device_driver; | 53 | extern const pointing_device_driver_t pimoroni_trackball_pointing_device_driver; |
| 54 | 54 | ||
| 55 | bool pimoroni_trackball_device_init(void); | 55 | bool pimoroni_trackball_device_init(void); |
| 56 | void pimoroni_trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white); | 56 | void pimoroni_trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white); |
diff --git a/drivers/sensors/pmw3320.h b/drivers/sensors/pmw3320.h index 42fd72a52c..c80eb8e145 100644 --- a/drivers/sensors/pmw3320.h +++ b/drivers/sensors/pmw3320.h | |||
| @@ -55,7 +55,7 @@ typedef struct { | |||
| 55 | int8_t dy; | 55 | int8_t dy; |
| 56 | } report_pmw3320_t; | 56 | } report_pmw3320_t; |
| 57 | 57 | ||
| 58 | const pointing_device_driver_t pmw3320_pointing_device_driver; | 58 | extern const pointing_device_driver_t pmw3320_pointing_device_driver; |
| 59 | 59 | ||
| 60 | // A bunch of functions to implement the PMW3320-specific serial protocol. | 60 | // A bunch of functions to implement the PMW3320-specific serial protocol. |
| 61 | // Mostly taken from ADNS5050 driver. | 61 | // Mostly taken from ADNS5050 driver. |
diff --git a/drivers/sensors/pmw33xx_common.h b/drivers/sensors/pmw33xx_common.h index 8fb10b1b2f..ff890f49a9 100644 --- a/drivers/sensors/pmw33xx_common.h +++ b/drivers/sensors/pmw33xx_common.h | |||
| @@ -106,7 +106,7 @@ STATIC_ASSERT(sizeof((pmw33xx_report_t){0}.motion) == 1, "pmw33xx_report_t.motio | |||
| 106 | 106 | ||
| 107 | #define pmw3360_pointing_device_driver pmw33xx_pointing_device_driver; | 107 | #define pmw3360_pointing_device_driver pmw33xx_pointing_device_driver; |
| 108 | #define pmw3389_pointing_device_driver pmw33xx_pointing_device_driver; | 108 | #define pmw3389_pointing_device_driver pmw33xx_pointing_device_driver; |
| 109 | const pointing_device_driver_t pmw33xx_pointing_device_driver; | 109 | extern const pointing_device_driver_t pmw33xx_pointing_device_driver; |
| 110 | 110 | ||
| 111 | /** | 111 | /** |
| 112 | * @brief Initializes the given sensor so it is in a working state and ready to | 112 | * @brief Initializes the given sensor so it is in a working state and ready to |
diff --git a/keyboards/bajjak/bajjak.c b/keyboards/bajjak/bajjak.c index aadeb0415a..17d9165232 100644 --- a/keyboards/bajjak/bajjak.c +++ b/keyboards/bajjak/bajjak.c | |||
| @@ -21,6 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 21 | 21 | ||
| 22 | #include "bajjak.h" | 22 | #include "bajjak.h" |
| 23 | 23 | ||
| 24 | bool bajjak_left_led_1 = 0; | ||
| 25 | bool bajjak_left_led_2 = 0; | ||
| 26 | bool bajjak_left_led_3 = 0; | ||
| 27 | |||
| 24 | extern inline void bajjak_board_led_on(void); | 28 | extern inline void bajjak_board_led_on(void); |
| 25 | extern inline void bajjak_right_led_1_on(void); | 29 | extern inline void bajjak_right_led_1_on(void); |
| 26 | extern inline void bajjak_right_led_2_on(void); | 30 | extern inline void bajjak_right_led_2_on(void); |
diff --git a/keyboards/bajjak/bajjak.h b/keyboards/bajjak/bajjak.h index cd4ae50053..f3acb54f59 100644 --- a/keyboards/bajjak/bajjak.h +++ b/keyboards/bajjak/bajjak.h | |||
| @@ -66,9 +66,9 @@ inline void bajjak_right_led_3_off(void) { gpio_set_pin_input(B7); gpio_write_ | |||
| 66 | inline void bajjak_right_led_off(uint8_t led) { gpio_set_pin_input(led+4); gpio_write_pin_low(led+4); } | 66 | inline void bajjak_right_led_off(uint8_t led) { gpio_set_pin_input(led+4); gpio_write_pin_low(led+4); } |
| 67 | 67 | ||
| 68 | #ifdef LEFT_LEDS | 68 | #ifdef LEFT_LEDS |
| 69 | bool bajjak_left_led_1; | 69 | extern bool bajjak_left_led_1; |
| 70 | bool bajjak_left_led_2; | 70 | extern bool bajjak_left_led_2; |
| 71 | bool bajjak_left_led_3; | 71 | extern bool bajjak_left_led_3; |
| 72 | 72 | ||
| 73 | inline void bajjak_left_led_1_on(void) { bajjak_left_led_1 = 1; } | 73 | inline void bajjak_left_led_1_on(void) { bajjak_left_led_1 = 1; } |
| 74 | inline void bajjak_left_led_2_on(void) { bajjak_left_led_2 = 1; } | 74 | inline void bajjak_left_led_2_on(void) { bajjak_left_led_2 = 1; } |
diff --git a/keyboards/hardwareabstraction/handwire/handwire.c b/keyboards/hardwareabstraction/handwire/handwire.c index b31c0a7091..758cfd8885 100644 --- a/keyboards/hardwareabstraction/handwire/handwire.c +++ b/keyboards/hardwareabstraction/handwire/handwire.c | |||
| @@ -132,7 +132,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||
| 132 | 132 | ||
| 133 | // Variables for display layer and haptic status on OLED | 133 | // Variables for display layer and haptic status on OLED |
| 134 | static uint8_t layer = 0; | 134 | static uint8_t layer = 0; |
| 135 | haptic_config_t haptic_config; | 135 | extern haptic_config_t haptic_config; |
| 136 | 136 | ||
| 137 | // Variables for frames, timer, and sleep | 137 | // Variables for frames, timer, and sleep |
| 138 | uint32_t anim_timer = 0; | 138 | uint32_t anim_timer = 0; |
diff --git a/keyboards/sekigon/grs_70ec/matrix.c b/keyboards/sekigon/grs_70ec/matrix.c index 926ed6f813..718423e57b 100644 --- a/keyboards/sekigon/grs_70ec/matrix.c +++ b/keyboards/sekigon/grs_70ec/matrix.c | |||
| @@ -40,7 +40,7 @@ extern matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values | |||
| 40 | extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values | 40 | extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values |
| 41 | 41 | ||
| 42 | // row offsets for each hand | 42 | // row offsets for each hand |
| 43 | uint8_t thisHand, thatHand; | 43 | static uint8_t thisHand, thatHand; |
| 44 | 44 | ||
| 45 | // user-defined overridable functions | 45 | // user-defined overridable functions |
| 46 | __attribute__((weak)) void matrix_slave_scan_user(void) {} | 46 | __attribute__((weak)) void matrix_slave_scan_user(void) {} |
diff --git a/keyboards/system76/launch_1/launch_1.c b/keyboards/system76/launch_1/launch_1.c index c01fb7b01d..2cff70076e 100644 --- a/keyboards/system76/launch_1/launch_1.c +++ b/keyboards/system76/launch_1/launch_1.c | |||
| @@ -124,7 +124,7 @@ void system76_ec_rgb_layer(layer_state_t layer_state); | |||
| 124 | void system76_ec_unlock(void); | 124 | void system76_ec_unlock(void); |
| 125 | bool system76_ec_is_unlocked(void); | 125 | bool system76_ec_is_unlocked(void); |
| 126 | 126 | ||
| 127 | rgb_config_t layer_rgb[DYNAMIC_KEYMAP_LAYER_COUNT]; | 127 | extern rgb_config_t layer_rgb[DYNAMIC_KEYMAP_LAYER_COUNT]; |
| 128 | 128 | ||
| 129 | void matrix_init_kb(void) { | 129 | void matrix_init_kb(void) { |
| 130 | usb_mux_init(); | 130 | usb_mux_init(); |
diff --git a/keyboards/system76/launch_1/rgb_matrix_kb.inc b/keyboards/system76/launch_1/rgb_matrix_kb.inc index abde7aae19..6ac7970ccd 100644 --- a/keyboards/system76/launch_1/rgb_matrix_kb.inc +++ b/keyboards/system76/launch_1/rgb_matrix_kb.inc | |||
| @@ -69,7 +69,7 @@ static bool active_keys(effect_params_t* params) { | |||
| 69 | return led_max < RGB_MATRIX_LED_COUNT; | 69 | return led_max < RGB_MATRIX_LED_COUNT; |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | rgb_t raw_rgb_data[RGB_MATRIX_LED_COUNT] = {0}; | 72 | extern rgb_t raw_rgb_data[RGB_MATRIX_LED_COUNT]; |
| 73 | 73 | ||
| 74 | static uint8_t normalize_component(uint8_t component) { | 74 | static uint8_t normalize_component(uint8_t component) { |
| 75 | uint16_t x = (uint16_t)component; | 75 | uint16_t x = (uint16_t)component; |
diff --git a/keyboards/system76/system76_ec.c b/keyboards/system76/system76_ec.c index cce60a5dea..db0401a7d4 100644 --- a/keyboards/system76/system76_ec.c +++ b/keyboards/system76/system76_ec.c | |||
| @@ -135,7 +135,7 @@ static enum rgb_matrix_effects mode_map[] = { | |||
| 135 | 135 | ||
| 136 | _Static_assert(sizeof(mode_map) == MODE_LAST, "mode_map_length"); | 136 | _Static_assert(sizeof(mode_map) == MODE_LAST, "mode_map_length"); |
| 137 | 137 | ||
| 138 | rgb_t raw_rgb_data[RGB_MATRIX_LED_COUNT]; | 138 | rgb_t raw_rgb_data[RGB_MATRIX_LED_COUNT] = {0}; |
| 139 | 139 | ||
| 140 | // clang-format off | 140 | // clang-format off |
| 141 | rgb_config_t layer_rgb[DYNAMIC_KEYMAP_LAYER_COUNT] = { | 141 | rgb_config_t layer_rgb[DYNAMIC_KEYMAP_LAYER_COUNT] = { |
diff --git a/keyboards/work_louder/rgb_functions.c b/keyboards/work_louder/rgb_functions.c index b0d89d8511..1ea9afc42a 100644 --- a/keyboards/work_louder/rgb_functions.c +++ b/keyboards/work_louder/rgb_functions.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #define ws2812_set_color ws2812_rgb_set_color | 25 | #define ws2812_set_color ws2812_rgb_set_color |
| 26 | #define ws2812_set_color_all ws2812_rgb_set_color_all | 26 | #define ws2812_set_color_all ws2812_rgb_set_color_all |
| 27 | #define ws2812_flush ws2812_rgb_flush | 27 | #define ws2812_flush ws2812_rgb_flush |
| 28 | #define ws2812_leds ws2812_rgb_leds | ||
| 28 | 29 | ||
| 29 | #include "ws2812_bitbang.c" | 30 | #include "ws2812_bitbang.c" |
| 30 | 31 | ||
diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c index 4e223f0c9a..247b737331 100644 --- a/quantum/audio/audio.c +++ b/quantum/audio/audio.c | |||
| @@ -371,8 +371,9 @@ void audio_play_melody(float (*np)[][2], uint16_t n_count, bool n_repeat) { | |||
| 371 | melody_current_note_duration = audio_duration_to_ms((*notes_pointer)[current_note][1]); | 371 | melody_current_note_duration = audio_duration_to_ms((*notes_pointer)[current_note][1]); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | float click[2][2]; | 374 | void audio_play_click(uint16_t delay, float pitch, uint16_t duration) { |
| 375 | void audio_play_click(uint16_t delay, float pitch, uint16_t duration) { | 375 | static float click[2][2]; |
| 376 | |||
| 376 | uint16_t duration_tone = audio_ms_to_duration(duration); | 377 | uint16_t duration_tone = audio_ms_to_duration(duration); |
| 377 | uint16_t duration_delay = audio_ms_to_duration(delay); | 378 | uint16_t duration_delay = audio_ms_to_duration(delay); |
| 378 | 379 | ||
