diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-05 19:05:13 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-05 19:05:13 -0600 |
commit | 1986e064064ad52c29d40e7d7f37ff8e80045e2a (patch) | |
tree | b325767bb508513c4043d3709bbd31c82a150cd4 /nuttx/arch/arm/src | |
parent | 24be0995e3d2b729de088d76c12d9f52b1bd049c (diff) | |
download | nuttx-1986e064064ad52c29d40e7d7f37ff8e80045e2a.tar.gz nuttx-1986e064064ad52c29d40e7d7f37ff8e80045e2a.tar.bz2 nuttx-1986e064064ad52c29d40e7d7f37ff8e80045e2a.zip |
Tiva ADC: Add Kconfig options for ADC. From Calvin Maguranis
Diffstat (limited to 'nuttx/arch/arm/src')
-rw-r--r-- | nuttx/arch/arm/src/tiva/Kconfig | 902 |
1 files changed, 902 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/tiva/Kconfig b/nuttx/arch/arm/src/tiva/Kconfig index 71a5f4e10..acda4530f 100644 --- a/nuttx/arch/arm/src/tiva/Kconfig +++ b/nuttx/arch/arm/src/tiva/Kconfig @@ -91,6 +91,8 @@ config ARCH_CHIP_TM4C123GH6PMI select TIVA_HAVE_GPIOD_IRQS select TIVA_HAVE_GPIOE_IRQS select TIVA_HAVE_GPIOF_IRQS + select TIVA_HAVE_ADC0 + select TIVA_HAVE_ADC1 config ARCH_CHIP_TM4C1294NC bool "TM4C1294NC" @@ -836,12 +838,912 @@ endif # TIVA_TIMER_16BIT config TIVA_TIMER_REGDEBUG bool "Register level debug" default n + depends on DEBUG ---help--- Enables extremely detailed register access debug output. endmenu # Tiva Timer Configuration endif # TIVA_TIMER +if TIVA_ADC +menu "Tiva ADC Configuration" + +config TIVA_ADC_CLOCK + int "ADC clock in MHz" + default 16000000 + range 16000000 32000000 + depends on ARM_CHIP_TM4C129 + ---help--- + Clocking can only be configured for the TM4C129; The TM4C129 ADC can be clocked from + 16 MHz to 32 MHz. The TM4C123 clock is limited to 16 MHz. + +if TIVA_ADC0 +menu "Tiva ADC0 configuration" + +menuconfig TIVA_ADC0_SSE0 + bool "Enable and configure ADC0 SSE0" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC0_SSE0_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + range 0 3 + depends on TIVA_ADC0_SSE0 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC0_SSE0_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + range 0 15 + depends on TIVA_ADC0_SSE0 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC0_SSE0_STEP0 + bool "Enable and configure ADC0 SSE0 step 0" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP0 + + config TIVA_ADC0_SSE0_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP0 + + menuconfig TIVA_ADC0_SSE0_STEP1 + bool "Enable and configure ADC0 SSE0 step 1" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP1_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP1 + + config TIVA_ADC0_SSE0_STEP1_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP1 + + menuconfig TIVA_ADC0_SSE0_STEP2 + bool "Enable and configure ADC0 SSE0 step 2" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP2_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP2 + + config TIVA_ADC0_SSE0_STEP2_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP2 + + menuconfig TIVA_ADC0_SSE0_STEP3 + bool "Enable and configure ADC0 SSE0 step 3" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP3_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP3 + + config TIVA_ADC0_SSE0_STEP3_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP3 + + menuconfig TIVA_ADC0_SSE0_STEP4 + bool "Enable and configure ADC0 SSE0 step 4" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP4_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP4 + + config TIVA_ADC0_SSE0_STEP4_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP4 + + menuconfig TIVA_ADC0_SSE0_STEP5 + bool "Enable and configure ADC0 SSE0 step 5" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP5_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP5 + + config TIVA_ADC0_SSE0_STEP5_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP5 + + menuconfig TIVA_ADC0_SSE0_STEP6 + bool "Enable and configure ADC0 SSE0 step 6" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP6_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP6 + + config TIVA_ADC0_SSE0_STEP6_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP6 + + menuconfig TIVA_ADC0_SSE0_STEP7 + bool "Enable and configure ADC0 SSE0 step 7" + default n + depends on TIVA_ADC0_SSE0 + + config TIVA_ADC0_SSE0_STEP7_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE0_STEP7 + + config TIVA_ADC0_SSE0_STEP7_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE0_STEP7 + +menuconfig TIVA_ADC0_SSE1 + bool "Enable and configure ADC0 SSE1" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC0_SSE1_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + depends on TIVA_ADC0_SSE1 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC0_SSE1_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + depends on TIVA_ADC0_SSE1 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC0_SSE1_STEP0 + bool "Enable and configure ADC0 SSE1 step 0" + default n + depends on TIVA_ADC0_SSE1 + + config TIVA_ADC0_SSE1_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE1_STEP0 + + config TIVA_ADC0_SSE1_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE1_STEP0 + + menuconfig TIVA_ADC0_SSE1_STEP1 + bool "Enable and configure ADC0 SSE1 step 1" + default n + depends on TIVA_ADC0_SSE1 + + config TIVA_ADC0_SSE1_STEP1_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE1_STEP1 + + config TIVA_ADC0_SSE1_STEP1_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE1_STEP1 + + menuconfig TIVA_ADC0_SSE1_STEP2 + bool "Enable and configure ADC0 SSE1 step 2" + default n + depends on TIVA_ADC0_SSE1 + + config TIVA_ADC0_SSE1_STEP2_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE1_STEP2 + + config TIVA_ADC0_SSE1_STEP2_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE1_STEP2 + + menuconfig TIVA_ADC0_SSE1_STEP3 + bool "Enable and configure ADC0 SSE1 step 3" + default n + depends on TIVA_ADC0_SSE1 + + config TIVA_ADC0_SSE1_STEP3_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE1_STEP3 + + config TIVA_ADC0_SSE1_STEP3_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE1_STEP3 + +menuconfig TIVA_ADC0_SSE2 + bool "Enable and configure ADC0 SSE2" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC0_SSE2_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + depends on TIVA_ADC0_SSE2 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC0_SSE2_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + depends on TIVA_ADC0_SSE2 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC0_SSE2_STEP0 + bool "Enable and configure ADC0 SSE2 step 0" + default n + depends on TIVA_ADC0_SSE2 + + config TIVA_ADC0_SSE2_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE2_STEP0 + + config TIVA_ADC0_SSE2_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE2_STEP0 + + menuconfig TIVA_ADC0_SSE2_STEP1 + bool "Enable and configure ADC0 SSE2 step 1" + default n + depends on TIVA_ADC0_SSE2 + + config TIVA_ADC0_SSE2_STEP1_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE2_STEP1 + + config TIVA_ADC0_SSE2_STEP1_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE2_STEP1 + + menuconfig TIVA_ADC0_SSE2_STEP2 + bool "Enable and configure ADC0 SSE2 step 2" + default n + depends on TIVA_ADC0_SSE2 + + config TIVA_ADC0_SSE2_STEP2_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE2_STEP2 + + config TIVA_ADC0_SSE2_STEP2_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE2_STEP2 + + menuconfig TIVA_ADC0_SSE2_STEP3 + bool "Enable and configure ADC0 SSE2 step 3" + default n + depends on TIVA_ADC0_SSE2 + + config TIVA_ADC0_SSE2_STEP3_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE2_STEP3 + + config TIVA_ADC0_SSE2_STEP3_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE2_STEP3 + +menuconfig TIVA_ADC0_SSE3 + bool "Enable and configure ADC0 SSE3" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC0_SSE3_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + depends on TIVA_ADC0_SSE3 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC0_SSE3_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + depends on TIVA_ADC0_SSE3 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC0_SSE3_STEP0 + bool "Enable and configure ADC0 SSE3 step 0" + default n + depends on TIVA_ADC0_SSE3 + + config TIVA_ADC0_SSE3_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC0_SSE3_STEP0 + + config TIVA_ADC0_SSE3_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC0_SSE3_STEP0 + +endmenu # Tiva ADC0 configuration +endif # TIVA_ADC0 + +if TIVA_ADC1 +menu "Tiva ADC1 configuration" + +menuconfig TIVA_ADC1_SSE0 + bool "Enable and configure ADC1 SSE0" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC1_SSE0_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + depends on TIVA_ADC1_SSE0 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC1_SSE0_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + depends on TIVA_ADC1_SSE0 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC1_SSE0_STEP0 + bool "Enable and configure ADC1 SSE0 step 0" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP0 + + config TIVA_ADC1_SSE0_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP0 + + menuconfig TIVA_ADC1_SSE0_STEP1 + bool "Enable and configure ADC1 SSE0 step 1" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP1_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP1 + + config TIVA_ADC1_SSE0_STEP1_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP1 + + menuconfig TIVA_ADC1_SSE0_STEP2 + bool "Enable and configure ADC1 SSE0 step 2" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP2_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP2 + + config TIVA_ADC1_SSE0_STEP2_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP2 + + menuconfig TIVA_ADC1_SSE0_STEP3 + bool "Enable and configure ADC1 SSE0 step 3" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP3_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP3 + + config TIVA_ADC1_SSE0_STEP3_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP3 + + menuconfig TIVA_ADC1_SSE0_STEP4 + bool "Enable and configure ADC1 SSE0 step 4" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP4_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP4 + + config TIVA_ADC1_SSE0_STEP4_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP4 + + menuconfig TIVA_ADC1_SSE0_STEP5 + bool "Enable and configure ADC1 SSE0 step 5" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP5_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP5 + + config TIVA_ADC1_SSE0_STEP5_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP5 + + menuconfig TIVA_ADC1_SSE0_STEP6 + bool "Enable and configure ADC1 SSE0 step 6" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP6_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP6 + + config TIVA_ADC1_SSE0_STEP6_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP6 + + menuconfig TIVA_ADC1_SSE0_STEP7 + bool "Enable and configure ADC1 SSE0 step 7" + default n + depends on TIVA_ADC1_SSE0 + + config TIVA_ADC1_SSE0_STEP7_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE0_STEP7 + + config TIVA_ADC1_SSE0_STEP7_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE0_STEP7 + +menuconfig TIVA_ADC1_SSE1 + bool "Enable and configure ADC1 SSE1" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC1_SSE1_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + depends on TIVA_ADC1_SSE1 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC1_SSE1_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + depends on TIVA_ADC1_SSE1 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC1_SSE1_STEP0 + bool "Enable and configure ADC1 SSE1 step 0" + default n + depends on TIVA_ADC1_SSE1 + + config TIVA_ADC1_SSE1_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE1_STEP0 + + config TIVA_ADC1_SSE1_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE1_STEP0 + + menuconfig TIVA_ADC1_SSE1_STEP1 + bool "Enable and configure ADC1 SSE1 step 1" + default n + depends on TIVA_ADC1_SSE1 + + config TIVA_ADC1_SSE1_STEP1_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE1_STEP1 + + config TIVA_ADC1_SSE1_STEP1_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE1_STEP1 + + menuconfig TIVA_ADC1_SSE1_STEP2 + bool "Enable and configure ADC1 SSE1 step 2" + default n + depends on TIVA_ADC1_SSE1 + + config TIVA_ADC1_SSE1_STEP2_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE1_STEP2 + + config TIVA_ADC1_SSE1_STEP2_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE1_STEP2 + + menuconfig TIVA_ADC1_SSE1_STEP3 + bool "Enable and configure ADC1 SSE1 step 3" + default n + depends on TIVA_ADC1_SSE1 + + config TIVA_ADC1_SSE1_STEP3_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE1_STEP3 + + config TIVA_ADC1_SSE1_STEP3_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE1_STEP3 + +menuconfig TIVA_ADC1_SSE2 + bool "Enable and configure ADC1 SSE2" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC1_SSE2_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + depends on TIVA_ADC1_SSE2 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC1_SSE2_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + range 0 15 + depends on TIVA_ADC1_SSE2 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC1_SSE2_STEP0 + bool "Enable and configure ADC1 SSE2 step 0" + default n + depends on TIVA_ADC1_SSE2 + + config TIVA_ADC1_SSE2_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE2_STEP0 + + config TIVA_ADC1_SSE2_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE2_STEP0 + + menuconfig TIVA_ADC1_SSE2_STEP1 + bool "Enable and configure ADC1 SSE2 step 1" + default n + depends on TIVA_ADC1_SSE2 + + config TIVA_ADC1_SSE2_STEP1_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE2_STEP1 + + config TIVA_ADC1_SSE2_STEP1_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE2_STEP1 + + menuconfig TIVA_ADC1_SSE2_STEP2 + bool "Enable and configure ADC1 SSE2 step 2" + default n + depends on TIVA_ADC1_SSE2 + + config TIVA_ADC1_SSE2_STEP2_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE2_STEP2 + + config TIVA_ADC1_SSE2_STEP2_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE2_STEP2 + + menuconfig TIVA_ADC1_SSE2_STEP3 + bool "Enable and configure ADC1 SSE2 step 3" + default n + depends on TIVA_ADC1_SSE2 + + config TIVA_ADC1_SSE2_STEP3_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE2_STEP3 + + config TIVA_ADC1_SSE2_STEP3_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE2_STEP3 + +menuconfig TIVA_ADC1_SSE3 + bool "Enable and configure ADC1 SSE3" + default n + ---help--- + Select this Sample Sequencer for operation. There are 0-3,4-7 possible SSEs + depending on how many ADC peripherals are available (4 per each ADC). + + Configuration variables: + - trigger select + - priority + - input channel step assignment + + config TIVA_ADC1_SSE3_PRIORITY + int "Conversion priority, must be a value from 0 to 3, no duplicates" + default 0 + depends on TIVA_ADC1_SSE3 + ---help--- + Set the conversion priority for this SSE. Each ADC has 4 SSEs so the + order in which they are serviced is determined by this value. + + config TIVA_ADC1_SSE3_TRIGGER + int "Set the trigger source to start a SSE's conversion, see help for options" + default 0 + depends on TIVA_ADC1_SSE3 + ---help--- + Set the trigger source. The following values correspond to the + following triggers: + - 0x0: Processor (default) + - 0x1: *Analog Comparator 0 + - 0x2: *Analog Comparator 1 + - 0x3: *Analog Comparator 2 + - 0x4: External (GPIO Pins) + - 0x5: Timer + - 0x6: **PWM generator 0 + - 0x7: **PWM generator 1 + - 0x8: **PWM generator 2 + - 0x9: **PWM generator 3 + - 0xE: Never Trigger + - 0xF: Always (continuously sample) + + * Comparators are unsupported + ** PWM triggering requires additional setup at runtime - There is a special + ADC IOCTL defined in the Tiva ADC driver for this purpose. + + menuconfig TIVA_ADC1_SSE3_STEP0 + bool "Enable and configure ADC1 SSE3 step 0" + default n + depends on TIVA_ADC1_SSE3 + + config TIVA_ADC1_SSE3_STEP0_TS + bool "This step will retrieve data from the on-chip temperature sensor." + default n + depends on TIVA_ADC1_SSE3_STEP0 + + config TIVA_ADC1_SSE3_STEP0_AIN + int "Set the input AIN. See datasheet for pin to AIN mappings." + default 0 + depends on TIVA_ADC1_SSE3_STEP0 + +endmenu # Tiva ADC1 configuration +endif # TIVA_ADC1 + +config TIVA_ADC_REGDEBUG + bool "Register level debug" + default n + depends on DEBUG + ---help--- + Enables extremely detailed register access debug output. + +endmenu # Tiva ADC Configuration +endif # TIVA_ADC + if TIVA_ETHERNET menu "Stellaris Ethernet Configuration" |