MSP430FR5994

在使用CCS打开官方例程时 有警告,用iar直接是错误:

#pragma LOCATION(dataRecorded1, 0x10000);
#pragma __persistent(dataRecorded1);
uint16_t dataRecorded1[SAMPLES_LENGTH] = {0};

dacValue = __data20_read_short(&dataRecorded1[pointer++]);//这句错误

iar提示:argument of type "uint16_t *" is incompatible with parameter of type "unsigned long"


CSS提示: argument of type "uint16_t *" is incompatible with parameter of type "unsigned long" 

5 个回复