summaryrefslogtreecommitdiff
path: root/src/vidtime/flash-loader/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-05-07 11:26:42 -0700
committerKeith Packard <keithp@keithp.com>2018-05-07 11:26:42 -0700
commit06dac6551418ba817798c187f198b9b00c1dda74 (patch)
treed1a7fbbd056f80dfe01c57a42b2d4c68080e1a8e /src/vidtime/flash-loader/ao_pins.h
parent1f56dc30a31e3d5c833f73ec9cd31f548a80e154 (diff)
altos: add 'vidtime', a simple brightness monitor
This is a testing tool for video refresh tracking. It uses the mpusb v3.0 hardware and monitors the phototransistor value, sending 0 or 1 to the USB port when the value changes. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/vidtime/flash-loader/ao_pins.h')
-rw-r--r--src/vidtime/flash-loader/ao_pins.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/vidtime/flash-loader/ao_pins.h b/src/vidtime/flash-loader/ao_pins.h
new file mode 100644
index 00000000..7feb9362
--- /dev/null
+++ b/src/vidtime/flash-loader/ao_pins.h
@@ -0,0 +1,34 @@
+/*
+ * 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_stm_pins.h>
+
+/* Debug port PA15 (pin 23) */
+
+#define AO_BOOT_PIN 1
+#define AO_BOOT_APPLICATION_GPIO (stm_gpioa)
+#define AO_BOOT_APPLICATION_PIN 15
+#define AO_BOOT_APPLICATION_VALUE 1
+#define AO_BOOT_APPLICATION_MODE AO_EXTI_MODE_PULL_UP
+
+#define AO_USB_DIRECTIO 0
+#define AO_PA11_PA12_RMP 1
+
+#endif /* _AO_PINS_H_ */