+static int flyswatter1_init(void)
+{
+ return flyswatter_init(1);
+}
+
+static int flyswatter2_init(void)
+{
+ return flyswatter_init(2);
+}
+
+static int minimodule_init(void)
+{
+ low_output = 0x18; /* check if srst should be 1 or 0 initially. (0x08) (flyswatter was
+ * 0x18) */
+ low_direction = 0xfb; /* 0xfb; */
+
+ /* initialize low byte for jtag */
+ if (ft2232_set_data_bits_low_byte(low_output, low_direction) != ERROR_OK) {
+ LOG_ERROR("couldn't initialize FT2232 with 'minimodule' layout");
+ return ERROR_JTAG_INIT_FAILED;
+ }
+
+
+ nSRST = 0x20;
+
+ high_output = 0x00;
+ high_direction = 0x05;
+
+ /* turn red LED3 on, LED2 off */
+ /* high_output |= 0x08; */
+
+ /* initialize high byte for jtag */
+ if (ft2232_set_data_bits_high_byte(high_output, high_direction) != ERROR_OK) {
+ LOG_ERROR("couldn't initialize FT2232 with 'minimodule' layout");
+ return ERROR_JTAG_INIT_FAILED;
+ }
+
+ return ERROR_OK;
+}
+