Changes between Version 1 and Version 2 of xcu_driver


Ignore:
Timestamp:
Oct 8, 2014, 7:29:14 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • xcu_driver

    v1 v2  
    5050
    5151 === unsigned int '''_xcu_timer_reset_irq'''( unsigned int cluster_xy,   unsigned int pti_index ) ===
    52 //////////////////////////////////////////////////////////////////////////////
    53 // This function acknowlegge a timer interrupt in XCU
    54 // component by reading in the proper XCU register.
    55 // It can be used by both the isr_switch() for a "system" timer,
    56 // or by the _isr_timer() for an "user" timer.
    57 //////////////////////////////////////////////////////////////////////////////
     52This function acknowlegge a timer interrupt in XCU component by reading in the proper XCU register.
     53It is used by both the isr_switch() for a system timer,  or by the _isr_timer() for an user timer.
    5854
    59 extern void _xcu_timer_reset_cpt( unsigned int cluster_xy,
    60                                   unsigned int pti_index );
    61 //////////////////////////////////////////////////////////////////////////////
    62 // This function resets a timer counter. To do so, we re-write the period
    63 // in the proper register, what causes the count to restart.
    64 // The period value is read from the same (TIMER_PERIOD) register,
    65 // this is why in appearance we do nothing useful (read a value
    66 // from a register and write this value in the same register).
    67 // This function is called during a context switch (user or preemptive)
    68 /////////////////////////////////////////////////////////////////////////////
     55 === void '''_xcu_timer_reset_cpt'''( unsigned int cluster_xy,  unsigned int pti_index ) ===
     56This function resets a timer counter. To do so, it read in the TIMER_PERIOD register, and rewrite the same value in the same register,
     57what causes the count to restart. This function is called during a context switch (user or preemptive).
    6958