I have downloaded v2 of MSP energy library from http://www.ti.com/tool/msp430-energy-library
I import emeter-metrology-F6736 into CCSv6 (to use on EVM430F6736)
line 242 of emeter-metrology-setup.c outputs this error "#20 identifier "SD24INCH_0" is undefined"
#if defined(SINGLE_PHASE) sd_set_normal_live_current_mode(LIVE); //line242 #else sd_set_normal_live_current_mode(CURRENT_1); sd_set_normal_live_current_mode(CURRENT_2); sd_set_normal_live_current_mode(CURRENT_3); #endif
Macro expression:
#define sd_set_normal_live_current_mode(a) SD_INCTL_ ## a = SD_INCH_CURRENT | SD_LIVE_CURRENT_GAIN; \ SD_CCTL_ ## a = SD_DF_1 | SD24SCS_4; \ SD_OSR_ ## a = 256 - 1; \ SD_PRE_ ## a = 0;
I see a nice property of CCS that shows the expension steps by default. So it shows:
SD24BINCTL1 = SD24INCH_0 | (0x0020); \ SD24BCCTL1 = (0x0010) | (0x0008); \ SD24BOSR1 = 256 - 1; \ SD24BPRE1 = 0;
I have searched the all files, there is no SD24INCH or similar definition in the energy library. Then I checked msp430F6736.h, so nothing there. Lastly, I checked the datasheet of MSP430F6736 for the SD24_B registers (page 45 of the datasheet), so nothing there neither.
The library and code that I import is the default ones, no modification is done. I am confused why do I get something that is not even defined anywhere related to MSP430F6736 and how can I fix this error?