Thank you for your response. Using your recommendation I was able to turn on and off the LED. However I am still unable to read from or write to the GPIO registers. I get errors for what "I think" are legitimate commands. The following is part of my code:
Chip_GPIO_Init(0x50000000);
[Gives error: passing argument 1 of 'Chip_GPIO_Init' makes pointer from integer without a cast [-Wint-conversion]]
Chip_GPIO_SetPinDIROutput((*)0x50000000, 0, 7);
[Gives error: Syntax error]
Chip_GPIO_SetPinState((*)0x50000000, 0, 7, 1);
[Gives error: Syntax error]
Chip_GPIO_SetPinToggle((*)0x50000000, 0, 7, 1);
[Gives error: Syntax error]
x = Chip_GPIO_GetPinState((*)0x50000000, 0, 1);
[Gives error: Syntax error]
Is this the correct way to access the GPIO registers? If not, what is the correct way. If so, where are these errors coming from, please.