summaryrefslogtreecommitdiff
path: root/src/bwbootloader/spacer.avr.S
diff options
context:
space:
mode:
authorNicolas Schodet2010-06-14 00:20:08 +0200
committerNicolas Schodet2010-06-14 00:27:43 +0200
commit410eaf6017cd7c6abba3d751eb55f3ad4ffafec6 (patch)
tree5e829d342f56f222af99859d487686f8a8364e9a /src/bwbootloader/spacer.avr.S
parent3166dc06c80945e4458d91fb1cf3c88d583e238d (diff)
add bootloader
Diffstat (limited to 'src/bwbootloader/spacer.avr.S')
-rw-r--r--src/bwbootloader/spacer.avr.S29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/bwbootloader/spacer.avr.S b/src/bwbootloader/spacer.avr.S
new file mode 100644
index 0000000..5ff2cb7
--- /dev/null
+++ b/src/bwbootloader/spacer.avr.S
@@ -0,0 +1,29 @@
+; spacer.avr.S
+; binwatch - Tiny binary wristwatch. {{{
+;
+; Copyright (C) 2010 Nicolas Schodet
+;
+; This program is free software; you can redistribute it and/or modify
+; it under the terms of the GNU General Public License as published by
+; the Free Software Foundation; either version 2 of the License, or
+; (at your option) any later version.
+;
+; This program is distributed in the hope that it will be useful,
+; but WITHOUT ANY WARRANTY; without even the implied warranty of
+; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+; GNU General Public License for more details.
+;
+; You should have received a copy of the GNU General Public License
+; along with this program; if not, write to the Free Software
+; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+;
+; }}}
+
+; This file sole purpose is to fill memory with 0xff after the vectors so that
+; the bootloader is placed in the last kilobyte.
+
+#include <avr/io.h>
+#include "bwbootloader.h"
+
+ .section .progmem
+ .skip FLASHEND + 1 - BWBOOTLOADER_SIZE - _VECTORS_SIZE, 0xff