From 1d535e3be811c670fcc94d6e44172d617491c383 Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Wed, 29 May 2013 12:08:21 +0900
Subject: fix race condition of handle_intr.

---
 board/board-olimex-stm32-h103.h | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'board/board-olimex-stm32-h103.h')

diff --git a/board/board-olimex-stm32-h103.h b/board/board-olimex-stm32-h103.h
index 69fdaaa..7063ab3 100644
--- a/board/board-olimex-stm32-h103.h
+++ b/board/board-olimex-stm32-h103.h
@@ -22,3 +22,11 @@
 
 #define RCC_APB2ENR_IOP_EN	RCC_APB2ENR_IOPCEN
 #define RCC_APB2RSTR_IOP_RST	RCC_APB2RSTR_IOPCRST
+
+/* NeuG settings for ADC2.  */
+#define NEUG_ADC_SETTING2_SMPR1 ADC_SMPR1_SMP_AN10(ADC_SAMPLE_1P5) \
+                              | ADC_SMPR1_SMP_AN11(ADC_SAMPLE_1P5)
+#define NEUG_ADC_SETTING2_SMPR2 0
+#define NEUG_ADC_SETTING2_SQR3  ADC_SQR3_SQ1_N(ADC_CHANNEL_IN10)   \
+                              | ADC_SQR3_SQ2_N(ADC_CHANNEL_IN11)
+#define NEUG_ADC_SETTING2_NUM_CHANNELS 2
-- 
cgit v1.2.3