View Single Post
Old Jan 20, 2013, 08:07 AM   #1
shuggans
75 Posts
 
Join Date: Dec 2007
Location: Central Nebraska
Posts: 170 (0.09/day)
Thanks: 85
Thanked 7 Times in 6 Posts

System Specs

C programming question - using in arduino

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;
}
__________________
Sean Huggans
visuaFUSION Software
http://www.visuafusion.com

Last edited by shuggans; Jan 20, 2013 at 08:32 AM. Reason: removed comments from code for easier reading
shuggans is offline  
Reply With Quote