From 60e0fbd189ec02c7817e7db649cb41f70d445525 Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Thu, 6 Jun 2013 10:56:17 +0900
Subject: update board-*.h

---
 board/board-stm8s-discovery.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

(limited to 'board/board-stm8s-discovery.h')

diff --git a/board/board-stm8s-discovery.h b/board/board-stm8s-discovery.h
index 6be488a..d43caf7 100644
--- a/board/board-stm8s-discovery.h
+++ b/board/board-stm8s-discovery.h
@@ -5,6 +5,16 @@
 #undef  GPIO_USB_CLEAR_TO_ENABLE
 #define GPIO_LED_SET_TO_EMIT		8
 
+/*
+ * Port A setup.
+ * PA0  - input with pull-up.  AN0
+ * PA1  - input with pull-up.  AN1
+ * PA8  - Push pull output 10MHz (LED 1:ON 0:OFF)
+ * PA11 - Push Pull output 10MHz 0 default (until USB enabled) (USBDM) 
+ * PA12 - Push Pull output 10MHz 0 default (until USB enabled) (USBDP)
+ * ------------------------ Default
+ * PAx  - input with pull-up
+ */
 #define VAL_GPIO_ODR            0xFFFFE7FF
 #define VAL_GPIO_CRL            0x88888888      /*  PA7...PA0 */
 #define VAL_GPIO_CRH            0x88811881      /* PA15...PA8 */
@@ -14,3 +24,5 @@
 
 #define RCC_APB2ENR_IOP_EN	(RCC_APB2ENR_IOPAEN)
 #define RCC_APB2RSTR_IOP_RST	(RCC_APB2RSTR_IOPARST)
+
+/* NeuG settings for ADC2 is default (PA0: Analog IN0, PA1: Analog IN1).  */
-- 
cgit v1.2.3