dave
Active member
Hi
Maybe it sound like a noob question but I really need some help to solve this problem.
Let s say I need to copy in a variable the following Register:
to perform later some bit-calculations (and not mathematical operations).
How should I declare my register_var variable!??!
GPIOC_PDIR is (accoridng to the datasheet) a 32bits register and the declaration byte is giving me some trouble.
I m not sure that using uint32_t is right.
Could you please help me?
Thank you very much
Maybe it sound like a noob question but I really need some help to solve this problem.
Let s say I need to copy in a variable the following Register:
Code:
register_var = GPIOC_PDIR;
How should I declare my register_var variable!??!
GPIOC_PDIR is (accoridng to the datasheet) a 32bits register and the declaration byte is giving me some trouble.
I m not sure that using uint32_t is right.
Could you please help me?
Thank you very much