Run clang-format manually to fix recently changed files
This commit is contained in:
parent
6b18ca2875
commit
a91c0c4765
24 changed files with 235 additions and 235 deletions
|
@ -121,9 +121,7 @@ void DRV_rtp_init(void) {
|
|||
DRV_write(DRV_GO, 0x01);
|
||||
}
|
||||
|
||||
void DRV_amplitude(uint8_t amplitude) {
|
||||
DRV_write(DRV_RTP_INPUT, amplitude);
|
||||
}
|
||||
void DRV_amplitude(uint8_t amplitude) { DRV_write(DRV_RTP_INPUT, amplitude); }
|
||||
|
||||
void DRV_pulse(uint8_t sequence) {
|
||||
DRV_write(DRV_GO, 0x00);
|
||||
|
|
|
@ -239,7 +239,6 @@ if (haptic_config.cont) {
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
void haptic_cont_increase(void) {
|
||||
uint8_t amp = haptic_config.amplitude + 10;
|
||||
if (haptic_config.amplitude >= 120) {
|
||||
|
@ -256,7 +255,6 @@ void haptic_cont_decrease(void) {
|
|||
haptic_set_amplitude(amp);
|
||||
}
|
||||
|
||||
|
||||
void haptic_play(void) {
|
||||
#ifdef DRV2605L
|
||||
uint8_t play_eff = 0;
|
||||
|
@ -269,7 +267,6 @@ void haptic_play(void) {
|
|||
}
|
||||
|
||||
bool process_haptic(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
if (keycode == HPT_ON && record->event.pressed) {
|
||||
haptic_enable();
|
||||
}
|
||||
|
|
|
@ -310,7 +310,8 @@
|
|||
# define SERIAL_UART_UBRR (F_CPU / (8UL * SERIAL_UART_BAUD) - 1)
|
||||
# define SERIAL_UART_RXD_VECT USART1_RX_vect
|
||||
# define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
|
||||
# define SERIAL_UART_INIT() do { \
|
||||
# define SERIAL_UART_INIT() \
|
||||
do { \
|
||||
UCSR1A = _BV(U2X1); \
|
||||
/* baud rate */ \
|
||||
UBRR1L = SERIAL_UART_UBRR; \
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
// for memcpy
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#if !defined(DIP_SWITCH_PINS)
|
||||
# error "No DIP switch pads defined by DIP_SWITCH_PINS"
|
||||
#endif
|
||||
|
@ -31,18 +30,13 @@ static pin_t dip_switch_pad[] = DIP_SWITCH_PINS;
|
|||
static bool dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0};
|
||||
static bool last_dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0};
|
||||
|
||||
__attribute__((weak)) void dip_switch_update_user(uint8_t index, bool active) {}
|
||||
|
||||
__attribute__((weak))
|
||||
void dip_switch_update_user(uint8_t index, bool active) {}
|
||||
__attribute__((weak)) void dip_switch_update_kb(uint8_t index, bool active) { dip_switch_update_user(index, active); }
|
||||
|
||||
__attribute__((weak))
|
||||
void dip_switch_update_kb(uint8_t index, bool active) { dip_switch_update_user(index, active); }
|
||||
__attribute__((weak)) void dip_switch_update_mask_user(uint32_t state) {}
|
||||
|
||||
__attribute__((weak))
|
||||
void dip_switch_update_mask_user(uint32_t state) {}
|
||||
|
||||
__attribute__((weak))
|
||||
void dip_switch_update_mask_kb(uint32_t state) { dip_switch_update_mask_user(state); }
|
||||
__attribute__((weak)) void dip_switch_update_mask_kb(uint32_t state) { dip_switch_update_mask_user(state); }
|
||||
|
||||
void dip_switch_init(void) {
|
||||
for (uint8_t i = 0; i < NUMBER_OF_DIP_SWITCHES; i++) {
|
||||
|
@ -51,7 +45,6 @@ void dip_switch_init(void) {
|
|||
dip_switch_read(true);
|
||||
}
|
||||
|
||||
|
||||
void dip_switch_read(bool forced) {
|
||||
bool has_dip_state_changed = false;
|
||||
uint32_t dip_switch_mask = 0;
|
||||
|
|
|
@ -79,8 +79,6 @@ typedef struct {
|
|||
# define ACTION_TAP_DANCE_FN_ADVANCED_TIME(user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_dance_reset, tap_specific_tapping_term) \
|
||||
{ .fn = {user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_dance_reset}, .user_data = NULL, .custom_tapping_term = tap_specific_tapping_term, }
|
||||
|
||||
|
||||
|
||||
extern qk_tap_dance_action_t tap_dance_actions[];
|
||||
|
||||
/* To be used internally */
|
||||
|
|
|
@ -153,7 +153,6 @@ extern layer_state_t layer_state;
|
|||
# include "process_dynamic_macro.h"
|
||||
#endif
|
||||
|
||||
|
||||
// Function substitutions to ease GPIO manipulation
|
||||
#if defined(__AVR__)
|
||||
typedef uint8_t pin_t;
|
||||
|
|
|
@ -420,33 +420,38 @@
|
|||
* the threads creation APIs.
|
||||
*/
|
||||
# define CH_CFG_THREAD_INIT_HOOK(tp) \
|
||||
{ /* Add threads initialization code here.*/ }
|
||||
{ /* Add threads initialization code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Threads finalization hook.
|
||||
* @details User finalization code added to the @p chThdExit() API.
|
||||
*/
|
||||
# define CH_CFG_THREAD_EXIT_HOOK(tp) \
|
||||
{ /* Add threads finalization code here.*/ }
|
||||
{ /* Add threads finalization code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Context switch hook.
|
||||
* @details This hook is invoked just before switching between threads.
|
||||
*/
|
||||
# define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) \
|
||||
{ /* Context switch code here.*/ }
|
||||
{ /* Context switch code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ISR enter hook.
|
||||
*/
|
||||
# define CH_CFG_IRQ_PROLOGUE_HOOK() \
|
||||
{ /* IRQ prologue code here.*/ }
|
||||
{ /* IRQ prologue code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ISR exit hook.
|
||||
*/
|
||||
# define CH_CFG_IRQ_EPILOGUE_HOOK() \
|
||||
{ /* IRQ epilogue code here.*/ }
|
||||
{ /* IRQ epilogue code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Idle thread enter hook.
|
||||
|
@ -455,7 +460,8 @@
|
|||
* @note This macro can be used to activate a power saving mode.
|
||||
*/
|
||||
# define CH_CFG_IDLE_ENTER_HOOK() \
|
||||
{ /* Idle-enter code here.*/ }
|
||||
{ /* Idle-enter code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Idle thread leave hook.
|
||||
|
@ -464,14 +470,16 @@
|
|||
* @note This macro can be used to deactivate a power saving mode.
|
||||
*/
|
||||
# define CH_CFG_IDLE_LEAVE_HOOK() \
|
||||
{ /* Idle-leave code here.*/ }
|
||||
{ /* Idle-leave code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Idle Loop hook.
|
||||
* @details This hook is continuously invoked by the idle thread loop.
|
||||
*/
|
||||
# define CH_CFG_IDLE_LOOP_HOOK() \
|
||||
{ /* Idle loop code here.*/ }
|
||||
{ /* Idle loop code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief System tick event hook.
|
||||
|
@ -479,7 +487,8 @@
|
|||
* after processing the virtual timers queue.
|
||||
*/
|
||||
# define CH_CFG_SYSTEM_TICK_HOOK() \
|
||||
{ /* System tick event code here.*/ }
|
||||
{ /* System tick event code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief System halt hook.
|
||||
|
@ -487,7 +496,8 @@
|
|||
* the system is halted.
|
||||
*/
|
||||
# define CH_CFG_SYSTEM_HALT_HOOK(reason) \
|
||||
{ /* System halt code here.*/ }
|
||||
{ /* System halt code here.*/ \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Trace hook.
|
||||
|
@ -495,7 +505,8 @@
|
|||
* trace buffer.
|
||||
*/
|
||||
# define CH_CFG_TRACE_HOOK(tep) \
|
||||
{ /* Trace code here.*/ }
|
||||
{ /* Trace code here.*/ \
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
*
|
||||
* FIXME: needs doc
|
||||
*/
|
||||
void suspend_idle(uint8_t time) { /* Note: Not used anywhere currently */ }
|
||||
void suspend_idle(uint8_t time) { /* Note: Not used anywhere currently */
|
||||
}
|
||||
|
||||
/** \brief Run user level Power down
|
||||
*
|
||||
|
|
|
@ -186,7 +186,8 @@ COMPILER_PACK_RESET()
|
|||
#define USB_HID_COUNTRY_UK 32 // UK
|
||||
#define USB_HID_COUNTRY_US 33 // US
|
||||
#define USB_HID_COUNTRY_YUGOSLAVIA 34 // Yugoslavia
|
||||
#define USB_HID_COUNTRY_TURKISH_F 35 // Turkish-F
|
||||
#define USB_HID_COUNTRY_TURKISH_F \
|
||||
35 // Turkish-F
|
||||
//! @}
|
||||
//! @}
|
||||
//! @}
|
||||
|
|
|
@ -320,7 +320,8 @@ static void send_mouse(report_mouse_t *report) {
|
|||
#endif
|
||||
}
|
||||
|
||||
static void send_system(uint16_t data) { /* not supported */ }
|
||||
static void send_system(uint16_t data) { /* not supported */
|
||||
}
|
||||
|
||||
static void send_consumer(uint16_t data) {
|
||||
#ifdef EXTRAKEY_ENABLE
|
||||
|
|
Loading…
Reference in a new issue