主题中讨论的其他器件:C2000WARE
您好!
是否可以在 CCS 中定义8位整数? 声明 uint16_t 和 uint32_t 有效、但 uint8_t 抛出错误"error #20:identifier "uint8_t" is undefined"。 下面是我要使用的代码:
#include "time.h"
#include "stdio.h"
#include "device.h"
#include "stdint.h"
int send_spi_singlebyte(uint8_t code11, uint16_t code12, uint16_t temp, int noSPIresponse, int loopcounter) {//113 018
if (loopcounter >0){
return 0;
}
else{
SPI_writeDataBlockingFIFO(mySPI0_BASE, code11);
SPI_writeDataBlockingFIFO(mySPI0_BASE, code12);
SPI_writeDataBlockingFIFO(mySPI0_BASE, temp);
int counter2 = 0;
return noSPIresponse++;
}
}
我看到在_stdint.h 和_types.h 中不包括 uint8_t。 这是因为 MCU 是16位吗?
C2000ware 版本4.01
此致、
MZivcec