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

Hello,
I am compiling the code for UART communication in TM4C123GH6P and it gives me an unexpected error for the line

 __I uint32_t CR; /* GPIO Commit*/

in the header file TM4C123GH6PM.h

Can anybody tell me the solution for it.
Please reply me as soon as possible.

Thanks & Regards,
Pratik Jain

Parents
  • Without the correct header files the compiler will not know what "__I" is. And neither will it know what unit32_t is.

    But since you decided to avoid giving any information that would have allowed anyone to help you, it is really quite hard to help.

    But do it the normal, careful, way that you tend to do when you program on a PC where you verify that you have all needed header files, ... Embedded projects are no different from PC projects - you still need to mind the details.

Reply
  • Without the correct header files the compiler will not know what "__I" is. And neither will it know what unit32_t is.

    But since you decided to avoid giving any information that would have allowed anyone to help you, it is really quite hard to help.

    But do it the normal, careful, way that you tend to do when you program on a PC where you verify that you have all needed header files, ... Embedded projects are no different from PC projects - you still need to mind the details.

Children