Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate


Sunday, June 27th, 2010 at 8:05:20pm UTC 

  1. Index: firmware/drivers/rtc/rtc_as3514.c
  2. ===================================================================
  3. --- firmware/drivers/rtc/rtc_as3514.c   (revision 27160)
  4. +++ firmware/drivers/rtc/rtc_as3514.c   (working copy)
  5. @@ -138,6 +138,14 @@
  6.      wakeup_h = ascodec_read(AS3543_WAKEUP);
  7.      wakeup_m = ascodec_read(AS3543_WAKEUP);
  9. +    /* reset alarm */
  10. +    int oldstatus = disable_irq_save();
  11. +    ascodec_read(0);
  12. +    ascodec_write(AS3543_WAKEUP, 0);
  13. +    ascodec_write(AS3543_WAKEUP, 0);
  14. +    ascodec_write(AS3543_WAKEUP, 0);
  15. +    restore_irq(oldstatus);
  16. +
  17.      struct tm tm;
  18.      rtc_read_datetime(&tm);


Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)

Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus