Skip to content

Commit

Permalink
Remove pro_micro.h (qmk#8374)
Browse files Browse the repository at this point in the history
* Remove pro_micro.h

* Include quantum.h
  • Loading branch information
fauxpark authored and HokieGeek committed Apr 10, 2020
1 parent 60e0284 commit 5bebf8f
Show file tree
Hide file tree
Showing 12 changed files with 99 additions and 418 deletions.
324 changes: 0 additions & 324 deletions drivers/avr/pro_micro.h

This file was deleted.

17 changes: 9 additions & 8 deletions keyboards/claw44/rev1/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "matrix.h"
#include "split_util.h"
#include "pro_micro.h"
#include "quantum.h"

#ifdef USE_MATRIX_I2C
# include "i2c.h"
Expand Down Expand Up @@ -102,9 +102,10 @@ void matrix_init(void)
unselect_rows();
init_cols();

TX_RX_LED_INIT;
TXLED0;
RXLED0;
setPinOutput(B0);
setPinOutput(D5);
writePinHigh(B0);
writePinHigh(D5);

// initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) {
Expand Down Expand Up @@ -189,10 +190,10 @@ int serial_transaction(int master_changed) {
int ret=serial_update_buffers();
#endif
if (ret ) {
if(ret==2) RXLED1;
if(ret==2) writePinLow(B0);
return 1;
}
RXLED0;
writePinHigh(B0);
memcpy(&matrix[slaveOffset],
(void *)serial_slave_buffer, SERIAL_SLAVE_BUFFER_LENGTH);
return 0;
Expand Down Expand Up @@ -241,7 +242,7 @@ uint8_t matrix_master_scan(void) {
if( serial_transaction(mchanged) ) {
#endif
// turn on the indicator led when halves are disconnected
TXLED1;
writePinLow(D5);

error_count++;

Expand All @@ -254,7 +255,7 @@ uint8_t matrix_master_scan(void) {
}
} else {
// turn off the indicator led on no error
TXLED0;
writePinHigh(D5);
error_count = 0;
}
matrix_scan_quantum();
Expand Down
Loading

0 comments on commit 5bebf8f

Please sign in to comment.