I'm working on a project that uses lot of hardware: four serial ports, one spi, one i2c, 5 ADC inputs. What I want to know is the right way to choose the priority of each device. I can't find any document that explain the right way to do it, or examples. Just how to change the interrupt priority. The system uses a cortex-m0+ uC.