Remove more cruft in keyboard files (#14288)

This commit is contained in:
Ryan 2021-09-04 02:09:30 +10:00 committed by GitHub
parent a01057d19d
commit 8574bf20d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 12 additions and 108 deletions

View file

@ -28,12 +28,12 @@ void matrix_init_kb(void)
audio_init();
PLAY_SONG(test_sound);
// Fix port B5
cbi(DDRB, 5);
sbi(PORTB, 5);
setPinInput(B5);
writePinHigh(B5);
#else
// If we're not using the audio pin, drive it low
sbi(DDRC, 6);
cbi(PORTC, 6);
setPinOutput(C6);
writePinLow(C6);
#endif
#ifdef ISSI_ENABLE
issi_init();

View file

@ -1,26 +1,10 @@
#ifndef CU75_H
#define CU75_H
/* if the kb.h file exists (because we're running from qmkbuilder) include it */
#ifdef __has_include
#if __has_include("kb.h")
#include "kb.h"
#endif
#endif
#include "quantum.h"
#include "matrix.h"
#include <avr/sfr_defs.h>
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif
typedef struct RGB_Color {
uint16_t red;
uint16_t green;