Changes between Version 2 and Version 3 of tim_driver
- Timestamp:
- Oct 25, 2014, 8:24:58 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
tim_driver
v2 v3 29 29 This function activates a timer in the vci_timer component by writing in the proper register the period value. 30 30 It can be used by both the kernel to initialise a "system" timer, or by a task (through a system call) to configure an "user" timer. 31 31 32 Return 0 in case of success. 32 33 Return -1 if timer index too large. … … 34 35 === int '''_timer_stop'''( unsigned int cluster_xy, unsigned int local_id ) === 35 36 This function desactivates a timer in the vci_timer component by writing in the proper register. 37 36 38 Return 0 in case of success. 37 39 Return -1 if timer index too large. … … 40 42 This function acknowlegge a timer interrupt in the vci_timer component by writing in the proper register. 41 43 It can be used by both the isr_switch() for a "system" timer, or by the _isr_timer() for an "user" timer. 44 42 45 Return 0 in case of success. 43 46 Return -1 if timer index too large. … … 46 49 This function resets the timer counter. To do so, we re-write the period in the proper register, what causes the count to restart. 47 50 This function is called during a context switch (user or preemptive). 51 48 52 Return 0 in case of success. 49 53 Return -1 if timer index too large.