summaryrefslogtreecommitdiffstats
path: root/sw-avr/rom-loader
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-10-30 11:43:37 +0100
committerNao Pross <naopross@thearcway.org>2018-10-30 11:43:37 +0100
commit4c6a7daa23653ef607ed3dcb8106223e6723a5c4 (patch)
tree90344141a3b27cb3c468d816b1765ae24a13b6a0 /sw-avr/rom-loader
parentDelete buspirte fw files (diff)
downloadz80uPC-4c6a7daa23653ef607ed3dcb8106223e6723a5c4.tar.gz
z80uPC-4c6a7daa23653ef607ed3dcb8106223e6723a5c4.zip
Create avr project for ROM loader
Diffstat (limited to '')
-rw-r--r--sw-avr/rom-loader/main.c6
-rw-r--r--sw-avr/rom-loader/makefile17
-rwxr-xr-xsw-avr/rom-loader/rom-loader.binbin0 -> 6352 bytes
3 files changed, 23 insertions, 0 deletions
diff --git a/sw-avr/rom-loader/main.c b/sw-avr/rom-loader/main.c
new file mode 100644
index 0000000..b178c06
--- /dev/null
+++ b/sw-avr/rom-loader/main.c
@@ -0,0 +1,6 @@
+#include <avr/io.h>
+
+int main(void)
+{
+ return;
+}
diff --git a/sw-avr/rom-loader/makefile b/sw-avr/rom-loader/makefile
new file mode 100644
index 0000000..e68174f
--- /dev/null
+++ b/sw-avr/rom-loader/makefile
@@ -0,0 +1,17 @@
+CC=avr-gcc
+CARGS=-Wall -mmcu=atmega328p -D__AVR_ATmega328p__ -Os -I.
+
+SOURCES=main.c
+
+.PHONY: all flash clean
+all: rom-loader.bin
+
+flash: rom-loader.bin
+ avrdude -c usbasp -p atmega328p
+
+clean:
+ rm rom-loader.bin
+
+rom-loader.bin: $(SOURCES)
+ $(CC) $(CARGS) $< -o $@
+
diff --git a/sw-avr/rom-loader/rom-loader.bin b/sw-avr/rom-loader/rom-loader.bin
new file mode 100755
index 0000000..1feb241
--- /dev/null
+++ b/sw-avr/rom-loader/rom-loader.bin
Binary files differ