Add support for STM32 Potentiometer via ADC3
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4252 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
6b6d7a6a54
commit
a1e3f34808
@ -37,8 +37,8 @@
|
|||||||
|
|
||||||
# Sub-directories
|
# Sub-directories
|
||||||
|
|
||||||
SUBDIRS = adc buttons dhcpd ftpc hello helloxx hidkbd igmp lcdrw mm mount \
|
SUBDIRS = adc buttons can dhcpd ftpc hello helloxx hidkbd igmp lcdrw mm \
|
||||||
nettest nsh null nx nxffs nxflat nxhello nximage nxlines \
|
mount nettest nsh null nx nxffs nxflat nxhello nximage nxlines \
|
||||||
nxtext ostest pashello pipe poll pwm rgmp romfs sendmail serloop \
|
nxtext ostest pashello pipe poll pwm rgmp romfs sendmail serloop \
|
||||||
thttpd tiff touchscreen udp uip usbserial usbstorage usbterm wget wlan
|
thttpd tiff touchscreen udp uip usbserial usbstorage usbterm wget wlan
|
||||||
|
|
||||||
|
@ -36,15 +36,22 @@ examples/adc
|
|||||||
A mindlessly simple test of an ADC devices. It simply reads from the
|
A mindlessly simple test of an ADC devices. It simply reads from the
|
||||||
ADC device and dumps the data to the console forever.
|
ADC device and dumps the data to the console forever.
|
||||||
|
|
||||||
- CONFIG_NSH_BUILTIN_APPS - Build the ADC test as an NSH built-in function.
|
This test depends on these specific ADC/NSH configurations settings (your
|
||||||
|
specific ADC settings might require additional settings).
|
||||||
|
|
||||||
|
CONFIG_ADC - Enabled ADC support
|
||||||
|
CONFIG_NSH_BUILTIN_APPS - Build the ADC test as an NSH built-in function.
|
||||||
Default: Built as a standalone problem
|
Default: Built as a standalone problem
|
||||||
- CONFIG_EXAMPLES_ADC_DEVPATH - The path to the ADC device. Default: /dev/adc0
|
|
||||||
- CONFIG_EXAMPLES_ADC_NSAMPLES - If CONFIG_NSH_BUILTIN_APPS
|
Specific configuration options for this example include:
|
||||||
|
|
||||||
|
CONFIG_EXAMPLES_ADC_DEVPATH - The path to the ADC device. Default: /dev/adc0
|
||||||
|
CONFIG_EXAMPLES_ADC_NSAMPLES - If CONFIG_NSH_BUILTIN_APPS
|
||||||
is defined, then the number of samples is provided on the command line
|
is defined, then the number of samples is provided on the command line
|
||||||
and this value is ignored. Otherwise, this number of samples is
|
and this value is ignored. Otherwise, this number of samples is
|
||||||
collected and the program terminates. Default: Samples are collected
|
collected and the program terminates. Default: Samples are collected
|
||||||
indefinitely.
|
indefinitely.
|
||||||
- CONFIG_EXAMPLES_ADC_GROUPSIZE - The number of samples to read at once.
|
CONFIG_EXAMPLES_ADC_GROUPSIZE - The number of samples to read at once.
|
||||||
Default: 4
|
Default: 4
|
||||||
|
|
||||||
examples/buttons
|
examples/buttons
|
||||||
@ -84,18 +91,17 @@ examples/can
|
|||||||
sequence of CAN messages and verifies that those messages are returned
|
sequence of CAN messages and verifies that those messages are returned
|
||||||
exactly as sent.
|
exactly as sent.
|
||||||
|
|
||||||
This test depends on these specific CAN configurations settings (your
|
This test depends on these specific CAN/NSH configurations settings (your
|
||||||
specific CAN settings might require additional settings).
|
specific CAN settings might require additional settings).
|
||||||
|
|
||||||
CONFIG_CAN - Enables CAN support.
|
CONFIG_CAN - Enables CAN support.
|
||||||
CONFIG_CAN_LOOPBACK - A CAN driver may or may not support a loopback
|
CONFIG_CAN_LOOPBACK - A CAN driver may or may not support a loopback
|
||||||
mode for testing. The STM32 CAN driver does support loopback mode.
|
mode for testing. The STM32 CAN driver does support loopback mode.
|
||||||
|
CONFIG_NSH_BUILTIN_APPS - Build the CAN test as an NSH built-in function.
|
||||||
|
Default: Built as a standalone problem
|
||||||
|
|
||||||
Specific configuration options for this example include:
|
Specific configuration options for this example include:
|
||||||
|
|
||||||
CONFIG_NSH_BUILTIN_APPS - Build the CAN test as an NSH built-in function.
|
|
||||||
Default: Built as a standalone problem
|
|
||||||
CONFIG_CAN_LOOPBACK
|
|
||||||
CONFIG_EXAMPLES_CAN_DEVPATH - The path to the CAN device. Default: /dev/can0
|
CONFIG_EXAMPLES_CAN_DEVPATH - The path to the CAN device. Default: /dev/can0
|
||||||
CONFIG_EXAMPLES_CAN_NMSGS - If CONFIG_NSH_BUILTIN_APPS
|
CONFIG_EXAMPLES_CAN_NMSGS - If CONFIG_NSH_BUILTIN_APPS
|
||||||
is defined, then the number of loops is provided on the command line
|
is defined, then the number of loops is provided on the command line
|
||||||
@ -713,9 +719,16 @@ examples/pwm
|
|||||||
a specified frequency and duty for a specified period of time. This
|
a specified frequency and duty for a specified period of time. This
|
||||||
example can ONLY be built as an NSH built-in function.
|
example can ONLY be built as an NSH built-in function.
|
||||||
|
|
||||||
|
This test depends on these specific PWM/NSH configurations settings (your
|
||||||
|
specific PWM settings might require additional settings).
|
||||||
|
|
||||||
|
CONFIG_PWM - Enables PWM support.
|
||||||
CONFIG_NSH_BUILTIN_APPS - Build the PWM test as an NSH built-in function.
|
CONFIG_NSH_BUILTIN_APPS - Build the PWM test as an NSH built-in function.
|
||||||
Default: Not built! The example can only be used as an NSH built-in
|
Default: Not built! The example can only be used as an NSH built-in
|
||||||
application
|
application
|
||||||
|
|
||||||
|
Specific configuration options for this example include:
|
||||||
|
|
||||||
CONFIG_EXAMPLES_PWM_DEVPATH - The path to the PWM device. Default: /dev/pwm0
|
CONFIG_EXAMPLES_PWM_DEVPATH - The path to the PWM device. Default: /dev/pwm0
|
||||||
CONFIG_EXAMPLES_PWM_FREQUENCY - The initial PWM frequency. Default: 100 Hz
|
CONFIG_EXAMPLES_PWM_FREQUENCY - The initial PWM frequency. Default: 100 Hz
|
||||||
CONFIG_EXAMPLES_PWM_DUTYPCT - The initial PWM duty as a percentage. Default: 50%
|
CONFIG_EXAMPLES_PWM_DUTYPCT - The initial PWM duty as a percentage. Default: 50%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user