summaryrefslogtreecommitdiff
path: root/src/telelco-v0.2-cc1200/flash-loader/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-06-16 23:50:11 -0700
committerKeith Packard <keithp@keithp.com>2018-06-17 01:28:36 -0700
commit291bcd751991960ae3dad8c6523323fdcbafa16d (patch)
tree9c0d208b9fa171b7e1af8e958ac489e7a461ef3c /src/telelco-v0.2-cc1200/flash-loader/ao_pins.h
parent16482bf5d63eafc5256f14a218d3a374f6584e0a (diff)
altos/telelco-v0.2-cc1200: Add build for NAR hacked TeleLCO v0.2 board
This has the CC1120 replaced with a CC1200, but with 32MHz xtals instead of 40MHz on the radio chip. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telelco-v0.2-cc1200/flash-loader/ao_pins.h')
-rw-r--r--src/telelco-v0.2-cc1200/flash-loader/ao_pins.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/telelco-v0.2-cc1200/flash-loader/ao_pins.h b/src/telelco-v0.2-cc1200/flash-loader/ao_pins.h
new file mode 100644
index 00000000..72f840c0
--- /dev/null
+++ b/src/telelco-v0.2-cc1200/flash-loader/ao_pins.h
@@ -0,0 +1,35 @@
+/*
+ * 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; 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.
+ */
+
+#ifndef _AO_PINS_H_
+#define _AO_PINS_H_
+
+/* External crystal at 8MHz */
+#define AO_HSE 8000000
+
+#include <ao_flash_stm_pins.h>
+
+/* Arm switch. Press at power on to get boot loader */
+
+#define AO_BOOT_PIN 1
+#define AO_BOOT_APPLICATION_GPIO stm_gpioe
+#define AO_BOOT_APPLICATION_PIN 4
+#define AO_BOOT_APPLICATION_VALUE 1
+#define AO_BOOT_APPLICATION_MODE AO_EXTI_MODE_PULL_UP
+
+#endif /* _AO_PINS_H_ */