stmhal/uart: Add check that UART id is valid for the given board.
stmhal/uart: Add check that UART id is valid for the given board.

Previous to this patch trying to construct, but not init, a UART that
didn't exist on the target board would actually succeed.  Only when
initialising the UART would it then raise an exception that the UART does
not exist.

This patch adds an explicit check that the constructed UART does in fact
exist for the given board.

deshipu/micropython,alex-robbins/micropython,AriZuu/micropython,tuc-osg/micropython,MrSurly/micropython-esp32,bvernoux/micropython,bvernoux/micropython,micropython/micropython-esp32,toolmacher/micropython,SHA2017-badge/micropython-esp32,Timmenem/micropython,cwyark/micropython,trezor/micropython,puuu/micropython,HenrikSolver/micropython,puuu/micropython,kerneltask/micropython,HenrikSolver/micropython,TDAbboud/micropython,mhoffma/micropython,pozetroninc/micropython,adafruit/circuitpython,adafruit/micropython,alex-robbins/micropython,adafruit/circuitpython,deshipu/micropython,henriknelson/micropython,Peetz0r/micropython-esp32,pfalcon/micropython,pramasoul/micropython,MrSurly/micropython,TDAbboud/micropython,MrSurly/micropython,trezor/micropython,AriZuu/micropython,chrisdearman/micropython,Timmenem/micropython,tralamazza/micropython,pfalcon/micropython,infinnovation/micropython,alex-robbins/micropython,dmazzella/micropython,blazewicz/micropython,pramasoul/micropython,HenrikSolver/micropython,PappaPeppar/micropython,oopy/micropython,pozetroninc/micropython,pozetroninc/micropython,torwag/micropython,toolmacher/micropython,trezor/micropython,oopy/micropython,adafruit/micropython,lowRISC/micropython,AriZuu/micropython,TDAbboud/micropython,PappaPeppar/micropython,SHA2017-badge/micropython-esp32,kerneltask/micropython,tobbad/micropython,tuc-osg/micropython,hiway/micropython,PappaPeppar/micropython,micropython/micropython-esp32,adafruit/circuitpython,pozetroninc/micropython,deshipu/micropython,Peetz0r/micropython-esp32,tuc-osg/micropython,AriZuu/micropython,swegener/micropython,mhoffma/micropython,tralamazza/micropython,lowRISC/micropython,adafruit/circuitpython,SHA2017-badge/micropython-esp32,hiway/micropython,mhoffma/micropython,TDAbboud/micropython,pfalcon/micropython,Peetz0r/micropython-esp32,oopy/micropython,lowRISC/micropython,cwyark/micropython,dmazzella/micropython,mhoffma/micropython,henriknelson/micropython,lowRISC/micropython,tralamazza/micropython,chrisdearman/micropython,torwag/micropython,PappaPeppar/micropython,chrisdearman/micropython,henriknelson/micropython,SHA2017-badge/micropython-esp32,pramasoul/micropython,infinnovation/micropython,HenrikSolver/micropython,MrSurly/micropython-esp32,micropython/micropython-esp32,toolmacher/micropython,torwag/micropython,trezor/micropython,oopy/micropython,alex-robbins/micropython,oopy/micropython,cwyark/micropython,MrSurly/micropython,adafruit/micropython,torwag/micropython,MrSurly/micropython-esp32,dmazzella/micropython,blazewicz/micropython,pramasoul/micropython,pfalcon/micropython,bvernoux/micropython,Peetz0r/micropython-esp32,pfalcon/micropython,infinnovation/micropython,hiway/micropython,selste/micropython,deshipu/micropython,infinnovation/micropython,hiway/micropython,tobbad/micropython,bvernoux/micropython,PappaPeppar/micropython,kerneltask/micropython,toolmacher/micropython,alex-robbins/micropython,tuc-osg/micropython,SHA2017-badge/micropython-esp32,MrSurly/micropython-esp32,hiway/micropython,deshipu/micropython,tuc-osg/micropython,lowRISC/micropython,adafruit/micropython,selste/micropython,blazewicz/micropython,dmazzella/micropython,tobbad/micropython,kerneltask/micropython,MrSurly/micropython,blazewicz/micropython,trezor/micropython,micropython/micropython-esp32,tralamazza/micropython,mhoffma/micropython,swegener/micropython,ryannathans/micropython,puuu/micropython,toolmacher/micropython,adafruit/circuitpython,cwyark/micropython,tobbad/micropython,adafruit/micropython,blazewicz/micropython,adafruit/circuitpython,kerneltask/micropython,chrisdearman/micropython,Timmenem/micropython,swegener/micropython,ryannathans/micropython,swegener/micropython,henriknelson/micropython,pozetroninc/micropython,TDAbboud/micropython,swegener/micropython,puuu/micropython,ryannathans/micropython,AriZuu/micropython,infinnovation/micropython,MrSurly/micropython-esp32,puuu/micropython,pramasoul/micropython,Timmenem/micropython,ryannathans/micropython,selste/micropython,HenrikSolver/micropython,chrisdearman/micropython,ryannathans/micropython,tobbad/micropython,henriknelson/micropython,bvernoux/micropython,micropython/micropython-esp32,selste/micropython,selste/micropython,cwyark/micropython,Timmenem/micropython,torwag/micropython,Peetz0r/micropython-esp32,MrSurly/micropython