2008-09-27 23:38:50     Resuming a RTC alarm schedule

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-27 23:38:50     Resuming a RTC alarm schedule

Alex Pereira (BRAZIL)

Message: 62862   

 

I'm trying to resume a RTC alarm schedule by pressing PB2 of stamp BF537. I'd like to resume the RTC alarm within gpio ISR. Does any one knows how to do it?

 

Thanks,

 

Alex

QuoteReplyEditDelete

 

 

2008-09-28 00:03:32     Re: Resuming a RTC alarm schedule

Mike Frysinger (UNITED STATES)

Message: 62864   

 

what do you mean "resume a RTC alarm schedule" ?  there is no such hardware functionality.  you set an alarm and it goes off.

QuoteReplyEditDelete

 

 

2008-09-28 12:21:49     Re: Resuming a RTC alarm schedule

Alex Pereira (BRAZIL)

Message: 62872   

 

In the rtc bfin test application there is a blocking read: ret = read(rtc_fd, &data, sizeof(data));

 

This read function returns only when current time becomes equal to the scheduled. I want this function also returns when I press a button (stamp PB2 for example).

 

I thought that I could add some lines in ISR to change some RTC registers, and then the read function would return. Is that possible?

 

 

 

Thanks,

 

Alex

QuoteReplyEditDelete

 

 

2008-09-28 14:26:11     Re: Resuming a RTC alarm schedule

Mike Frysinger (UNITED STATES)

Message: 62874   

 

that will not work with the RTC driver.  you will have to write your own.

Attachments

    Outcomes