22 | | === int '''_timer_start'''( unsigned int cluster_xy, unsigned int local_id, unsigned int period ) === |
23 | | This function activates a timer in the vci_timer component by writing in the proper register the period value. |
24 | | 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. |
| 22 | === int '''_timer_start'''( unsigned int channel, unsigned int period ) === |
| 23 | This function activates a timer channel in the vci_timer component by writing in the proper register the period value. |
| 24 | * '''channel''' : Timer channel global index |
| 25 | * '''period''' : interrupt period (cycles) |
| 26 | Return 0 in case of success. |
| 27 | Return -1 if timer index too large. |
| 28 | |
| 29 | === int '''_timer_stop'''( unsigned int channel ) === |
| 30 | This function desactivates a timer channel in the vci_timer component by writing in the proper register. |
29 | | === int '''_timer_stop'''( unsigned int cluster_xy, unsigned int local_id ) === |
30 | | This function desactivates a timer in the vci_timer component by writing in the proper register. |
31 | | |
32 | | Return 0 in case of success. |
33 | | Return -1 if timer index too large. |
34 | | |
35 | | === int '''_timer_reset_irq'''( unsigned int cluster_xy, unsigned int local_id ) === |
36 | | This function acknowlegge a timer interrupt in the vci_timer component by writing in the proper register. |
37 | | It can be used by both the isr_switch() for a "system" timer, or by the _isr_timer() for an "user" timer. |
| 35 | === int '''_timer_reset_irq'''( unsigned int channel ) === |
| 36 | This function can be used by the the _isr_timer() to acknowlege a timer interrupt in the vci_timer component by writing in the proper register. |