diff options
Diffstat (limited to 'keyboards/cu75')
-rw-r--r-- | keyboards/cu75/cu75.c | 8 | ||||
-rw-r--r-- | keyboards/cu75/cu75.h | 16 |
2 files changed, 4 insertions, 20 deletions
diff --git a/keyboards/cu75/cu75.c b/keyboards/cu75/cu75.c index 80941df39..43600efad 100644 --- a/keyboards/cu75/cu75.c +++ b/keyboards/cu75/cu75.c | |||
@@ -28,12 +28,12 @@ void matrix_init_kb(void) | |||
28 | audio_init(); | 28 | audio_init(); |
29 | PLAY_SONG(test_sound); | 29 | PLAY_SONG(test_sound); |
30 | // Fix port B5 | 30 | // Fix port B5 |
31 | cbi(DDRB, 5); | 31 | setPinInput(B5); |
32 | sbi(PORTB, 5); | 32 | writePinHigh(B5); |
33 | #else | 33 | #else |
34 | // If we're not using the audio pin, drive it low | 34 | // If we're not using the audio pin, drive it low |
35 | sbi(DDRC, 6); | 35 | setPinOutput(C6); |
36 | cbi(PORTC, 6); | 36 | writePinLow(C6); |
37 | #endif | 37 | #endif |
38 | #ifdef ISSI_ENABLE | 38 | #ifdef ISSI_ENABLE |
39 | issi_init(); | 39 | issi_init(); |
diff --git a/keyboards/cu75/cu75.h b/keyboards/cu75/cu75.h index 5abce8fcd..7774187b4 100644 --- a/keyboards/cu75/cu75.h +++ b/keyboards/cu75/cu75.h | |||
@@ -1,26 +1,10 @@ | |||
1 | #ifndef CU75_H | 1 | #ifndef CU75_H |
2 | #define CU75_H | 2 | #define CU75_H |
3 | 3 | ||
4 | /* if the kb.h file exists (because we're running from qmkbuilder) include it */ | ||
5 | #ifdef __has_include | ||
6 | #if __has_include("kb.h") | ||
7 | #include "kb.h" | ||
8 | #endif | ||
9 | #endif | ||
10 | |||
11 | #include "quantum.h" | 4 | #include "quantum.h" |
12 | #include "matrix.h" | 5 | #include "matrix.h" |
13 | #include <avr/sfr_defs.h> | 6 | #include <avr/sfr_defs.h> |
14 | 7 | ||
15 | #ifndef cbi | ||
16 | #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) | ||
17 | #endif | ||
18 | |||
19 | #ifndef sbi | ||
20 | #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) | ||
21 | #endif | ||
22 | |||
23 | |||
24 | typedef struct RGB_Color { | 8 | typedef struct RGB_Color { |
25 | uint16_t red; | 9 | uint16_t red; |
26 | uint16_t green; | 10 | uint16_t green; |