Remove the two separate ports, instead use two demo apps that use a conditional compilation to select the method of interrupt management to use.