Changes between Version 2 and Version 3 of tim_driver


Ignore:
Timestamp:
Oct 25, 2014, 8:24:58 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • tim_driver

    v2 v3  
    2929This function activates a timer in the vci_timer component by writing in the proper register the period value.
    3030It 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
    3132Return 0 in case of success.
    3233Return -1 if timer index too large.
     
    3435 === int '''_timer_stop'''( unsigned int cluster_xy,  unsigned int local_id ) ===
    3536This function desactivates a timer in the vci_timer component by writing in the proper register.
     37
    3638Return 0 in case of success.
    3739Return -1 if timer index too large.
     
    4042This function acknowlegge a timer interrupt in the vci_timer  component by writing in the proper register.
    4143It can be used by both the isr_switch() for a "system" timer, or by the _isr_timer() for an "user" timer.
     44
    4245Return 0 in case of success.
    4346Return -1 if timer index too large.
     
    4649This function resets the timer counter. To do so, we re-write the period in the proper register, what causes the count to restart.
    4750This function is called during a context switch (user or preemptive).
     51
    4852Return 0 in case of success.
    4953Return -1 if timer index too large.