Mainline:Broadcom Kona/Timers: Difference between revisions
No edit summary |
No edit summary |
||
Line 62: | Line 62: | ||
** Write the timer match bit for the selected channel (bits 3..0) | ** Write the timer match bit for the selected channel (bits 3..0) | ||
** Write the compare enable bit for the selected channel (bits 7..4) | ** Write the compare enable bit for the selected channel (bits 7..4) | ||
== Local tick timer == | == Local tick timer == | ||
Line 81: | Line 80: | ||
| <code>STCS_TIMER_MATCH</code> | | <code>STCS_TIMER_MATCH</code> | ||
| 3:0 | | 3:0 | ||
| Represents the state of the timer interrupt for each channel; <code>0</code> means the interrupt is enabled, <code>1</code> means the interrupt is cleared.<br><br>To clean the interrupt, clean the entire field and set the bit corresponding to the channel to clear the interrupt for to <code>1</code>. | | Represents the state of the timer interrupt for each channel; <code>0</code> means the interrupt is enabled, <code>1</code> means the interrupt is cleared.<br><br>To clean the interrupt, clean the entire field and set the bit corresponding to the channel to clear the interrupt for to <code>1</code>. {{Speculation|Leaving the other bits set to 0 while setting will keep the interrupt state intact (TODO - if not, then this means only one interrupt can be serviced at a time?)}} | ||
|- | |- | ||
| <code>STCS_COMPARE_ENABLE</code> | | <code>STCS_COMPARE_ENABLE</code> |