option rtc

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
rich
Posts: 81
Joined: 19 November 2015, 12:23 PM

option rtc

Post by rich »

With a native device what does not work if "option rtc off" is set?

Thanks
Richard
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

Firstly, nothing related to multi-tasking is supported if the RTC is off, essentially your application must be a single task. Secondly, none of the routines that deal with reading or setting the RTC are supported nor is the StopWatch. Also, DelayUntilClockTick() is not supported if there is no RTC.

Pause() works slightly differently when the RTC is disabled.

GetMicroTime() and GetElapsedMicroTime() need the RTC.

The optional timeout capability of GetQueue() needs the RTC.

The X10 routines require the RTC to be enabled.

Note that although the Sleep() and Delay() routines normally use the RTC, they are usable with no RTC but there are some subtle differences in the way that they work. These differences are described in the entries in the ZBasic System Library manual for those routines.
- Don Kinzer
rich
Posts: 81
Joined: 19 November 2015, 12:23 PM

Post by rich »

Thanks much.

Richard
Post Reply