summaryrefslogtreecommitdiff
path: root/board/scalys/grapeboard/usb_grapeboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/scalys/grapeboard/usb_grapeboard.c')
-rw-r--r--board/scalys/grapeboard/usb_grapeboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/scalys/grapeboard/usb_grapeboard.c b/board/scalys/grapeboard/usb_grapeboard.c
index 176c4be..5a75f99 100644
--- a/board/scalys/grapeboard/usb_grapeboard.c
+++ b/board/scalys/grapeboard/usb_grapeboard.c
@@ -63,7 +63,7 @@ const uint8_t hx3_settings[5 + HX3_SETTINGS_SIZE] = {
0x00
};
-int usb_hub_init(void) {
+int usb_hx3_hub_init(void) {
int length, index = 0, i2c_attempts = 0;
const int settings_size = sizeof(hx3_settings);
uint8_t *data = (uint8_t *)hx3_settings;
@@ -81,7 +81,7 @@ int usb_hub_init(void) {
if(i2c_write(I2C_ADDRESS_USB_HUB, index, 2, data, length)) {
if(i2c_attempts < 1)
- printf("\nI2C error during configuring USB hub slave. retrying...\n");
+ printf("\nWARNING: I2C error during configuring USB hub slave. retrying...\n");
if(++i2c_attempts >= MAX_I2C_ATTEMPTS){
printf("ERROR: Maximum USB hub configuration attempts reached. Exiting now\n");
return 1;
@@ -97,7 +97,7 @@ int usb_hub_init(void) {
return 0;
}
-int usb_hub_reset(void) {
+int usb_hx3_hub_reset(void) {
/* USB hub cannot be reset in software without resetting the ls1012a */
return 1;
}