summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-21 15:47:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-21 15:47:34 +0000
commit91e5f3be762398dfef29881ebd339c9deba11d92 (patch)
tree1791765d0da3de267f3cef832bc42efe6e362d55 /nuttx/configs/shenzhou/README.txt
parentd7f2428afb540539a14827ecb2d757329acb71c9 (diff)
downloadpx4-nuttx-91e5f3be762398dfef29881ebd339c9deba11d92.tar.gz
px4-nuttx-91e5f3be762398dfef29881ebd339c9deba11d92.tar.bz2
px4-nuttx-91e5f3be762398dfef29881ebd339c9deba11d92.zip
Kconfig changes to get a clean STM32 ADC example build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5246 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/shenzhou/README.txt')
-rw-r--r--nuttx/configs/shenzhou/README.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/nuttx/configs/shenzhou/README.txt b/nuttx/configs/shenzhou/README.txt
index 7bf67710d..a60019a27 100644
--- a/nuttx/configs/shenzhou/README.txt
+++ b/nuttx/configs/shenzhou/README.txt
@@ -772,6 +772,34 @@ Where <subdir> is one of the following:
before the networking finally gives up and decides that no network is
available.
+ 2. Enabling the ADC example:
+
+ The only internal signal for ADC testing is the potentiometer input:
+
+ ADC1_IN10(PC0) Potentiometer
+
+ External signals are also available on CON5 CN14:
+
+ ADC_IN8 (PB0) CON5 CN14 Pin2
+ ADC_IN9 (PB1) CON5 CN14 Pin1
+
+ The signal selection is hard-coded in configs/shenzhou/src/up_adc.c: The
+ potentiometer input (only) is selected.
+
+ These selections will enable sampling the potentiometer input at 100Hz using
+ Timer 1:
+
+ CONFIG_ANALOG=y : Enable analog device support
+ CONFIG_ADC=y : Enable generic ADC driver support
+ CONFIG_ADC_DMA=n : ADC DMA is not supported
+ CONFIG_STM32_ADC1=y : Enable ADC 1
+ CONFIG_STM32_TIM1=y : Enable Timer 1
+ CONFIG_STM32_TIM1_ADC=y : Use Timer 1 for ADC
+ CONFIG_STM32_TIM1_ADC1=y : Allocate Timer 1 to ADC 1
+ CONFIG_STM32_ADC1_SAMPLE_FREQUENCY=100 : Set sampling frequency to 100Hz
+ CONFIG_STM32_ADC1_TIMTRIG=0 : Trigger on timer output 0
+ CONFIG_EXAMPLES_ADC=y : Enable the apps/examples/adc built-in
+
nxwm
----
This is a special configuration setup for the NxWM window manager