URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/orpsocv2/sw/tests/uart
- from Rev 397 to Rev 408
- ↔ Reverse comparison
Rev 397 → Rev 408
/board/uart-echo.c
0,0 → 1,22
#include "cpu-utils.h" |
#include "uart.h" |
#include "printf.h" |
|
// Echo some characters until we recieve a '!' charecter, after which |
// we will exit simulation. |
|
|
int |
main() |
{ |
|
uart_init(DEFAULT_UART); // init the UART before we can printf |
|
char c; |
printf("Echo - type and see it echo back:\n"); |
while (1) |
{ |
c = uart_getc(DEFAULT_UART); |
printf("%c",c); |
} |
} |
/board/Makefile
0,0 → 1,13
SW_ROOT=../../.. |
|
include $(SW_ROOT)/Makefile.inc |
|
%.dis: %.elf |
$(Q)$(OR32_OBJDUMP) -d $< > $@ |
|
%.bin: %.elf |
$(Q)$(OR32_OBJCOPY) -O binary $< $@ |
|
clean: |
$(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis |
|