stmhal: Fix RTC.wakeup so it correctly calculates WUT for large periods.
stmhal: Fix RTC.wakeup so it correctly calculates WUT for large periods.

Thanks to Peter Hinch.  Addresses issue #1488.

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