summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/arm_atsam/i2c_master.c
diff options
context:
space:
mode:
authorpatrickmt <40182064+patrickmt@users.noreply.github.com>2018-11-02 15:30:51 -0400
committerDrashna Jaelre <drashna@live.com>2018-11-02 14:33:07 -0700
commitcec203ea80c8e9365bb5f43418fba5971dd4091f (patch)
tree6ea7d621f7f14bf6ea2b5019867cac8c71a0e8e8 /tmk_core/protocol/arm_atsam/i2c_master.c
parent563fe23e53fb747f509b8558bb29bde0baf2d6a8 (diff)
USB Suspend for arm_atsam protocol
Rewrote USB state tracking for implementation of suspend state. Updated suspend.c in entirety. Main subtasks (generally hardware related) are now run prior to keyboard task.
Diffstat (limited to 'tmk_core/protocol/arm_atsam/i2c_master.c')
-rw-r--r--tmk_core/protocol/arm_atsam/i2c_master.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/protocol/arm_atsam/i2c_master.c b/tmk_core/protocol/arm_atsam/i2c_master.c
index 4f5a79e89f..ece9ee5db8 100644
--- a/tmk_core/protocol/arm_atsam/i2c_master.c
+++ b/tmk_core/protocol/arm_atsam/i2c_master.c
@@ -261,8 +261,9 @@ uint8_t I2C3733_Init_Control(void)
{
DBGC(DC_I2C3733_INIT_CONTROL_BEGIN);
- srdata.bit.SDB_N = 1;
- SPI_WriteSRData();
+ //Hardware state shutdown on boot
+ //USB state machine will enable driver when communication is ready
+ I2C3733_Control_Set(0);
CLK_delay_ms(1);