Fix functions with empty params (#19647)
* Fix functions with empty params * Found a bunch more
This commit is contained in:
parent
0f77ae6a20
commit
cf935d97ae
170 changed files with 276 additions and 276 deletions
|
@ -238,15 +238,15 @@ void adb_host_kbd_led(uint8_t led) {
|
|||
}
|
||||
|
||||
#ifdef ADB_PSW_BIT
|
||||
static inline void psw_lo() {
|
||||
static inline void psw_lo(void) {
|
||||
ADB_DDR |= (1 << ADB_PSW_BIT);
|
||||
ADB_PORT &= ~(1 << ADB_PSW_BIT);
|
||||
}
|
||||
static inline void psw_hi() {
|
||||
static inline void psw_hi(void) {
|
||||
ADB_PORT |= (1 << ADB_PSW_BIT);
|
||||
ADB_DDR &= ~(1 << ADB_PSW_BIT);
|
||||
}
|
||||
static inline bool psw_in() {
|
||||
static inline bool psw_in(void) {
|
||||
ADB_PORT |= (1 << ADB_PSW_BIT);
|
||||
ADB_DDR &= ~(1 << ADB_PSW_BIT);
|
||||
return ADB_PIN & (1 << ADB_PSW_BIT);
|
||||
|
|
|
@ -145,7 +145,7 @@ void Matrix_ThrowByte(void) {
|
|||
return ;
|
||||
}
|
||||
|
||||
void matrix_init () {
|
||||
void matrix_init (void) {
|
||||
// debug_matrix = 1;
|
||||
// PB0 (SS) and PB1 (SCLK) set to outputs
|
||||
DDRB |= RESET | SCLK ;
|
||||
|
|
|
@ -297,6 +297,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_user() {
|
||||
void matrix_init_user(void) {
|
||||
set_unicode_input_mode(UNICODE_MODE_LINUX);
|
||||
}
|
||||
|
|
|
@ -318,31 +318,31 @@ static inline uint8_t instant(void) {
|
|||
return data;
|
||||
}
|
||||
|
||||
static inline void clock_lo() {
|
||||
static inline void clock_lo(void) {
|
||||
M0110_CLOCK_PORT &= ~(1 << M0110_CLOCK_BIT);
|
||||
M0110_CLOCK_DDR |= (1 << M0110_CLOCK_BIT);
|
||||
}
|
||||
static inline void clock_hi() {
|
||||
static inline void clock_hi(void) {
|
||||
/* input with pull up */
|
||||
M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT);
|
||||
M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT);
|
||||
}
|
||||
static inline bool clock_in() {
|
||||
static inline bool clock_in(void) {
|
||||
M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT);
|
||||
M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT);
|
||||
_delay_us(1);
|
||||
return M0110_CLOCK_PIN & (1 << M0110_CLOCK_BIT);
|
||||
}
|
||||
static inline void data_lo() {
|
||||
static inline void data_lo(void) {
|
||||
M0110_DATA_PORT &= ~(1 << M0110_DATA_BIT);
|
||||
M0110_DATA_DDR |= (1 << M0110_DATA_BIT);
|
||||
}
|
||||
static inline void data_hi() {
|
||||
static inline void data_hi(void) {
|
||||
/* input with pull up */
|
||||
M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT);
|
||||
M0110_DATA_PORT |= (1 << M0110_DATA_BIT);
|
||||
}
|
||||
static inline bool data_in() {
|
||||
static inline bool data_in(void) {
|
||||
M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT);
|
||||
M0110_DATA_PORT |= (1 << M0110_DATA_BIT);
|
||||
_delay_us(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue