URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
Compare Revisions
- This comparison shows the changes necessary to convert path
/minsoc/tags/release-0.9/sw/uart
- from Rev 39 to Rev 42
- ↔ Reverse comparison
Rev 39 → Rev 42
/uart.c
0,0 → 1,21
#include "../support/support.h" |
#include "../support/board.h" |
|
#include "../support/spr_defs.h" |
|
#include "../drivers/uart.h" |
|
int main() |
{ |
uart_init(); |
|
int_init(); |
int_add(UART_IRQ, &uart_interrupt); |
|
/* We can't use printf because in this simple example |
we don't link C library. */ |
uart_print_str("Hello World.\n\r"); |
|
report(0xdeaddead); |
or32_exit(0); |
} |
uart.c
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 42)
@@ -0,0 +1,24 @@
+cases = uart-nocache uart-icdc
+common = ../support/libsupport.a ../support/except.o
+drivers = ../drivers/libdrivers.a
+
+all: $(cases)
+
+uart-nocache: uart.o ../support/reset-nocache.o $(common) $(drivers)
+ $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32
+ $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
+ ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
+ ../utils/bin2vmem $@.bin > $@.vmem
+
+
+uart-icdc: uart.o ../support/reset-icdc.o $(common) $(drivers)
+ $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32
+ $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
+ ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
+ ../utils/bin2vmem $@.bin > $@.vmem
+
+
+uart.o: uart.c
+ $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $? -c -o $@
+
+include ../support/Makefile.inc
Makefile
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property