X-Git-Url: http://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=common%2FOWRomFunctionsDual.s;h=adc571c5d619b97532bfb2e335b888c029c08960;hp=59b3d40757c10d338bb375afda00108c7879c41f;hb=4df4c7ba2c95a48e95873b1f3a93d62ed9727eba;hpb=28c2911a7459ae2977c0cb0228c0ca2af1c345bf diff --git a/common/OWRomFunctionsDual.s b/common/OWRomFunctionsDual.s index 59b3d40..adc571c 100644 --- a/common/OWRomFunctionsDual.s +++ b/common/OWRomFunctionsDual.s @@ -641,3 +641,17 @@ owinit_cpconfig2: sts alarmflag,r_temp RESETZEROMARKER ret + +.global EXTERN_SLEEP +EXTERN_SLEEP: + cli + push r_temp + ldi r_temp,0 + sts mode,r_temp ;SLEEP + sts gcontrol,r_temp + sts sendflag,r_temp + sts bcount,r_temp + RESETZEROMARKER + pop r_temp + sei + ret \ No newline at end of file