FILE
stm32-lptim-trigger.h
File preview with syntax highlighting.
linux-6.19.14/include/linux/iio/timer/stm32-lptim-trigger.h
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) STMicroelectronics 2017 4 * 5 * Author: Fabrice Gasnier <fabrice.gasnier@st.com> 6 */ 7 8#ifndef _STM32_LPTIM_TRIGGER_H_ 9#define _STM32_LPTIM_TRIGGER_H_ 10 11#include <linux/iio/iio.h> 12#include <linux/iio/trigger.h> 13 14#define LPTIM1_OUT "lptim1_out" 15#define LPTIM2_OUT "lptim2_out" 16#define LPTIM3_OUT "lptim3_out" 17#define LPTIM4_OUT "lptim4_out" 18#define LPTIM5_OUT "lptim5_out" 19 20#define LPTIM1_CH1 "lptim1_ch1" 21#define LPTIM1_CH2 "lptim1_ch2" 22#define LPTIM2_CH1 "lptim2_ch1" 23#define LPTIM2_CH2 "lptim2_ch2" 24#define LPTIM3_CH1 "lptim3_ch1" 25#define LPTIM4_CH1 "lptim4_ch1" 26 27#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER) 28bool is_stm32_lptim_trigger(struct iio_trigger *trig); 29#else 30static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig) 31{ 32#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER) 33 pr_warn_once("stm32 lptim_trigger not linked in\n"); 34#endif 35 return false; 36} 37#endif 38#endif
~/
Read-only file preview.