diff options
author | patrickmt <40182064+patrickmt@users.noreply.github.com> | 2018-12-10 20:28:06 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-12-10 20:28:06 +0100 |
commit | 4a5e68f4f29b0c4c75a68b5958dff197f4ac0f53 (patch) | |
tree | 28f1743798df9f2af66d938c578dc991d70019d9 /tmk_core/protocol/arm_atsam/main_arm_atsam.c | |
parent | e99615b2acb473fc4a23886b87abe61c80faa1bc (diff) | |
download | qmk_firmware-4a5e68f4f29b0c4c75a68b5958dff197f4ac0f53.tar.gz qmk_firmware-4a5e68f4f29b0c4c75a68b5958dff197f4ac0f53.tar.xz |
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 'tmk_core/protocol/arm_atsam/main_arm_atsam.c')
-rw-r--r-- | tmk_core/protocol/arm_atsam/main_arm_atsam.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tmk_core/protocol/arm_atsam/main_arm_atsam.c b/tmk_core/protocol/arm_atsam/main_arm_atsam.c index 13034a05d..2bda7d7c7 100644 --- a/tmk_core/protocol/arm_atsam/main_arm_atsam.c +++ b/tmk_core/protocol/arm_atsam/main_arm_atsam.c @@ -247,8 +247,13 @@ void main_subtasks(void) int main(void) { - led_ena; - m15_ena; + DBG_LED_ENA; + DBG_1_ENA; + DBG_1_OFF; + DBG_2_ENA; + DBG_2_OFF; + DBG_3_ENA; + DBG_3_OFF; debug_code_init(); @@ -256,7 +261,7 @@ int main(void) ADC0_init(); - SPI_Init(); + SR_EXP_Init(); i2c1_init(); @@ -274,8 +279,7 @@ int main(void) while (USB2422_Port_Detect_Init() == 0) {} - led_off; - m15_off; + DBG_LED_OFF; led_matrix_init(); |