+void slave_fifo_init() {
+
+ /* set bit 0 and 1 - fifo slave config */
+ IFCONFIG|=0x03;
+
+ /* async mode */
+ IFCONFIG|=0x04;
+
+ /* 8 bit fifo to all endpoints */
+ EP2FIFOCFG&=^(1<<0);
+ EP4FIFOCFG&=^(1<<0);
+ EP6FIFOCFG&=^(1<<0);
+ EP8FIFOCFG&=^(1<<0);
+
+ /* default indexed flag configuration:
+ *
+ * flag a: programmable level
+ * flag b: full
+ * flag c: empty
+ *
+ * todo: -> fixed configuration
+ */
+
+
+}
+
+void fx2_init() {