For a special application I need the DM365 USB to work both as HOST (for USB mass Storage Device) and DEVICE (HID or CDC device). User is required to select the desired mode before switching on the equipment.
Of course I don't need HOST and DEVICE mode to work together: user will switch off the DM365, make the necessary HW setting and power it again.
I know dm365 and linux kernel support HOST and DEVICE operating mode and I have tested them.
What I would like to know is if there is a way to switch between them without the need to recompile for example loading different kernel module or whatever..