stm32-timer-trigger.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) STMicroelectronics 2016
  3. *
  4. * Author: Benjamin Gaignard <benjamin.gaignard@st.com>
  5. *
  6. * License terms: GNU General Public License (GPL), version 2
  7. */
  8. #ifndef _STM32_TIMER_TRIGGER_H_
  9. #define _STM32_TIMER_TRIGGER_H_
  10. #define TIM1_TRGO "tim1_trgo"
  11. #define TIM1_TRGO2 "tim1_trgo2"
  12. #define TIM1_CH1 "tim1_ch1"
  13. #define TIM1_CH2 "tim1_ch2"
  14. #define TIM1_CH3 "tim1_ch3"
  15. #define TIM1_CH4 "tim1_ch4"
  16. #define TIM2_TRGO "tim2_trgo"
  17. #define TIM2_CH1 "tim2_ch1"
  18. #define TIM2_CH2 "tim2_ch2"
  19. #define TIM2_CH3 "tim2_ch3"
  20. #define TIM2_CH4 "tim2_ch4"
  21. #define TIM3_TRGO "tim3_trgo"
  22. #define TIM3_CH1 "tim3_ch1"
  23. #define TIM3_CH2 "tim3_ch2"
  24. #define TIM3_CH3 "tim3_ch3"
  25. #define TIM3_CH4 "tim3_ch4"
  26. #define TIM4_TRGO "tim4_trgo"
  27. #define TIM4_CH1 "tim4_ch1"
  28. #define TIM4_CH2 "tim4_ch2"
  29. #define TIM4_CH3 "tim4_ch3"
  30. #define TIM4_CH4 "tim4_ch4"
  31. #define TIM5_TRGO "tim5_trgo"
  32. #define TIM5_CH1 "tim5_ch1"
  33. #define TIM5_CH2 "tim5_ch2"
  34. #define TIM5_CH3 "tim5_ch3"
  35. #define TIM5_CH4 "tim5_ch4"
  36. #define TIM6_TRGO "tim6_trgo"
  37. #define TIM7_TRGO "tim7_trgo"
  38. #define TIM8_TRGO "tim8_trgo"
  39. #define TIM8_TRGO2 "tim8_trgo2"
  40. #define TIM8_CH1 "tim8_ch1"
  41. #define TIM8_CH2 "tim8_ch2"
  42. #define TIM8_CH3 "tim8_ch3"
  43. #define TIM8_CH4 "tim8_ch4"
  44. #define TIM9_TRGO "tim9_trgo"
  45. #define TIM9_CH1 "tim9_ch1"
  46. #define TIM9_CH2 "tim9_ch2"
  47. #define TIM10_OC1 "tim10_oc1"
  48. #define TIM11_OC1 "tim11_oc1"
  49. #define TIM12_TRGO "tim12_trgo"
  50. #define TIM12_CH1 "tim12_ch1"
  51. #define TIM12_CH2 "tim12_ch2"
  52. #define TIM13_OC1 "tim13_oc1"
  53. #define TIM14_OC1 "tim14_oc1"
  54. #define TIM15_TRGO "tim15_trgo"
  55. #define TIM16_OC1 "tim16_oc1"
  56. #define TIM17_OC1 "tim17_oc1"
  57. bool is_stm32_timer_trigger(struct iio_trigger *trig);
  58. #endif