diff --git a/src/profeth/GSDML-V2.43-Kernelkit-Infix-Switch-20230227.xml b/src/profeth/GSDML-V2.43-Kernelkit-Infix-Switch-20230308.xml similarity index 70% rename from src/profeth/GSDML-V2.43-Kernelkit-Infix-Switch-20230227.xml rename to src/profeth/GSDML-V2.43-Kernelkit-Infix-Switch-20230308.xml index f68f45c4..7d6979d0 100644 --- a/src/profeth/GSDML-V2.43-Kernelkit-Infix-Switch-20230227.xml +++ b/src/profeth/GSDML-V2.43-Kernelkit-Infix-Switch-20230308.xml @@ -23,7 +23,7 @@ - + @@ -58,75 +58,75 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -135,44 +135,42 @@ - + - + - - - - - - - - - - - - - - + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/src/profeth/src/sampleapp_common.c b/src/profeth/src/sampleapp_common.c index e4bad7b0..a1fbc748 100644 --- a/src/profeth/src/sampleapp_common.c +++ b/src/profeth/src/sampleapp_common.c @@ -896,6 +896,7 @@ static void app_plug_dap (app_data_t * app, uint16_t number_of_ports) .insize = 0, .outsize = 0, }; + uint16_t i; APP_LOG_DEBUG ("\nPlug DAP module and its submodules\n"); @@ -926,53 +927,17 @@ static void app_plug_dap (app_data_t * app, uint16_t number_of_ports) PNET_SUBMOD_DAP_INTERFACE_1_IDENT, &cfg_dap_data); - app_exp_submodule_ind ( - app->net, - app, - APP_GSDML_API, - PNET_SLOT_DAP_IDENT, - PNET_SUBSLOT_DAP_INTERFACE_1_PORT_1_IDENT, - PNET_MOD_DAP_IDENT, - PNET_SUBMOD_DAP_INTERFACE_1_PORT_1_IDENT, - &cfg_dap_data); - - if (number_of_ports >= 2) + for (i = 1; i <= number_of_ports; i++) { - app_exp_submodule_ind ( - app->net, - app, - APP_GSDML_API, - PNET_SLOT_DAP_IDENT, - PNET_SUBSLOT_DAP_INTERFACE_1_PORT_2_IDENT, - PNET_MOD_DAP_IDENT, - PNET_SUBMOD_DAP_INTERFACE_1_PORT_2_IDENT, - &cfg_dap_data); - } - - if (number_of_ports >= 3) - { - app_exp_submodule_ind ( - app->net, - app, - APP_GSDML_API, - PNET_SLOT_DAP_IDENT, - PNET_SUBSLOT_DAP_INTERFACE_1_PORT_3_IDENT, - PNET_MOD_DAP_IDENT, - PNET_SUBMOD_DAP_INTERFACE_1_PORT_3_IDENT, - &cfg_dap_data); - } - - if (number_of_ports >= 4) - { - app_exp_submodule_ind ( - app->net, - app, - APP_GSDML_API, - PNET_SLOT_DAP_IDENT, - PNET_SUBSLOT_DAP_INTERFACE_1_PORT_4_IDENT, - PNET_MOD_DAP_IDENT, - PNET_SUBMOD_DAP_INTERFACE_1_PORT_4_IDENT, - &cfg_dap_data); + app_exp_submodule_ind ( + app->net, + app, + APP_GSDML_API, + PNET_SLOT_DAP_IDENT, + 0x8000 + i, + PNET_MOD_DAP_IDENT, + 0x8000 + i, + &cfg_dap_data); } APP_LOG_DEBUG ("Done plugging DAP\n\n");