This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RTC calendar

Hi, I need a RTC calendar ble stack on nrf51822 . (turn on the RTC0 on ble stack and get the count, how to setting the rtc wakeup )

which calendar need follow : track of the time (hours, minutes and seconds) and date (day, week,month, year)

i want to do list: 1.setting(every sec) and turn on the RTC0 interrupt 2.when the rtc0 trigger convert the RTC0 count to time. 3.configure the rtc0 wakeup when it is going to system off. 4.write to flash when system goto system off. 5.if wakeup by rtc0 or i/o, read the data from flash . and add rtc0 count ,update the timing and write back to flash. if it wake by rtc0, Then the system go into system off .

Can you give a hint about every steps of RTC calendar?

Parents
  • Hi,

    First of I have to say that I have no experience with objc (I'm more of a firmware guy), so I cannot comment on that.

    Most of the ble_* examples uses app_timer, mostly without scheduler. "ble_app_template" uses the scheduler, and is more or less a empty shell. Look at that project, and how HRM sets it up to see the difference.

    The "OP_QUEUE_SIZE" defines how many operations you can have queued. Lets say you have a situation where you get events are are queueing up (starting a one-time timer) then this define says how many you can have queued before corruption will happen.

    BR Håkon

Reply
  • Hi,

    First of I have to say that I have no experience with objc (I'm more of a firmware guy), so I cannot comment on that.

    Most of the ble_* examples uses app_timer, mostly without scheduler. "ble_app_template" uses the scheduler, and is more or less a empty shell. Look at that project, and how HRM sets it up to see the difference.

    The "OP_QUEUE_SIZE" defines how many operations you can have queued. Lets say you have a situation where you get events are are queueing up (starting a one-time timer) then this define says how many you can have queued before corruption will happen.

    BR Håkon

Children
No Data
Related