Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
Slide 7
Slide 8
Slide 9
Product List
Once the clock module is configured, clock object instances can be created to periodically fire off individual functions. The actual function in the application that will be invoked is specified in the Clockfxn field. The initial period between when the clock starts running and the function first fires is specified by the timeout value. The startFlag will determine if the clock starts immediately when the BIOS scheduler starts to run, or if the application will need to make a specific call to the Clock_start() API to kick things off. Once the function is invoked for the first time, the period will determine when it will be invoked a second time and all the times after that. Making this value zero will turn this clock instance from a periodic firing function to a one-shot. There is also an arg function allowing the user to specify a static value to be passed to the function that is invoked. One reason they might want to do this is to have a single function used for multiple clock instances. Since each instance can pass a different value to the invoked function, this can implement the function to know which clock invoked it and take the appropriate action.
PTM Published on: 2013-12-05