Project

General

Profile

Revision 951

Added by Chris Mar over 15 years ago

testing commit on new svn (just template directory)

View differences:

trunk/code/projects/template/main.c
3 3
int main(void)
4 4
{
5 5
	dragonfly_init(ALL_ON);
6
	return 0;
6
    double d0 = 0x889a3f23;
7
    char buf[100];
8
    sprintf(buf, "int:%d, float:%d, double:%d\n", sizeof(int), sizeof(float), sizeof(double));
9
    usb_puts(buf);
10
    return 1;
7 11
}
8 12

  
9 13

  
trunk/code/projects/template/Makefile
156 156
PRINTF_LIB_FLOAT = -Wl,-u,vfprintf -lprintf_flt
157 157

  
158 158
# If this is left blank, then it will use the Standard printf version.
159
PRINTF_LIB =
159
#PRINTF_LIB =
160 160
#PRINTF_LIB = $(PRINTF_LIB_MIN)
161
#PRINTF_LIB = $(PRINTF_LIB_FLOAT)
161
PRINTF_LIB = $(PRINTF_LIB_FLOAT)
162 162

  
163 163

  
164 164
# Minimalistic scanf version

Also available in: Unified diff