|
Message
From: cvs at opencores.org<cvs@o...>
Date: Wed Mar 28 23:30:35 CEST 2007
Subject: [cvs-checkins] MODIFIED: openfire2 ...
Date: 00/07/03 28:23:30 Added: openfire2/sw/sample Makefile sample.c Log: Revision Changes Path 1.1 openfire2/sw/sample/Makefile http://www.opencores.org/cvsweb.shtml/openfire2/sw/sample/Makefile?rev=1.1&content-type=text/x-cvsweb-markup Index: Makefile =================================================================== PRJ = sample CRT = ../crt/crt-sram LIBIO = ../lib/uart1io SRCS = $(PRJ).c OBJS = $(SRCS:.c=.o) LINK = ../link/sp3sk-sram.ld $(PRJ).srec: $(PRJ).out mb-objcopy -O srec $(PRJ).out $(PRJ).srec mb-objcopy -O binary $(PRJ).out $(PRJ).bin ..\..\utils\bin2rom $(PRJ).bin $(PRJ).rom $(OBJS): $(SRCS) mb-gcc -B. -mno-xl-soft-mul -c -Wa,-ahlms=$(@:.o=.lst) -o $@ $(@:.o=.c) $(PRJ).out: $(CRT).o $(OBJS) mb-ld -T $(LINK) -Map=$(PRJ).map -o $(PRJ).out $(CRT).o $(OBJS) $(LIBIO).o -lgcc -lc -lm -lgcc clean: -rm *.o -rm *.out -rm *.bin -rm *.v -rm *.map -rm *.lst -rm *.bak -rm *.srec -rm *.prom -rm *.rom 1.1 openfire2/sw/sample/sample.c http://www.opencores.org/cvsweb.shtml/openfire2/sw/sample/sample.c?rev=1.1&content-type=text/x-cvsweb-markup Index: sample.c =================================================================== #include <stdio.h> #include <string.h> char buffer[256]; void main(void) { xil_printf("como te llamas? "); fgets(buffer, 255, stdin); xil_printf("\r\nhola: %s\r\n", buffer); }
|