Search the Community
Showing results for tags 'Erweiterung des Routers'.
-
Guten Tag zusammen, als Neuling traue ich mir selber nicht und möchte deshalb hier meine gedachten Änderungen vorstellen. Ziel ist es den Midi-Router um 4 IIC-Ports zu erweitern. Geaendert habe ich folgendes: midi_port.c //RK Erweiterung 4x8 #if MIDI_PORT_NUM_IN_PORTS_IIC >= 1 { IIC0, "<IC1" }, #endif #if MIDI_PORT_NUM_IN_PORTS_IIC >= 2 { IIC1, "<IC2" }, #endif #if MIDI_PORT_NUM_IN_PORTS_IIC >= 3 { IIC2, "<IC3" }, #endif #if MIDI_PORT_NUM_IN_PORTS_IIC >= 4 { IIC3, "<IC4" }, #endif #if MIDI_PORT_NUM_OUT_PORTS_IIC >= 1 { IIC0, ">IC1" }, #endif #if MIDI_PORT_NUM_OUT_PORTS_IIC >= 2 { IIC1, ">IC2" }, #endif #if MIDI_PORT_NUM_OUT_PORTS_IIC >= 3 { IIC2, ">IC3" }, #endif #if MIDI_PORT_NUM_OUT_PORTS_IIC >= 4 { IIC3, ">IC4" }, #endif #if MIDI_PORT_NUM_CLK_PORTS_IIC >= 1 { IIC0, "CIC1" }, #endif #if MIDI_PORT_NUM_CLK_PORTS_IIC >= 2 { IIC1, "CIC2" }, #endif #if MIDI_PORT_NUM_CLK_PORTS_IIC >= 3 { IIC2, "CIC3" }, #endif #if MIDI_PORT_NUM_CLK_PORTS_IIC >= 4 { IIC3, "CIC4" }, #endif midi_port.h //RK Erweiterung 4x8 .._IIC angefuegt // keep these constants consistent with the functions in midio_port.c !!! #define MIDI_PORT_NUM_IN_PORTS (1 + MIDI_PORT_NUM_IN_PORTS_USB + MIDI_PORT_NUM_IN_PORTS_UART + MIDI_PORT_NUM_IN_PORTS_OSC + MIDI_PORT_NUM_IN_PORTS_IIC) #define MIDI_PORT_NUM_OUT_PORTS (1 + MIDI_PORT_NUM_OUT_PORTS_USB + MIDI_PORT_NUM_OUT_PORTS_UART + MIDI_PORT_NUM_OUT_PORTS_OSC + MIDI_PORT_NUM_OUT_PORTS_IIC) #define MIDI_PORT_NUM_CLK_PORTS ( MIDI_PORT_NUM_CLK_PORTS_USB + MIDI_PORT_NUM_CLK_PORTS_UART + MIDI_PORT_NUM_CLK_PORTS_OSC + MIDI_PORT_NUM_CLK_PORTS_IIC) mios32_config.h //Anpassung fuer MIDI-Router 4x8 //RK //Anzahl IIC Ports #define MIOS32_IIC_MIDI_NUM 4 //Definition Out-only #define MIOS32_IIC_MIDI0_ENABLED 1 #define MIOS32_IIC_MIDI1_ENABLED 1 #define MIOS32_IIC_MIDI2_ENABLED 1 #define MIOS32_IIC_MIDI3_ENABLED 1 //Fuer Modul Router Port.h #define MIDI_PORT_NUM_IN_PORTS_IIC 0 #define MIDI_PORT_NUM_OUT_PORTS_IIC 4 #define MIDI_PORT_NUM_CLK_PORTS_IIC 4 Ich hoffe damit alles erweitertet zu haben was notwendig ist, um die IIC-Ports unter MIDIO128 V3 in Betrieb zu nehmen. Bitte an alle mal kritisch drüber zu schauen und nicht mit konstruktiver Kritik sparen. Am Wochenende plane ich das Ganze in Betrieb zu nehmen. Gruss Roman