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 | | ////////////////////////////////////////////////////////////////////////////// |
| 52 | This function acknowlegge a timer interrupt in XCU component by reading in the proper XCU register. |
| 53 | It is used by both the isr_switch() for a system timer, or by the _isr_timer() for an user timer. |
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 ) === |
| 56 | This function resets a timer counter. To do so, it read in the TIMER_PERIOD register, and rewrite the same value in the same register, |
| 57 | what causes the count to restart. This function is called during a context switch (user or preemptive). |