메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

How can I give access to the register of peripheral modules using CC-RX ?

Latest Updated:10/29/2014

Question:

I'm using the CC-RX compiler. The program that I created is not capable of correct access to the registers of peripheral modules. How do I give the program access to these registers ?

Answer:

Access to registers in a peripheral module must proceed in the correct unit (size of the register).
In addition, the registers must not be affected by build options.
If you created the register declaration in the C language, add the statements below.

__evenaccess
#pragma bit_order
#pragma unpack
For details, refer to the iodefine.h file which is generated on creation of the project.

Suitable Products
CS+ (formerly CubeSuite+)
High-performance Embedded Workshop
C/C++ Compiler Package for RX Family