summaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol/arm_atsam/i2c_master.c
diff options
context:
space:
mode:
authorpatrickmt <40182064+patrickmt@users.noreply.github.com>2018-12-10 20:28:06 +0100
committerDrashna Jaelre <drashna@live.com>2018-12-10 20:28:06 +0100
commit4a5e68f4f29b0c4c75a68b5958dff197f4ac0f53 (patch)
tree28f1743798df9f2af66d938c578dc991d70019d9 /tmk_core/protocol/arm_atsam/i2c_master.c
parente99615b2acb473fc4a23886b87abe61c80faa1bc (diff)
downloadqmk_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/i2c_master.c')
-rw-r--r--tmk_core/protocol/arm_atsam/i2c_master.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tmk_core/protocol/arm_atsam/i2c_master.c b/tmk_core/protocol/arm_atsam/i2c_master.c
index ece9ee5db..f608a79cc 100644
--- a/tmk_core/protocol/arm_atsam/i2c_master.c
+++ b/tmk_core/protocol/arm_atsam/i2c_master.c
@@ -267,8 +267,8 @@ uint8_t I2C3733_Init_Control(void)
CLK_delay_ms(1);
- srdata.bit.IRST = 0;
- SPI_WriteSRData();
+ sr_exp_data.bit.IRST = 0;
+ SR_EXP_WriteData();
CLK_delay_ms(1);
@@ -357,8 +357,8 @@ void I2C3733_Control_Set(uint8_t state)
{
DBGC(DC_I2C3733_CONTROL_SET_BEGIN);
- srdata.bit.SDB_N = (state == 1 ? 1 : 0);
- SPI_WriteSRData();
+ sr_exp_data.bit.SDB_N = (state == 1 ? 1 : 0);
+ SR_EXP_WriteData();
DBGC(DC_I2C3733_CONTROL_SET_COMPLETE);
}
@@ -489,7 +489,7 @@ uint8_t i2c_led_q_request_room(uint8_t request_size)
if (i2c_led_q_full >= 100) //Give the queue a chance to clear up
{
- led_on;
+ DBG_LED_ON;
I2C_DMAC_LED_Init();
i2c_led_q_init();
return 1;