X-Git-Url: http://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=common%2FOWRomFunctions.s;h=9887940cb203bdb550c7eae21bc43872104934ec;hp=0b1488dd9b9d074ae9e191e9460dc8e96807965e;hb=4df4c7ba2c95a48e95873b1f3a93d62ed9727eba;hpb=28c2911a7459ae2977c0cb0228c0ca2af1c345bf diff --git a/common/OWRomFunctions.s b/common/OWRomFunctions.s index 0b1488d..9887940 100644 --- a/common/OWRomFunctions.s +++ b/common/OWRomFunctions.s @@ -471,3 +471,18 @@ owinit_botest_end: 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