summaryrefslogtreecommitdiffstats
path: root/drivers/usb2422.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb2422.c')
-rw-r--r--drivers/usb2422.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb2422.c b/drivers/usb2422.c
index 62b919093b..8ee54b24ee 100644
--- a/drivers/usb2422.c
+++ b/drivers/usb2422.c
@@ -352,7 +352,7 @@ void USB2422_init() {
setPinInput(USB2422_ACTIVE_PIN);
#endif
- i2c_init(); // IC2 clk must be high at USB2422 reset release time to signal SMB configuration
+ i2c_init(); // IC2 clk must be high at USB2422 reset release time to signal SMB configuration
}
void USB2422_configure() {
@@ -363,14 +363,14 @@ void USB2422_configure() {
// configure Usb2422 registers
config.VID.reg = USB2422_VENDOR_ID;
config.PID.reg = USB2422_PRODUCT_ID;
- config.DID.reg = USB2422_DEVICE_VER; // BCD format, eg 01.01
- config.CFG1.bit.SELF_BUS_PWR = 1; // self powered for now
- config.CFG1.bit.HS_DISABLE = 1; // full or high speed
+ config.DID.reg = USB2422_DEVICE_VER; // BCD format, eg 01.01
+ config.CFG1.bit.SELF_BUS_PWR = 1; // self powered for now
+ config.CFG1.bit.HS_DISABLE = 1; // full or high speed
// config.CFG2.bit.COMPOUND = 0; // compound device
- config.CFG3.bit.STRING_EN = 1; // strings enabled
+ config.CFG3.bit.STRING_EN = 1; // strings enabled
// config.NRD.bit.PORT2_NR = 0; // MCU is non-removable
- config.MAXPB.reg = 20; // 0mA
- config.HCMCB.reg = 20; // 0mA
+ config.MAXPB.reg = 20; // 0mA
+ config.HCMCB.reg = 20; // 0mA
config.MFRSL.reg = sizeof(USB2422_MANUFACTURER);
config.PRDSL.reg = sizeof(USB2422_PRODUCT);
config.SERSL.reg = sizeof(SERNAME);