代码里是16位指针,因此每个端点的寄存器,即EPnR是2个字节地址的间隔,但这个是从AHB的角度。
而从手册上的register map表格看到的,间隔4个地址,是从APB角度来列出的。因为:
Due to the common limitation of APB1
bridges on word addressability, all register addresses are aligned to 32-bit word boundaries
although they are 16-bit wide.
|
|