@@ -87,9 +99,7 @@ struct pwm_device { struct pwm_chip *chip; void *chip_data; - unsigned int period; /* in nanoseconds */ - unsigned int duty_cycle; /* in nanoseconds */ - enum pwm_polarity polarity; + struct pwm_state state; }; static inline bool pwm_is_enabled(const struc...
void pwm_disable(struct pwm_device *pwm) { - if (pwm && test_and_clear_bit(PWMF_ENABLED, &pwm->flags)) + if (pwm && pwm_is_enabled(pwm)) { pwm->chip->ops->disable(pwm->chip, pwm); + pwm->state.enabled = false; + } } EXPORT_SYMBOL_GPL(pwm_disable); diff --git a/inc...
struct xf::motorcontrol::details::pwmPassedArgs template struct xf::motorcontrol::details::pwmStrmIO template class xf::motorcontrol::details::QEI template class xf::motorcontrol::details::deglitcher enum xf::motorcontrol::FOC_Mode enum xf::motorcontrol::MODE_PWM_DC_SRC enum xf::...
//#define TFT_SCLK 14 //#define TFT_CS 5 // Chip select control pin //#define TFT_DC 27 // Data Command control pin //#define TFT_RST 33 // Reset pin (could connect to Arduino RESET pin) //#define TFT_BL 22 // LED back-light //#define TOUCH_CS 21 // Chip select pin (...
PWM PanSensor Sensor 模型 WLAN 系统基础能力子系统集 用户程序框架 AbilityKit BundleManager 公共通信子系统 Softbus 图形及UI子系统 Surface Window UI_Components UI_DFX UI_Animator UI_Utils UI_Common UI_Events UI_Layout UI_Theme 服务框架子系统 Broadcast OHOS I...
PWM PanSensor Sensor 模型 WLAN 系统基础能力子系统集 用户程序框架 AbilityKit BundleManager 公共通信子系统 Softbus 图形及UI子系统 Surface Window UI_Components UI_DFX UI_Animator UI_Utils UI_Common UI_Events UI_Layout UI_Theme 服务框架子系统 Broadcast OHOS Init...
开发者ID:STM32F3Examples,项目名称:Cpp_05_PWM,代码行数:33,代码来源:pwm_stm32.c 示例15: ADC1_Config ▲点赞 1▼ voidADC1_Config(void){ ADC_InitTypeDef ADC_InitStructure; GPIO_InitTypeDef GPIO_InitStructure;/* Enable GPIO ports B */RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);/...
CONTROL_CURPWM,//!< current cool pwm CONTROL_MANULPWM,//!< set the cool pwm CONTROL_CFWPORT,//!< control camera color filter wheel port CONTROL_COOLER,//!< check if camera has cooler CONTROL_ST4PORT,//!< check if camera has st4port ...
Referenced by updateGppwm(). ◆ gyroYaw scaled_channel<int16_t, 1000, 1> output_channels_s::gyroYaw = (int16_t)0 @GAUGE_NAME_GYRO_YAW@ units: deg/sec offset 276 Definition at line 741 of file output_channels_generated.h. Referenced by getOutputValueByName(), and updateTunerStudioSt...
gpio_chip directly. And while we're at it: replace all container_of() dereferencing by gpiochip_get_data() and registering the gpio_chip with gpiochip_add_data(). Cc: a...@kernel.org Cc: Lee Jones <lee.jo...@linaro.org> Cc: Alexander Shiyan <shc_w...@mail.ru> Cc: Shawn ...