diff options
author | QMK Bot <hello@qmk.fm> | 2021-09-03 16:10:08 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-09-03 16:10:08 +0000 |
commit | 337be283ca6f4f6c95f5ec6b5e0a507e3b4a3b96 (patch) | |
tree | cca95071a58fc3d4a1d28f1ee1ecdd9e75d30dad /keyboards/cu75 | |
parent | 5bb9da6bca5b7bc58af9eff0e7cab34d2602ec47 (diff) | |
parent | 8574bf20d35b21c7b44ba8550fa11b4d100fdbbd (diff) |
Merge remote-tracking branch 'origin/master' into develop
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 80941df390..43600efad2 100644 --- a/keyboards/cu75/cu75.c +++ b/keyboards/cu75/cu75.c @@ -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(); diff --git a/keyboards/cu75/cu75.h b/keyboards/cu75/cu75.h index 5224630af2..444c8daaec 100644 --- a/keyboards/cu75/cu75.h +++ b/keyboards/cu75/cu75.h @@ -1,25 +1,9 @@ #pragma once -/* 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; |