Hi all,
I am trying to integrate the code provided by TI for Implementation of a Three-Phase Electronic Watt-Hour
Meter Using the MSP430F677x(A) SLAA577 with the DLMS Library supplied by Texas Instruments http://www.ti.com/tool/DLMSOBJ-EVAL . Both the projects compile and run fine independently. Now I have combined the two projects. I have added the files from DLMS library to the emeter project. I also included all the source files, header files and also linked the library. Now the problem was that when I tried to compile I get strange errors like
Error[Pe020]: identifier "intmax_t" is undefined
Error[Pe020]: identifier "uintmax_t" is undefined
in the inttypes.h file and almost all the errors were about these two. I did a little bit of digging and found that it is properly defined in the stdint.h file. Then I did some more digging and found that the project of DLMS library is using the stdint.h from the directory C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\inc\dlib\c
while the project of three phase energy meter is using a customized stdint.h file from emeter-toolkit directory. So I tried to replace the TI supplied stdint.h with the standard stdint.h from IAR directory. Now all the files copied from DLMS project compiled fine but I got strange errors in the emeter project files. So as a next try I renamed the customized stdint.h to stdint2.h and included this file in all the files of emeter project. Now I got another error stating that
Error[Pe256]: invalid redeclaration of type name "intptr_t" (declared at line 101 of "C:\Meter with DLMS\emeter-ng/../emeter-toolkit\stdint2.h") C:\Meter with DLMS\emeter-toolkit\stdint.h 97
Can someone tell me how to get rid of that error? Or any better way to combine the two projects. In a nutshell I need to combine two projects. One is using the standard stdint.h while the other is using a modified stdint.h. How to combine both the projects to one?