Part Number: LAUNCHXL-F280025C
Other Parts Discussed in Thread: C2000WARE
Hi,
Is there a way to define 8-bit integers in CCS? Declaring uint16_t and uint32_t works but uint8_t throws up the error "error #20: identifier "uint8_t" is undefined". Here's the code I'm using:
#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++;
}
}
I saw that in _stdint.h and _types.h uint8_t is excluded. Is this because the MCU is 16 bit?
C2000ware version 4.01
Regards,
MZivcec