Tool/software: Code Composer Studio
Hi, I'm new on this subject and I'm trying to understand how it works the GPIO Config since I have some issues doing by myself. Reading the drivelib, I found HWREGBITW Macro and tried to understand the output; however I run an example with GPIO N.The HWREGBITW calls other macro HWREGH which parameter would be 0x43FCC130 (carrying out all the operations). HWREGH cast uint32_t variable to something uint16_t pointer. I couldn't get the output of such function and what register will be equal to 1 since the output that I get from paper would be C130 = 1
HWREGBITW(SYSCTL_RCGCBASE + ((ui32Peripheral & 0xff00) >> 8), ui32Peripheral & 0xff) = 1;
#define HWREGH(x) \
(*((volatile uint16_t *)(x)))
#define HWREGBITW(x, b) \ HWREG(((uint32_t)(x) & 0xF0000000) | 0x02000000 | \ (((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2))