This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: #40: expected an identifier

Hi,

My code:

#ifndef __LPC_TYPES_H #define __LPC_TYPES_H

#include <stdint.h>

(49) typedef enum {FALSE = 0, TRUE = !FALSE} Bool;

typedef enum {RESET = 0, SET = !RESET} FlagStatus, IntStatus, SetState; #define PARAM_SETSTATE(State) ((State==RESET) || (State==SET))

I'm getting the below mentioned error:

lpc_types.h(49): error: #40: expected an identifier.

Please Help!

0