Ok so I am working on some embedded code to go on a msp430 launch pad, and things were working well except once I tried to use a specific port port 1. in my header file I cannot build the project without getting the following error.
expected unqualified-id before token
#define P4DIR_m *((unsigned int volatile*)0x0224u)
#define P8OUT_m *((unsigned int volatile*)0x0262u)
#define P8DIR_m *((unsigned int volatile*)0x0264u)
#define P1DIR_m *((unsigned int volatile*)0x0204u)
#define LEDOUT_m *((unsigned int volatile*)0x0202u) //this line gives the error
ide snapshot with code on a single line definition for a particular register, it has nothing to do with the register address I have tried other s and it still fails, what gets me is all the formatting right above the error are exactly the same and they all work with flying colors. I changed the name several times thinking maybe the name was used in the actual board release header file that is probably included in the background, yet nothing still this error will not go away. So from what I have seen on the error in research is that it usually comes down to a syntax error somewhere but as it is it looks identical to the ones above. Can anyone help me out or shed some light on what this error actually means? Thanks
Aucun commentaire:
Enregistrer un commentaire