Declaring Pointer Error Message: "expected an identifier"

1.2k views Asked by At

I am trying to define some pointers to the port registers on my board MSP432, however, in the following code when I attempt to declare my pointers, I keep receiving the following error:

"../main.c", line 11: error #41: expected an identifier
"../main.c", line 11: error #80: expected a type specifier

I have tried several different alternations, but keep receiving the same error and am not sure how to fix it. Any help would be greatly appreciated!

#include "msp.h"
#include <stdint.h>

void main()
{
    unsigned int count = 0;
    unsigned int i = 0;

    WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD;

    uint8_t * P1IN = (uint8_t *)0x40004C00;
    uint8_t * P1SEL0 = (uint8_t *)0x40004C0A;
    uint8_t * P1SEL1 = (uint8_t *)0x40004C0C;
    uint8_t * P1OUT = (uint8_t *)0x40004C02;
    uint8_t * PDIR = (uint8_t *)0x40004C04;

.....
0

There are 0 answers