const struct pio status_light_red = LPC_GPIO_0_27;
/* Outputs */
-const struct pio relay1_off_pin = LPC_GPIO_0_4;
-const struct pio relay1_on_pin = LPC_GPIO_0_3;
-const struct pio relay2_off_pin = LPC_GPIO_0_0;
-const struct pio relay2_on_pin = LPC_GPIO_0_28;
-const struct pio relay3_off_pin = LPC_GPIO_0_6;
-const struct pio relay3_on_pin = LPC_GPIO_0_5;
+const struct pio relay1_on_pin = LPC_GPIO_0_4;
+const struct pio relay1_off_pin = LPC_GPIO_0_3;
+const struct pio relay2_on_pin = LPC_GPIO_0_0;
+const struct pio relay2_off_pin = LPC_GPIO_0_28;
+const struct pio relay3_on_pin = LPC_GPIO_0_6;
+const struct pio relay3_off_pin = LPC_GPIO_0_5;
void board_io_config(void)
{
/* Immediatly turn off relay commands */
- config_gpio(&relay1_on_pin, 0, GPIO_DIR_OUT, 1);
- config_gpio(&relay1_off_pin, 0, GPIO_DIR_OUT, 1);
- config_gpio(&relay2_on_pin, 0, GPIO_DIR_OUT, 1);
- config_gpio(&relay2_off_pin, 0, GPIO_DIR_OUT, 1);
- config_gpio(&relay3_on_pin, 0, GPIO_DIR_OUT, 1);
- config_gpio(&relay3_off_pin, 0, GPIO_DIR_OUT, 1);
+ config_gpio(&relay1_on_pin, 0, GPIO_DIR_OUT, 0);
+ config_gpio(&relay1_off_pin, 0, GPIO_DIR_OUT, 0);
+ config_gpio(&relay2_on_pin, 0, GPIO_DIR_OUT, 0);
+ config_gpio(&relay2_off_pin, 0, GPIO_DIR_OUT, 0);
+ config_gpio(&relay3_on_pin, 0, GPIO_DIR_OUT, 0);
+ config_gpio(&relay3_off_pin, 0, GPIO_DIR_OUT, 0);
}