URL
https://opencores.org/ocsvn/openfire2/openfire2/trunk
Subversion Repositories openfire2
Compare Revisions
- This comparison shows the changes necessary to convert path
/openfire2/trunk/sw/sample
- from Rev 3 to Rev 6
- ↔ Reverse comparison
Rev 3 → Rev 6
/sample.c
0,0 → 1,12
#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); |
|
} |
/Makefile
0,0 → 1,29
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 |