Part Number: TMS320F28379D
Tool/software: TI C/C++ Compiler
I want to copy the current SpibRegs settings into a variable to use those settings again later.
The following code works fine if it is written inside a .c file
#include "F28x_Project.h"
struct SPI_REGS test;
void testing(){
test = SpibRegs;
}
but if I put it inside a .cpp file the compiler tells me the = operator is undefined for that operation.
I don't understand why this works in c but not in c++.