diff options
author | patrickmt <40182064+patrickmt@users.noreply.github.com> | 2018-12-10 14:28:06 -0500 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-12-10 11:28:06 -0800 |
commit | 4a5e68f4f29b0c4c75a68b5958dff197f4ac0f53 (patch) | |
tree | 28f1743798df9f2af66d938c578dc991d70019d9 /keyboards/massdrop/ctrl/matrix.c | |
parent | e99615b2acb473fc4a23886b87abe61c80faa1bc (diff) | |
download | qmk_firmware-4a5e68f4f29b0c4c75a68b5958dff197f4ac0f53.tar.gz |
Bringing Massdrop keyboard hardware configuration to keyboard level (#4593)
MCU Pins for debugging, LED, boot tracing, and shift registers are now configurable at keyboard level.
Macros led_* replaced by DBG_LED_*
Macros m15_* replaced by DBG_1_*
Macros m27_* replaced by DBG_2_*
Macros m28_* replaced by DBG_3_*
For CTRL and ALT keyboards, debug boot tracing pin default now set to pad M27 instead of M28 since although M28 is not being used, it is technically a signal for USB port detection.
m15_print(...) renamed to dbg_print(...) to get away from hard coded port names.
dbg_print function now follows similar pattern to debug led output.
Diffstat (limited to 'keyboards/massdrop/ctrl/matrix.c')
-rw-r--r-- | keyboards/massdrop/ctrl/matrix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/massdrop/ctrl/matrix.c b/keyboards/massdrop/ctrl/matrix.c index 6f306962e..3580577dc 100644 --- a/keyboards/massdrop/ctrl/matrix.c +++ b/keyboards/massdrop/ctrl/matrix.c @@ -75,7 +75,7 @@ void matrix_init(void) PORT->Group[col_ports[col]].DIRSET.reg = 1 << col_pins[col]; //Output PORT->Group[col_ports[col]].OUTCLR.reg = 1 << col_pins[col]; //Low } - + matrix_init_quantum(); } @@ -91,7 +91,7 @@ uint8_t matrix_scan(void) if (CLK_get_ms() < mdebouncing) return 1; //mdebouncing == 0 when no debouncing active - //m15_off; //Profiling scans + //DBG_1_OFF; //Profiling scans memset(mlatest, 0, MATRIX_ROWS * sizeof(matrix_row_t)); //Zero the result buffer @@ -135,7 +135,7 @@ uint8_t matrix_scan(void) mdebouncing = CLK_get_ms() + DEBOUNCING_DELAY; } - //m15_on; //Profiling scans + //DBG_1_ON; //Profiling scans matrix_scan_quantum(); |