Hi everyone I am new member of this group, I just started my career in Embedded System, here I want to know if their any good website where I will get to learn Embedded C/C++ or I will get to learn howto program the LPC 210X family of microcontrollers. Looking forward for anyones reply....
Bye
Lopamudra
diff -urN newlib-lpc_rel_2.orig/example.mak newlib-lpc_rel_2/example.mak
--- newlib-lpc_rel_2.orig/example.mak 2004-01-30 14:04:34.000000000 +0800
+++ newlib-lpc_rel_2/example.mak 2004-06-28 12:31:08.000000000 +0800
@@ -6,8 +6,11 @@
#-v means verbose output
#-o $@ means use $@ as output filename
#$+ copies dependancies to link line
-cfgl_arm = -v -o$@ e:/cygwin/home/radsett/arm/crt0.o $+ -Te:/cygwin/home/radsett/arm/lpc210x.ld
-cfg_arm_gc = -c -Os -nostdinc -isystem /home/radsett/install/arm-elf/include/ -isystem /home/radsett/install/lib/gcc-lib/arm-elf/3.3.2/include/ -o $@
+#cfgl_arm = -v -o$@ e:/cygwin/home/radsett/arm/crt0.o $+ -Te:/cygwin/home/radsett/arm/lpc210x.ld
+SYS_LDFLAGS = ${shell arm-elf-gcc -print-search-dirs | grep ^libraries | sed -e "s/^libraries:.*=/:/g" -e "s/
/\\\\ /g" -e "s/:/ -L /g"}
+cfgl_arm = -v -o$@ -L. ${SYS_LDFLAGS} crt0.o $+ -Tlpc210x.ld
+#cfg_arm_gc = -c -Os -nostdinc -isystem /home/radsett/install/arm-elf/include/ -isystem /home/radsett/install/lib/gcc-lib/arm-elf/3.3.2/include/ -o $@
+cfg_arm_gc = -c -Os -o $@
#
# GNU Compiler ARM
@@ -43,7 +46,7 @@
endif
-all: crt0.o test2.hex test3.hex test6.hex test7.hex lib
+all: dep lib crt0.o test2.hex test3.hex test6.hex test7.hex
testsource = test2.c test3.c test6.c test7.c testdiv.c
sources = _close_r.c _fstat_r.c _ioctl_r.c _lseek_r.c _open_r.c \
@@ -64,10 +67,27 @@
test7.prg: test7.o testdiv.o $(sources:.c=.o)
$(cl)
-lib: newlib-lpc.a($(sources:.c=.o))
+lib: libnewlib-lpc.a($(sources:.c=.o))
-newlib-lpc.a($(sources:.c=.o)): $(sources:.c=.o)
+libnewlib-lpc.a($(sources:.c=.o)): $(sources:.c=.o)
archive: $(sources:%=$(ARCPATH)/%) $(ARCPATH)/makefile $(ARCPATH)/setupnew.mak
$(testsource:%=$(ARCPATH)/%) $(headers:%=$(ARCPATH)/%) $(ARCPATH)/crt0.s
+
+dep : $(sources:.c=.d) $(testsource:.c=.d) testdiv.d
+ @touch .depend
+
+clean:
+ rm -f *.o
+ rm -f *.a
+ rm -f *.hex
+ rm -f *.prg
+ rm -f *.d
+ rm -f *.d.[0-9]*
+ rm -f .depend
+
+ifneq ($(wildward .depend),)
include $(sources:.c=.d) $(testsource:.c=.d) testdiv.d
+endif
+
+
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!