1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #592 from LudwigOrtmann/lpc2k_pgm

Lpc2k pgm
This commit is contained in:
Ludwig Ortmann 2014-01-31 10:08:51 -08:00
commit 4931ea7d95
13 changed files with 6 additions and 62 deletions

View File

@ -40,7 +40,7 @@ boot_23xx.c boot_23xx.h: src/boot_23xx.armasm mkbootc
arm-none-eabi-objdump -d obj/boot_23xx.armobj | ./mkbootc boot_23xx
clean:
rm -f bin/lpc2k_pgm cksum_test obj/*.o core core.* obj/*.armobj bin/pseudoterm
rm -f bin/lpc2k_pgm cksum_test obj/*.o obj/*.d core core.* obj/*.armobj bin/pseudoterm
install:
install -m 0755 bin/lpc2k_pgm $(prefix)/bin

View File

@ -0,0 +1,2 @@
*.o
*.d

View File

@ -1,3 +0,0 @@
obj/boot_23xx.d: src/boot_23xx.c src/boot_23xx.h
src/boot_23xx.h:

View File

@ -1,3 +0,0 @@
obj/boot_2xxx.d: src/boot_2xxx.c src/boot_2xxx.h
src/boot_2xxx.h:

View File

@ -1,8 +0,0 @@
obj/chipinfo.d: src/chipinfo.c src/chipinfo.h src/boot_2xxx.h \
src/boot_23xx.h
src/chipinfo.h:
src/boot_2xxx.h:
src/boot_23xx.h:

View File

@ -1,5 +0,0 @@
obj/control_2xxx.d: src/control_2xxx.c src/control_2xxx.h src/serial.h
src/control_2xxx.h:
src/serial.h:

View File

@ -1,19 +0,0 @@
obj/download.d: src/download.c src/lpc2k_pgm.h src/download.h \
src/serial.h src/ihex.h src/uuencode.h src/chipinfo.h src/boot.h \
src/control_2xxx.h
src/lpc2k_pgm.h:
src/download.h:
src/serial.h:
src/ihex.h:
src/uuencode.h:
src/chipinfo.h:
src/boot.h:
src/control_2xxx.h:

View File

@ -1,3 +0,0 @@
obj/ihex.d: src/ihex.c src/ihex.h
src/ihex.h:

View File

@ -1,8 +0,0 @@
obj/lpc2k_pgm.d: src/lpc2k_pgm.c src/lpc2k_pgm.h src/serial.h \
src/download.h
src/lpc2k_pgm.h:
src/serial.h:
src/download.h:

View File

@ -1,5 +0,0 @@
obj/pseudoterm.d: src/pseudoterm.c src/serial.h src/download.h
src/serial.h:
src/download.h:

View File

@ -1,3 +0,0 @@
obj/serial.d: src/serial.c src/serial.h
src/serial.h:

View File

@ -1,3 +0,0 @@
obj/uuencode.d: src/uuencode.c src/uuencode.h
src/uuencode.h:

View File

@ -47,11 +47,13 @@
#include "download.h"
int programming_done = 0;
int programming_status = 0;
int done_program(int i)
{
printf("Programming done.\n");
programming_done = 1;
programming_status = i;
return 0;
}
@ -96,6 +98,6 @@ int main(int argc, char **argv)
close_serial_port();
return 0;
return programming_status;
}