I have a question about header file definitions. I am using the Rowley Crossworks IDE for a SAM9N12. If I look in one of the include files, I see lots of register definitions. For example, for the PMC controller:
Code: Select all
#define PMC_PCER (*(volatile unsigned long *)0xFFFFFC10)
Code: Select all
#define PMC_PCER_PIOA_PIOB_MASK 0x4
#define PMC_PCER_PIOA_PIOB 0x4
#define PMC_PCER_PIOA_PIOB_BIT 2
Code: Select all
PMC_PCER |= PMC_PCER_PIOA_PIOB; // enable PIOA_PIOB peripheral clock
This trivial question has brickwalled me for the moment. Thanks all!