This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can a normal C variable be mapped to a register?

 

Hello,

When reviewing some C code (edma3_lld_02_11_05_02/examples/CSL2_DAT_DEMO/src/dat_edma3LLD/csl2_dat.c), I found the following piece of code, which quite confuses me:


//Defined as global variables
static volatile Uint32 TransferCompleteH = 0x0;
static volatile Uint32 TransferCompleteL = 0x0

void someFunct() {
    /* Set a 1 bit in the TransferComplete register corresponding to the tcc */
     SET_REGISTER32_BIT(TransferCompleteL,tccNum);
}

What confuses me: The comment mentions a "register". Is the variable TransferCompleteH/Lsomehow mapped to a "real" hardware register?
Or is just the comment a bit imprecise?

Thx