2017-02-26 12:42:43 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
if ARCH_BOARD_NUCLEO_F334R8
|
|
|
|
|
2017-10-22 17:46:13 +02:00
|
|
|
config NUCLEOF334R8_HIGHPRI
|
2019-10-06 05:39:12 +02:00
|
|
|
bool "High priority interrupt test"
|
|
|
|
default n
|
2017-10-22 17:46:13 +02:00
|
|
|
|
2018-12-09 17:31:57 +01:00
|
|
|
menuconfig NUCLEOF334R8_SPWM
|
2019-10-06 05:39:12 +02:00
|
|
|
bool "Sinusoidal PWM generator example"
|
|
|
|
default n
|
2018-12-09 17:31:57 +01:00
|
|
|
|
|
|
|
if NUCLEOF334R8_SPWM
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Sinusoidal PWM source"
|
|
|
|
default NUCLEOF334R8_SPWM_USE_TIM1
|
|
|
|
|
|
|
|
config NUCLEOF334R8_SPWM_USE_TIM1
|
2019-10-06 05:39:12 +02:00
|
|
|
bool "Use TIM1 as PWM source"
|
2018-12-09 17:31:57 +01:00
|
|
|
|
|
|
|
config NUCLEOF334R8_SPWM_USE_HRTIM1
|
2019-10-06 05:39:12 +02:00
|
|
|
bool "Use HRTIM as PWM source"
|
2018-12-09 17:31:57 +01:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config NUCLEOF334R8_SPWM_PWM_FREQ
|
2019-10-06 05:39:12 +02:00
|
|
|
int "PWM frequency in Hz"
|
|
|
|
default 100000
|
2018-12-09 17:31:57 +01:00
|
|
|
|
|
|
|
config NUCLEOF334R8_SPWM_SAMPLES
|
2019-10-06 05:39:12 +02:00
|
|
|
int "Sine samples"
|
|
|
|
default 100
|
2018-12-09 17:31:57 +01:00
|
|
|
|
|
|
|
config NUCLEOF334R8_SPWM_FREQ
|
2019-10-06 05:39:12 +02:00
|
|
|
int "Waveform frequency in Hz"
|
|
|
|
default 60
|
2018-12-09 17:31:57 +01:00
|
|
|
|
|
|
|
config NUCLEOF334R8_SPWM_PHASE_NUM
|
2019-10-06 05:39:12 +02:00
|
|
|
int "Number of phases"
|
|
|
|
default 1
|
|
|
|
range 1 5 if NUCLEOF334R8_SPWM_USE_HRTIM1
|
|
|
|
range 1 4 if NUCLEOF334R8_SPWM_USE_TIM1
|
2018-12-09 17:31:57 +01:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2017-02-26 12:42:43 +01:00
|
|
|
endif
|