Hey all - my friend and I are trying to get this code to work, but the compiler is giving us the error: "initializer fails to determine size of '__c'".
We are TRYING to create a variable, then assign it the value of whatever is read on the rx serial port pin, then printf that variable.
Code:
#include "hardware.h"
// Initialise the hardware
void appInitHardware(void) {
initHardware();
}
// Initialise the software
TICK_COUNT appInitSoftware(TICK_COUNT loopStart){
return 0;
}
// This is the main loop
TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart) {
if(myUart.isRxBufferEmpty() == false) {
int InstreamData = myUart.read();
if(InstreamData != 0){
PRINTF(stdout,InstreamData);
}
}
return 0;
}