Pull down GPIOQ7 for unlock identify LED when power on
diff --git a/objects/control_host_obj.c b/objects/control_host_obj.c
old mode 100644
new mode 100755
index 9253007..e65f0af
--- a/objects/control_host_obj.c
+++ b/objects/control_host_obj.c
@@ -21,6 +21,7 @@
GPIO fsi_enable = (GPIO){ "FSI_ENABLE" };
GPIO cronus_sel = (GPIO){ "CRONUS_SEL" };
GPIO Throttle = (GPIO){ "BMC_THROTTLE" };
+GPIO idbtn = (GPIO){ "IDBTN" };
/* Bit bang patterns */
@@ -104,6 +105,7 @@
rc |= gpio_open(&fsi_enable);
rc |= gpio_open(&cronus_sel);
rc |= gpio_open(&Throttle);
+ rc |= gpio_open(&idbtn);
if(rc!=GPIO_OK) { break; }
//setup dc pins
@@ -111,6 +113,7 @@
rc |= gpio_write(&fsi_enable,1);
rc |= gpio_write(&fsi_clk,1);
rc |= gpio_write(&Throttle,1);
+ rc |= gpio_write(&idbtn,0);
if(rc!=GPIO_OK) { break; }
//data standy state
@@ -169,6 +172,7 @@
gpio_close(&fsi_enable);
gpio_close(&cronus_sel);
gpio_close(&Throttle);
+ gpio_close(&idbtn);
control_host_emit_booted(host);
return TRUE;
@@ -219,6 +223,7 @@
gpio_init(connection,&fsi_enable);
gpio_init(connection,&cronus_sel);
gpio_init(connection,&Throttle);
+ gpio_init(connection,&idbtn);
}
static void