summaryrefslogtreecommitdiff
path: root/src/telegps-v1.0/flash-loader
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-21 14:38:00 -0700
committerKeith Packard <keithp@keithp.com>2014-05-30 17:32:53 -0700
commita339a91d64d011add2dfeccd5402af57d932b41a (patch)
tree976e1aa0f7af37b9453672b1f83bbf91588f9dc7 /src/telegps-v1.0/flash-loader
parent177d3c0333fd4218f01e05c78cbc5f186c8e32c0 (diff)
altos: Hacks to get telegps v1.0 running
Mine is busted, and there are a lot of cc115l kludges in here Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telegps-v1.0/flash-loader')
-rw-r--r--src/telegps-v1.0/flash-loader/Makefile8
-rw-r--r--src/telegps-v1.0/flash-loader/ao_pins.h33
2 files changed, 41 insertions, 0 deletions
diff --git a/src/telegps-v1.0/flash-loader/Makefile b/src/telegps-v1.0/flash-loader/Makefile
new file mode 100644
index 00000000..5283f554
--- /dev/null
+++ b/src/telegps-v1.0/flash-loader/Makefile
@@ -0,0 +1,8 @@
+#
+# AltOS flash loader build
+#
+#
+
+TOPDIR=../..
+HARDWARE=telegps-v1.0
+include $(TOPDIR)/lpc/Makefile-flash.defs
diff --git a/src/telegps-v1.0/flash-loader/ao_pins.h b/src/telegps-v1.0/flash-loader/ao_pins.h
new file mode 100644
index 00000000..91097a25
--- /dev/null
+++ b/src/telegps-v1.0/flash-loader/ao_pins.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright © 2013 Keith Packard <keithp@keithp.com>
+ *
+ * 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; version 2 of the License.
+ *
+ * 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.
+ */
+
+#ifndef _AO_PINS_H_
+#define _AO_PINS_H_
+
+#include <ao_flash_lpc_pins.h>
+
+#define AO_BOOT_PIN 1
+#define AO_BOOT_APPLICATION_GPIO 0
+#define AO_BOOT_APPLICATION_PIN 19
+#define AO_BOOT_APPLICATION_VALUE 1
+#define AO_BOOT_APPLICATION_MODE AO_EXTI_MODE_PULL_UP
+
+#define HAS_USB_PULLUP 1
+#define AO_USB_PULLUP_PORT 0
+#define AO_USB_PULLUP_PIN 7
+
+#endif /* _AO_PINS_H_ */