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.

CpuTimer0.RegsAddr = &CpuTimer0Regs;



1.您好,有个问题特别着急,,,想请教一下,就是在初始化CPU时钟的时候为什么要定义这个指针呢(CpuTimer0.RegsAddr = &CpuTimer0Regs; //使得CpuTimer0.RegsAddr 指向定时器寄存器)。作用是不是要让头文件中定义的寄存器CPUTIMER_REGS指向CpuTimero的寄存器,而不是CpuTimer1或CpuTimer2的寄存器呢(因为有T0,T1,T2)。。

 

2.那能不能像定义gpio的寄存器一样,先定义CpuTimer0的寄存器,并放到一个段里边,然后在cmd文件中将段放进物理地址中呢