Hardware register access: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 October 2024

7 October 2024

  • curprev 18:2018:20, 7 October 2024Mike talk contribs 5,622 bytes +5,622 Created page with "With the programming conventions used in the book, including the header file @hardware.h@ allows fixed peripheral registers to be referenced using a notation like @TIMER0.MODE@. In a driver that can use one of several timers, we might also wish to use the notation @TIMER[i]->MODE@ to refer to the @MODE@ register of the timer peripheral with index @i@. How do these notations come to refer to a device register at a fixed address? In @hardware.h@, a C structure @_timer@..."