diff options
| author | Ryan <fauxpark@gmail.com> | 2020-03-15 02:31:15 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-14 15:31:15 +0000 |
| commit | d597af9e1e15ed54b3f967c52e39a6cc3b980b68 (patch) | |
| tree | 0271c0c4f4993ba28b1ad6354ff438ee22bca078 /keyboards/crkbd/rev1 | |
| parent | 03ed8197175ffe046de050b3c2fd7b70f641cc60 (diff) | |
| download | qmk_firmware-d597af9e1e15ed54b3f967c52e39a6cc3b980b68.tar.gz qmk_firmware-d597af9e1e15ed54b3f967c52e39a6cc3b980b68.zip | |
Remove pro_micro.h (#8374)
* Remove pro_micro.h
* Include quantum.h
Diffstat (limited to 'keyboards/crkbd/rev1')
| -rw-r--r-- | keyboards/crkbd/rev1/matrix.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/keyboards/crkbd/rev1/matrix.c b/keyboards/crkbd/rev1/matrix.c index 9d86879d6..46dead369 100644 --- a/keyboards/crkbd/rev1/matrix.c +++ b/keyboards/crkbd/rev1/matrix.c | |||
| @@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 30 | #include "util.h" | 30 | #include "util.h" |
| 31 | #include "matrix.h" | 31 | #include "matrix.h" |
| 32 | #include "split_util.h" | 32 | #include "split_util.h" |
| 33 | #include "pro_micro.h" | 33 | #include "quantum.h" |
| 34 | 34 | ||
| 35 | #ifdef USE_MATRIX_I2C | 35 | #ifdef USE_MATRIX_I2C |
| 36 | # include "i2c.h" | 36 | # include "i2c.h" |
| @@ -96,37 +96,38 @@ uint8_t matrix_cols(void) | |||
| 96 | void tx_rx_leds_init(void) | 96 | void tx_rx_leds_init(void) |
| 97 | { | 97 | { |
| 98 | #ifndef NO_DEBUG_LEDS | 98 | #ifndef NO_DEBUG_LEDS |
| 99 | TX_RX_LED_INIT; | 99 | setPinOutput(B0); |
| 100 | TXLED0; | 100 | setPinOutput(D5); |
| 101 | RXLED0; | 101 | writePinHigh(B0); |
| 102 | writePinHigh(D5); | ||
| 102 | #endif | 103 | #endif |
| 103 | } | 104 | } |
| 104 | 105 | ||
| 105 | void tx_led_on(void) | 106 | void tx_led_on(void) |
| 106 | { | 107 | { |
| 107 | #ifndef NO_DEBUG_LEDS | 108 | #ifndef NO_DEBUG_LEDS |
| 108 | TXLED1; | 109 | writePinLow(D5); |
| 109 | #endif | 110 | #endif |
| 110 | } | 111 | } |
| 111 | 112 | ||
| 112 | void tx_led_off(void) | 113 | void tx_led_off(void) |
| 113 | { | 114 | { |
| 114 | #ifndef NO_DEBUG_LEDS | 115 | #ifndef NO_DEBUG_LEDS |
| 115 | TXLED0; | 116 | writePinHigh(D5); |
| 116 | #endif | 117 | #endif |
| 117 | } | 118 | } |
| 118 | 119 | ||
| 119 | void rx_led_on(void) | 120 | void rx_led_on(void) |
| 120 | { | 121 | { |
| 121 | #ifndef NO_DEBUG_LEDS | 122 | #ifndef NO_DEBUG_LEDS |
| 122 | RXLED1; | 123 | writePinLow(B0); |
| 123 | #endif | 124 | #endif |
| 124 | } | 125 | } |
| 125 | 126 | ||
| 126 | void rx_led_off(void) | 127 | void rx_led_off(void) |
| 127 | { | 128 | { |
| 128 | #ifndef NO_DEBUG_LEDS | 129 | #ifndef NO_DEBUG_LEDS |
| 129 | RXLED0; | 130 | writePinHigh(B0); |
| 130 | #endif | 131 | #endif |
| 131 | } | 132 | } |
| 132 | 133 | ||
