请楼主查阅《Cortex™-Mx技术参考手册》或权威指南之类的书籍资料,就可以明白位带操作原理。
The mapping formula is:
bit_word_addr = bit_band_base + (byte_offset x 32) + (bit_number × 4)
where:
bit_word_addr is the address of the word in the alias memory region that maps to the
targeted bit.
bit_band_base is the starting address of the alias region
byte_offset is the number of the byte in the bit-band region that contains the targeted
bit
bit_number is the bit position (0-7) of the targeted bit.
具体操作的寄存器是什么功能,那就得查看相应器件的参考手册中的存储器和总线构架章节中的存储器映射。
The mapping formula is:
bit_word_addr = bit_band_base + (byte_offset x 32) + (bit_number × 4)
where:
bit_word_addr is the address of the word in the alias memory region that maps to the
targeted bit.
bit_band_base is the starting address of the alias region
byte_offset is the number of the byte in the bit-band region that contains the targeted
bit
bit_number is the bit position (0-7) of the targeted bit.
具体操作的寄存器是什么功能,那就得查看相应器件的参考手册中的存储器和总线构架章节中的存储器映射。