stmhal: Protect SD card DMA transactions against USB MSC contention.
stmhal: Protect SD card DMA transactions against USB MSC contention.

Consider the following scenario: SD card is being read by pyboard; USB
irq comes in for MSC read request; SD card needs to be read from within
USB irq while SD read is already ongoing.  Such contention needs to be
avoided.

This patch provides a simple solution, to raise the irq priority above
that of the USB irq during SD DMA transfers.  Pyboard and PC can now
read from the SD card at the same time (well, reads are interleaved).

infinnovation/micropython,HenrikSolver/micropython,EcmaXp/micropython,torwag/micropython,chrisdearman/micropython,supergis/micropython,SHA2017-badge/micropython-esp32,redbear/micropython,alex-march/micropython,adafruit/micropython,danicampora/micropython,xhat/micropython,cwyark/micropython,trezor/micropython,pozetroninc/micropython,MrSurly/micropython-esp32,blazewicz/micropython,dxxb/micropython,alex-robbins/micropython,praemdonck/micropython,tobbad/micropython,chrisdearman/micropython,puuu/micropython,praemdonck/micropython,MrSurly/micropython,tuc-osg/micropython,supergis/micropython,henriknelson/micropython,oopy/micropython,trezor/micropython,TDAbboud/micropython,hosaka/micropython,danicampora/micropython,adafruit/micropython,ernesto-g/micropython,kerneltask/micropython,dxxb/micropython,SHA2017-badge/micropython-esp32,selste/micropython,xhat/micropython,AriZuu/micropython,misterdanb/micropython,MrSurly/micropython,danicampora/micropython,SHA2017-badge/micropython-esp32,pfalcon/micropython,matthewelse/micropython,dxxb/micropython,trezor/micropython,dinau/micropython,ernesto-g/micropython,blazewicz/micropython,mianos/micropython,ryannathans/micropython,matthewelse/micropython,Timmenem/micropython,matthewelse/micropython,ryannathans/micropython,EcmaXp/micropython,martinribelotta/micropython,adafruit/micropython,hiway/micropython,adafruit/micropython,adafruit/circuitpython,AriZuu/micropython,toolmacher/micropython,drrk/micropython,mpalomer/micropython,puuu/micropython,pozetroninc/micropython,redbear/micropython,praemdonck/micropython,galenhz/micropython,pramasoul/micropython,emfcamp/micropython,tralamazza/micropython,neilh10/micropython,EcmaXp/micropython,adafruit/circuitpython,adamkh/micropython,praemdonck/micropython,galenhz/micropython,Timmenem/micropython,turbinenreiter/micropython,adafruit/circuitpython,PappaPeppar/micropython,xhat/micropython,danicampora/micropython,pozetroninc/micropython,ryannathans/micropython,lowRISC/micropython,alex-robbins/micropython,deshipu/micropython,misterdanb/micropython,oopy/micropython,ernesto-g/micropython,tobbad/micropython,jmarcelino/pycom-micropython,hosaka/micropython,martinribelotta/micropython,mpalomer/micropython,cwyark/micropython,puuu/micropython,supergis/micropython,drrk/micropython,AriZuu/micropython,lowRISC/micropython,deshipu/micropython,pramasoul/micropython,EcmaXp/micropython,pfalcon/micropython,adamkh/micropython,neilh10/micropython,emfcamp/micropython,danicampora/micropython,turbinenreiter/micropython,infinnovation/micropython,hiway/micropython,MrSurly/micropython-esp32,dinau/micropython,kerneltask/micropython,Peetz0r/micropython-esp32,xhat/micropython,lowRISC/micropython,trezor/micropython,tuc-osg/micropython,jmarcelino/pycom-micropython,Timmenem/micropython,hiway/micropython,turbinenreiter/micropython,martinribelotta/micropython,toolmacher/micropython,mhoffma/micropython,swegener/micropython,swegener/micropython,EcmaXp/micropython,emfcamp/micropython,adafruit/micropython,dmazzella/micropython,dmazzella/micropython,henriknelson/micropython,mianos/micropython,pramasoul/micropython,adafruit/circuitpython,ganshun666/micropython,AriZuu/micropython,misterdanb/micropython,matthewelse/micropython,trezor/micropython,misterdanb/micropython,MrSurly/micropython-esp32,kerneltask/micropython,pfalcon/micropython,micropython/micropython-esp32,adafruit/circuitpython,puuu/micropython,deshipu/micropython,Timmenem/micropython,alex-robbins/micropython,dmazzella/micropython,redbear/micropython,HenrikSolver/micropython,toolmacher/micropython,MrSurly/micropython,cwyark/micropython,TDAbboud/micropython,swegener/micropython,mpalomer/micropython,swegener/micropython,Peetz0r/micropython-esp32,adafruit/circuitpython,tobbad/micropython,galenhz/micropython,cwyark/micropython,chrisdearman/micropython,ryannathans/micropython,mianos/micropython,lowRISC/micropython,ryannathans/micropython,emfcamp/micropython,tobbad/micropython,torwag/micropython,adamkh/micropython,ganshun666/micropython,adamkh/micropython,dxxb/micropython,MrSurly/micropython-esp32,tobbad/micropython,blazewicz/micropython,mianos/micropython,bvernoux/micropython,martinribelotta/micropython,pramasoul/micropython,oopy/micropython,toolmacher/micropython,Peetz0r/micropython-esp32,kerneltask/micropython,TDAbboud/micropython,matthewelse/micropython,infinnovation/micropython,turbinenreiter/micropython,redbear/micropython,kerneltask/micropython,tuc-osg/micropython,torwag/micropython,toolmacher/micropython,jmarcelino/pycom-micropython,drrk/micropython,jmarcelino/pycom-micropython,supergis/micropython,bvernoux/micropython,SHA2017-badge/micropython-esp32,ernesto-g/micropython,tuc-osg/micropython,PappaPeppar/micropython,xhat/micropython,henriknelson/micropython,misterdanb/micropython,alex-robbins/micropython,infinnovation/micropython,PappaPeppar/micropython,selste/micropython,dmazzella/micropython,alex-robbins/micropython,drrk/micropython,hiway/micropython,hosaka/micropython,pozetroninc/micropython,micropython/micropython-esp32,redbear/micropython,SHA2017-badge/micropython-esp32,infinnovation/micropython,adamkh/micropython,MrSurly/micropython,torwag/micropython,bvernoux/micropython,henriknelson/micropython,neilh10/micropython,PappaPeppar/micropython,ganshun666/micropython,hosaka/micropython,MrSurly/micropython,micropython/micropython-esp32,ganshun666/micropython,alex-march/micropython,mpalomer/micropython,hiway/micropython,HenrikSolver/micropython,pramasoul/micropython,Timmenem/micropython,pfalcon/micropython,mhoffma/micropython,henriknelson/micropython,matthewelse/micropython,martinribelotta/micropython,blazewicz/micropython,swegener/micropython,deshipu/micropython,chrisdearman/micropython,lowRISC/micropython,bvernoux/micropython,hosaka/micropython,micropython/micropython-esp32,galenhz/micropython,blazewicz/micropython,AriZuu/micropython,TDAbboud/micropython,MrSurly/micropython-esp32,dinau/micropython,ernesto-g/micropython,drrk/micropython,deshipu/micropython,dinau/micropython,torwag/micropython,cwyark/micropython,selste/micropython,HenrikSolver/micropython,alex-march/micropython,neilh10/micropython,tralamazza/micropython,TDAbboud/micropython,Peetz0r/micropython-esp32,turbinenreiter/micropython,selste/micropython,tralamazza/micropython,mhoffma/micropython,oopy/micropython,mianos/micropython,praemdonck/micropython,mpalomer/micropython,selste/micropython,alex-march/micropython,mhoffma/micropython,galenhz/micropython,puuu/micropython,HenrikSolver/micropython,chrisdearman/micropython,micropython/micropython-esp32,dxxb/micropython,neilh10/micropython,oopy/micropython,jmarcelino/pycom-micropython,alex-march/micropython,tralamazza/micropython,tuc-osg/micropython,bvernoux/micropython,Peetz0r/micropython-esp32,pozetroninc/micropython,PappaPeppar/micropython,supergis/micropython,mhoffma/micropython,emfcamp/micropython,pfalcon/micropython,dinau/micropython,ganshun666/micropython