20#ifndef __STM32H7xx_LL_TIM_H
21#define __STM32H7xx_LL_TIM_H
34#if defined (TIM1) || defined (TIM2) || defined (TIM3) || defined (TIM4) || defined (TIM5) || defined (TIM6) || defined (TIM7) || defined (TIM8) || defined (TIM12) || defined (TIM13) || defined (TIM14) || defined (TIM15) || defined (TIM16) || defined (TIM17) || defined (TIM23) || defined (TIM24)
47static const uint8_t OFFSET_TAB_CCMRx[] =
60static const uint8_t SHIFT_TAB_OCxx[] =
73static const uint8_t SHIFT_TAB_ICxx[] =
86static const uint8_t SHIFT_TAB_CCxP[] =
99static const uint8_t SHIFT_TAB_OISx[] =
121#if defined(TIM_BREAK_INPUT_SUPPORT)
123#define TIM_POSITION_BRK_SOURCE (POSITION_VAL(Source) & 0x1FUL)
126#define TIMx_AF1_BKINP TIM1_AF1_BKINP
127#define TIMx_AF1_ETRSEL TIM1_AF1_ETRSEL
132#define DT_DELAY_1 ((uint8_t)0x7F)
133#define DT_DELAY_2 ((uint8_t)0x3F)
134#define DT_DELAY_3 ((uint8_t)0x1F)
135#define DT_DELAY_4 ((uint8_t)0x1F)
138#define DT_RANGE_1 ((uint8_t)0x00)
139#define DT_RANGE_2 ((uint8_t)0x80)
140#define DT_RANGE_3 ((uint8_t)0xC0)
141#define DT_RANGE_4 ((uint8_t)0xE0)
166#define TIM_GET_CHANNEL_INDEX( __CHANNEL__) \
167 (((__CHANNEL__) == LL_TIM_CHANNEL_CH1) ? 0U :\
168 ((__CHANNEL__) == LL_TIM_CHANNEL_CH1N) ? 1U :\
169 ((__CHANNEL__) == LL_TIM_CHANNEL_CH2) ? 2U :\
170 ((__CHANNEL__) == LL_TIM_CHANNEL_CH2N) ? 3U :\
171 ((__CHANNEL__) == LL_TIM_CHANNEL_CH3) ? 4U :\
172 ((__CHANNEL__) == LL_TIM_CHANNEL_CH3N) ? 5U :\
173 ((__CHANNEL__) == LL_TIM_CHANNEL_CH4) ? 6U :\
174 ((__CHANNEL__) == LL_TIM_CHANNEL_CH5) ? 7U : 8U)
184#define TIM_CALC_DTS(__TIMCLK__, __CKD__) \
185 (((__CKD__) == LL_TIM_CLOCKDIVISION_DIV1) ? ((uint64_t)1000000000000U/(__TIMCLK__)) : \
186 ((__CKD__) == LL_TIM_CLOCKDIVISION_DIV2) ? ((uint64_t)1000000000000U/((__TIMCLK__) >> 1U)) : \
187 ((uint64_t)1000000000000U/((__TIMCLK__) >> 2U)))
194#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
211 uint32_t CounterMode;
226 uint32_t ClockDivision;
232 uint32_t RepetitionCounter;
270 uint32_t CompareValue;
282 uint32_t OCNPolarity;
289 uint32_t OCIdleState;
295 uint32_t OCNIdleState;
300} LL_TIM_OC_InitTypeDef;
315 uint32_t ICActiveInput;
321 uint32_t ICPrescaler;
332} LL_TIM_IC_InitTypeDef;
340 uint32_t EncoderMode;
346 uint32_t IC1Polarity;
352 uint32_t IC1ActiveInput;
358 uint32_t IC1Prescaler;
370 uint32_t IC2Polarity;
376 uint32_t IC2ActiveInput;
382 uint32_t IC2Prescaler;
394} LL_TIM_ENCODER_InitTypeDef;
402 uint32_t IC1Polarity;
408 uint32_t IC1Prescaler;
423 uint32_t CommutationDelay;
430} LL_TIM_HALLSENSOR_InitTypeDef;
480 uint32_t BreakPolarity;
489 uint32_t BreakFilter;
498#if defined(TIM_BDTR_BKBID)
499 uint32_t BreakAFMode;
511 uint32_t Break2State;
520 uint32_t Break2Polarity;
529 uint32_t Break2Filter;
538#if defined(TIM_BDTR_BKBID)
539 uint32_t Break2AFMode;
551 uint32_t AutomaticOutput;
559} LL_TIM_BDTR_InitTypeDef;
577#define LL_TIM_SR_UIF TIM_SR_UIF
578#define LL_TIM_SR_CC1IF TIM_SR_CC1IF
579#define LL_TIM_SR_CC2IF TIM_SR_CC2IF
580#define LL_TIM_SR_CC3IF TIM_SR_CC3IF
581#define LL_TIM_SR_CC4IF TIM_SR_CC4IF
582#define LL_TIM_SR_CC5IF TIM_SR_CC5IF
583#define LL_TIM_SR_CC6IF TIM_SR_CC6IF
584#define LL_TIM_SR_COMIF TIM_SR_COMIF
585#define LL_TIM_SR_TIF TIM_SR_TIF
586#define LL_TIM_SR_BIF TIM_SR_BIF
587#define LL_TIM_SR_B2IF TIM_SR_B2IF
588#define LL_TIM_SR_CC1OF TIM_SR_CC1OF
589#define LL_TIM_SR_CC2OF TIM_SR_CC2OF
590#define LL_TIM_SR_CC3OF TIM_SR_CC3OF
591#define LL_TIM_SR_CC4OF TIM_SR_CC4OF
592#define LL_TIM_SR_SBIF TIM_SR_SBIF
597#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
602#define LL_TIM_BREAK_DISABLE 0x00000000U
603#define LL_TIM_BREAK_ENABLE TIM_BDTR_BKE
612#define LL_TIM_BREAK2_DISABLE 0x00000000U
613#define LL_TIM_BREAK2_ENABLE TIM_BDTR_BK2E
622#define LL_TIM_AUTOMATICOUTPUT_DISABLE 0x00000000U
623#define LL_TIM_AUTOMATICOUTPUT_ENABLE TIM_BDTR_AOE
634#define LL_TIM_DIER_UIE TIM_DIER_UIE
635#define LL_TIM_DIER_CC1IE TIM_DIER_CC1IE
636#define LL_TIM_DIER_CC2IE TIM_DIER_CC2IE
637#define LL_TIM_DIER_CC3IE TIM_DIER_CC3IE
638#define LL_TIM_DIER_CC4IE TIM_DIER_CC4IE
639#define LL_TIM_DIER_COMIE TIM_DIER_COMIE
640#define LL_TIM_DIER_TIE TIM_DIER_TIE
641#define LL_TIM_DIER_BIE TIM_DIER_BIE
650#define LL_TIM_UPDATESOURCE_REGULAR 0x00000000U
651#define LL_TIM_UPDATESOURCE_COUNTER TIM_CR1_URS
660#define LL_TIM_ONEPULSEMODE_SINGLE TIM_CR1_OPM
661#define LL_TIM_ONEPULSEMODE_REPETITIVE 0x00000000U
670#define LL_TIM_COUNTERMODE_UP 0x00000000U
671#define LL_TIM_COUNTERMODE_DOWN TIM_CR1_DIR
672#define LL_TIM_COUNTERMODE_CENTER_DOWN TIM_CR1_CMS_0
673#define LL_TIM_COUNTERMODE_CENTER_UP TIM_CR1_CMS_1
674#define LL_TIM_COUNTERMODE_CENTER_UP_DOWN TIM_CR1_CMS
683#define LL_TIM_CLOCKDIVISION_DIV1 0x00000000U
684#define LL_TIM_CLOCKDIVISION_DIV2 TIM_CR1_CKD_0
685#define LL_TIM_CLOCKDIVISION_DIV4 TIM_CR1_CKD_1
694#define LL_TIM_COUNTERDIRECTION_UP 0x00000000U
695#define LL_TIM_COUNTERDIRECTION_DOWN TIM_CR1_DIR
704#define LL_TIM_CCUPDATESOURCE_COMG_ONLY 0x00000000U
705#define LL_TIM_CCUPDATESOURCE_COMG_AND_TRGI TIM_CR2_CCUS
714#define LL_TIM_CCDMAREQUEST_CC 0x00000000U
715#define LL_TIM_CCDMAREQUEST_UPDATE TIM_CR2_CCDS
724#define LL_TIM_LOCKLEVEL_OFF 0x00000000U
725#define LL_TIM_LOCKLEVEL_1 TIM_BDTR_LOCK_0
726#define LL_TIM_LOCKLEVEL_2 TIM_BDTR_LOCK_1
727#define LL_TIM_LOCKLEVEL_3 TIM_BDTR_LOCK
736#define LL_TIM_CHANNEL_CH1 TIM_CCER_CC1E
737#define LL_TIM_CHANNEL_CH1N TIM_CCER_CC1NE
738#define LL_TIM_CHANNEL_CH2 TIM_CCER_CC2E
739#define LL_TIM_CHANNEL_CH2N TIM_CCER_CC2NE
740#define LL_TIM_CHANNEL_CH3 TIM_CCER_CC3E
741#define LL_TIM_CHANNEL_CH3N TIM_CCER_CC3NE
742#define LL_TIM_CHANNEL_CH4 TIM_CCER_CC4E
743#define LL_TIM_CHANNEL_CH5 TIM_CCER_CC5E
744#define LL_TIM_CHANNEL_CH6 TIM_CCER_CC6E
749#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
754#define LL_TIM_OCSTATE_DISABLE 0x00000000U
755#define LL_TIM_OCSTATE_ENABLE TIM_CCER_CC1E
765#define LL_TIM_OCMODE_FROZEN 0x00000000U
766#define LL_TIM_OCMODE_ACTIVE TIM_CCMR1_OC1M_0
767#define LL_TIM_OCMODE_INACTIVE TIM_CCMR1_OC1M_1
768#define LL_TIM_OCMODE_TOGGLE (TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0)
769#define LL_TIM_OCMODE_FORCED_INACTIVE TIM_CCMR1_OC1M_2
770#define LL_TIM_OCMODE_FORCED_ACTIVE (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_0)
771#define LL_TIM_OCMODE_PWM1 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1)
772#define LL_TIM_OCMODE_PWM2 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0)
773#define LL_TIM_OCMODE_RETRIG_OPM1 TIM_CCMR1_OC1M_3
774#define LL_TIM_OCMODE_RETRIG_OPM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_0)
775#define LL_TIM_OCMODE_COMBINED_PWM1 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_2)
776#define LL_TIM_OCMODE_COMBINED_PWM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_0 | TIM_CCMR1_OC1M_2)
777#define LL_TIM_OCMODE_ASSYMETRIC_PWM1 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2)
778#define LL_TIM_OCMODE_ASSYMETRIC_PWM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M)
787#define LL_TIM_OCPOLARITY_HIGH 0x00000000U
788#define LL_TIM_OCPOLARITY_LOW TIM_CCER_CC1P
797#define LL_TIM_OCIDLESTATE_LOW 0x00000000U
798#define LL_TIM_OCIDLESTATE_HIGH TIM_CR2_OIS1
807#define LL_TIM_GROUPCH5_NONE 0x00000000U
808#define LL_TIM_GROUPCH5_OC1REFC TIM_CCR5_GC5C1
809#define LL_TIM_GROUPCH5_OC2REFC TIM_CCR5_GC5C2
810#define LL_TIM_GROUPCH5_OC3REFC TIM_CCR5_GC5C3
819#define LL_TIM_ACTIVEINPUT_DIRECTTI (TIM_CCMR1_CC1S_0 << 16U)
820#define LL_TIM_ACTIVEINPUT_INDIRECTTI (TIM_CCMR1_CC1S_1 << 16U)
821#define LL_TIM_ACTIVEINPUT_TRC (TIM_CCMR1_CC1S << 16U)
830#define LL_TIM_ICPSC_DIV1 0x00000000U
831#define LL_TIM_ICPSC_DIV2 (TIM_CCMR1_IC1PSC_0 << 16U)
832#define LL_TIM_ICPSC_DIV4 (TIM_CCMR1_IC1PSC_1 << 16U)
833#define LL_TIM_ICPSC_DIV8 (TIM_CCMR1_IC1PSC << 16U)
842#define LL_TIM_IC_FILTER_FDIV1 0x00000000U
843#define LL_TIM_IC_FILTER_FDIV1_N2 (TIM_CCMR1_IC1F_0 << 16U)
844#define LL_TIM_IC_FILTER_FDIV1_N4 (TIM_CCMR1_IC1F_1 << 16U)
845#define LL_TIM_IC_FILTER_FDIV1_N8 ((TIM_CCMR1_IC1F_1 | TIM_CCMR1_IC1F_0) << 16U)
846#define LL_TIM_IC_FILTER_FDIV2_N6 (TIM_CCMR1_IC1F_2 << 16U)
847#define LL_TIM_IC_FILTER_FDIV2_N8 ((TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_0) << 16U)
848#define LL_TIM_IC_FILTER_FDIV4_N6 ((TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_1) << 16U)
849#define LL_TIM_IC_FILTER_FDIV4_N8 ((TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_1 | TIM_CCMR1_IC1F_0) << 16U)
850#define LL_TIM_IC_FILTER_FDIV8_N6 (TIM_CCMR1_IC1F_3 << 16U)
851#define LL_TIM_IC_FILTER_FDIV8_N8 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_0) << 16U)
852#define LL_TIM_IC_FILTER_FDIV16_N5 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_1) << 16U)
853#define LL_TIM_IC_FILTER_FDIV16_N6 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_1 | TIM_CCMR1_IC1F_0) << 16U)
854#define LL_TIM_IC_FILTER_FDIV16_N8 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_2) << 16U)
855#define LL_TIM_IC_FILTER_FDIV32_N5 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_0) << 16U)
856#define LL_TIM_IC_FILTER_FDIV32_N6 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_1) << 16U)
857#define LL_TIM_IC_FILTER_FDIV32_N8 (TIM_CCMR1_IC1F << 16U)
866#define LL_TIM_IC_POLARITY_RISING 0x00000000U
867#define LL_TIM_IC_POLARITY_FALLING TIM_CCER_CC1P
868#define LL_TIM_IC_POLARITY_BOTHEDGE (TIM_CCER_CC1P | TIM_CCER_CC1NP)
877#define LL_TIM_CLOCKSOURCE_INTERNAL 0x00000000U
878#define LL_TIM_CLOCKSOURCE_EXT_MODE1 (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)
879#define LL_TIM_CLOCKSOURCE_EXT_MODE2 TIM_SMCR_ECE
888#define LL_TIM_ENCODERMODE_X2_TI1 TIM_SMCR_SMS_0
889#define LL_TIM_ENCODERMODE_X2_TI2 TIM_SMCR_SMS_1
890#define LL_TIM_ENCODERMODE_X4_TI12 (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)
899#define LL_TIM_TRGO_RESET 0x00000000U
900#define LL_TIM_TRGO_ENABLE TIM_CR2_MMS_0
901#define LL_TIM_TRGO_UPDATE TIM_CR2_MMS_1
902#define LL_TIM_TRGO_CC1IF (TIM_CR2_MMS_1 | TIM_CR2_MMS_0)
903#define LL_TIM_TRGO_OC1REF TIM_CR2_MMS_2
904#define LL_TIM_TRGO_OC2REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_0)
905#define LL_TIM_TRGO_OC3REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1)
906#define LL_TIM_TRGO_OC4REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1 | TIM_CR2_MMS_0)
915#define LL_TIM_TRGO2_RESET 0x00000000U
916#define LL_TIM_TRGO2_ENABLE TIM_CR2_MMS2_0
917#define LL_TIM_TRGO2_UPDATE TIM_CR2_MMS2_1
918#define LL_TIM_TRGO2_CC1F (TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
919#define LL_TIM_TRGO2_OC1 TIM_CR2_MMS2_2
920#define LL_TIM_TRGO2_OC2 (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_0)
921#define LL_TIM_TRGO2_OC3 (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1)
922#define LL_TIM_TRGO2_OC4 (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
923#define LL_TIM_TRGO2_OC5 TIM_CR2_MMS2_3
924#define LL_TIM_TRGO2_OC6 (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_0)
925#define LL_TIM_TRGO2_OC4_RISINGFALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_1)
926#define LL_TIM_TRGO2_OC6_RISINGFALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
927#define LL_TIM_TRGO2_OC4_RISING_OC6_RISING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2)
928#define LL_TIM_TRGO2_OC4_RISING_OC6_FALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 | TIM_CR2_MMS2_0)
929#define LL_TIM_TRGO2_OC5_RISING_OC6_RISING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 |TIM_CR2_MMS2_1)
930#define LL_TIM_TRGO2_OC5_RISING_OC6_FALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
939#define LL_TIM_SLAVEMODE_DISABLED 0x00000000U
940#define LL_TIM_SLAVEMODE_RESET TIM_SMCR_SMS_2
941#define LL_TIM_SLAVEMODE_GATED (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_0)
942#define LL_TIM_SLAVEMODE_TRIGGER (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1)
943#define LL_TIM_SLAVEMODE_COMBINED_RESETTRIGGER TIM_SMCR_SMS_3
952#define LL_TIM_TS_ITR0 0x00000000U
953#define LL_TIM_TS_ITR1 TIM_SMCR_TS_0
954#define LL_TIM_TS_ITR2 TIM_SMCR_TS_1
955#define LL_TIM_TS_ITR3 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1)
956#define LL_TIM_TS_ITR4 (TIM_SMCR_TS_3)
957#define LL_TIM_TS_ITR5 (TIM_SMCR_TS_0 | TIM_SMCR_TS_3)
958#define LL_TIM_TS_ITR6 (TIM_SMCR_TS_1 | TIM_SMCR_TS_3)
959#define LL_TIM_TS_ITR7 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_3)
960#define LL_TIM_TS_ITR8 (TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
961#define LL_TIM_TS_ITR9 (TIM_SMCR_TS_0 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
962#define LL_TIM_TS_ITR10 (TIM_SMCR_TS_1 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
963#define LL_TIM_TS_ITR11 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
964#define LL_TIM_TS_ITR12 (TIM_SMCR_TS_4)
965#define LL_TIM_TS_ITR13 (TIM_SMCR_TS_0 | TIM_SMCR_TS_4)
966#define LL_TIM_TS_TI1F_ED TIM_SMCR_TS_2
967#define LL_TIM_TS_TI1FP1 (TIM_SMCR_TS_2 | TIM_SMCR_TS_0)
968#define LL_TIM_TS_TI2FP2 (TIM_SMCR_TS_2 | TIM_SMCR_TS_1)
969#define LL_TIM_TS_ETRF (TIM_SMCR_TS_2 | TIM_SMCR_TS_1 | TIM_SMCR_TS_0)
978#define LL_TIM_ETR_POLARITY_NONINVERTED 0x00000000U
979#define LL_TIM_ETR_POLARITY_INVERTED TIM_SMCR_ETP
988#define LL_TIM_ETR_PRESCALER_DIV1 0x00000000U
989#define LL_TIM_ETR_PRESCALER_DIV2 TIM_SMCR_ETPS_0
990#define LL_TIM_ETR_PRESCALER_DIV4 TIM_SMCR_ETPS_1
991#define LL_TIM_ETR_PRESCALER_DIV8 TIM_SMCR_ETPS
1000#define LL_TIM_ETR_FILTER_FDIV1 0x00000000U
1001#define LL_TIM_ETR_FILTER_FDIV1_N2 TIM_SMCR_ETF_0
1002#define LL_TIM_ETR_FILTER_FDIV1_N4 TIM_SMCR_ETF_1
1003#define LL_TIM_ETR_FILTER_FDIV1_N8 (TIM_SMCR_ETF_1 | TIM_SMCR_ETF_0)
1004#define LL_TIM_ETR_FILTER_FDIV2_N6 TIM_SMCR_ETF_2
1005#define LL_TIM_ETR_FILTER_FDIV2_N8 (TIM_SMCR_ETF_2 | TIM_SMCR_ETF_0)
1006#define LL_TIM_ETR_FILTER_FDIV4_N6 (TIM_SMCR_ETF_2 | TIM_SMCR_ETF_1)
1007#define LL_TIM_ETR_FILTER_FDIV4_N8 (TIM_SMCR_ETF_2 | TIM_SMCR_ETF_1 | TIM_SMCR_ETF_0)
1008#define LL_TIM_ETR_FILTER_FDIV8_N6 TIM_SMCR_ETF_3
1009#define LL_TIM_ETR_FILTER_FDIV8_N8 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_0)
1010#define LL_TIM_ETR_FILTER_FDIV16_N5 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_1)
1011#define LL_TIM_ETR_FILTER_FDIV16_N6 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_1 | TIM_SMCR_ETF_0)
1012#define LL_TIM_ETR_FILTER_FDIV16_N8 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_2)
1013#define LL_TIM_ETR_FILTER_FDIV32_N5 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_2 | TIM_SMCR_ETF_0)
1014#define LL_TIM_ETR_FILTER_FDIV32_N6 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_2 | TIM_SMCR_ETF_1)
1015#define LL_TIM_ETR_FILTER_FDIV32_N8 TIM_SMCR_ETF
1020#define LL_TIM_TIM1_ETRSOURCE_GPIO 0x00000000U
1021#define LL_TIM_TIM1_ETRSOURCE_COMP1 TIM1_AF1_ETRSEL_0
1022#define LL_TIM_TIM1_ETRSOURCE_COMP2 TIM1_AF1_ETRSEL_1
1023#define LL_TIM_TIM1_ETRSOURCE_ADC1_AWD1 (TIM1_AF1_ETRSEL_1 | TIM1_AF1_ETRSEL_0)
1024#define LL_TIM_TIM1_ETRSOURCE_ADC1_AWD2 (TIM1_AF1_ETRSEL_2)
1025#define LL_TIM_TIM1_ETRSOURCE_ADC1_AWD3 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_0)
1026#define LL_TIM_TIM1_ETRSOURCE_ADC3_AWD1 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_1)
1027#define LL_TIM_TIM1_ETRSOURCE_ADC3_AWD2 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_1 | TIM1_AF1_ETRSEL_0)
1028#define LL_TIM_TIM1_ETRSOURCE_ADC3_AWD3 TIM1_AF1_ETRSEL_3
1030#define LL_TIM_TIM8_ETRSOURCE_GPIO 0x00000000U
1031#define LL_TIM_TIM8_ETRSOURCE_COMP1 TIM8_AF1_ETRSEL_0
1032#define LL_TIM_TIM8_ETRSOURCE_COMP2 TIM8_AF1_ETRSEL_1
1033#define LL_TIM_TIM8_ETRSOURCE_ADC2_AWD1 (TIM8_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1034#define LL_TIM_TIM8_ETRSOURCE_ADC2_AWD2 (TIM8_AF1_ETRSEL_2)
1035#define LL_TIM_TIM8_ETRSOURCE_ADC2_AWD3 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_0)
1036#define LL_TIM_TIM8_ETRSOURCE_ADC3_AWD1 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_1)
1037#define LL_TIM_TIM8_ETRSOURCE_ADC3_AWD2 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1038#define LL_TIM_TIM8_ETRSOURCE_ADC3_AWD3 TIM8_AF1_ETRSEL_3
1040#define LL_TIM_TIM2_ETRSOURCE_GPIO 0x00000000U
1041#define LL_TIM_TIM2_ETRSOURCE_COMP1 (TIM2_AF1_ETRSEL_0)
1042#define LL_TIM_TIM2_ETRSOURCE_COMP2 (TIM2_AF1_ETRSEL_1)
1043#define LL_TIM_TIM2_ETRSOURCE_RCC_LSE (TIM2_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1044#define LL_TIM_TIM2_ETRSOURCE_SAI1_FSA TIM2_AF1_ETRSEL_2
1045#define LL_TIM_TIM2_ETRSOURCE_SAI1_FSB (TIM2_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_0)
1047#define LL_TIM_TIM3_ETRSOURCE_GPIO 0x00000000U
1048#define LL_TIM_TIM3_ETRSOURCE_COMP1 TIM3_AF1_ETRSEL_0
1050#define LL_TIM_TIM5_ETRSOURCE_GPIO 0x00000000U
1051#define LL_TIM_TIM5_ETRSOURCE_SAI2_FSA TIM5_AF1_ETRSEL_0
1052#define LL_TIM_TIM5_ETRSOURCE_SAI2_FSB TIM5_AF1_ETRSEL_1
1053#define LL_TIM_TIM5_ETRSOURCE_SAI4_FSA TIM5_AF1_ETRSEL_0
1054#define LL_TIM_TIM5_ETRSOURCE_SAI4_FSB TIM5_AF1_ETRSEL_1
1056#define LL_TIM_TIM23_ETRSOURCE_GPIO 0x00000000U
1057#define LL_TIM_TIM23_ETRSOURCE_COMP1 (TIM2_AF1_ETRSEL_0)
1058#define LL_TIM_TIM23_ETRSOURCE_COMP2 (TIM2_AF1_ETRSEL_1)
1060#define LL_TIM_TIM24_ETRSOURCE_GPIO 0x00000000U
1061#define LL_TIM_TIM24_ETRSOURCE_SAI4_FSA TIM5_AF1_ETRSEL_0
1062#define LL_TIM_TIM24_ETRSOURCE_SAI4_FSB TIM5_AF1_ETRSEL_1
1063#define LL_TIM_TIM24_ETRSOURCE_SAI1_FSA (TIM2_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1064#define LL_TIM_TIM24_ETRSOURCE_SAI1_FSB TIM2_AF1_ETRSEL_2
1070#define LL_TIM_BREAK_POLARITY_LOW 0x00000000U
1071#define LL_TIM_BREAK_POLARITY_HIGH TIM_BDTR_BKP
1080#define LL_TIM_BREAK_FILTER_FDIV1 0x00000000U
1081#define LL_TIM_BREAK_FILTER_FDIV1_N2 0x00010000U
1082#define LL_TIM_BREAK_FILTER_FDIV1_N4 0x00020000U
1083#define LL_TIM_BREAK_FILTER_FDIV1_N8 0x00030000U
1084#define LL_TIM_BREAK_FILTER_FDIV2_N6 0x00040000U
1085#define LL_TIM_BREAK_FILTER_FDIV2_N8 0x00050000U
1086#define LL_TIM_BREAK_FILTER_FDIV4_N6 0x00060000U
1087#define LL_TIM_BREAK_FILTER_FDIV4_N8 0x00070000U
1088#define LL_TIM_BREAK_FILTER_FDIV8_N6 0x00080000U
1089#define LL_TIM_BREAK_FILTER_FDIV8_N8 0x00090000U
1090#define LL_TIM_BREAK_FILTER_FDIV16_N5 0x000A0000U
1091#define LL_TIM_BREAK_FILTER_FDIV16_N6 0x000B0000U
1092#define LL_TIM_BREAK_FILTER_FDIV16_N8 0x000C0000U
1093#define LL_TIM_BREAK_FILTER_FDIV32_N5 0x000D0000U
1094#define LL_TIM_BREAK_FILTER_FDIV32_N6 0x000E0000U
1095#define LL_TIM_BREAK_FILTER_FDIV32_N8 0x000F0000U
1104#define LL_TIM_BREAK2_POLARITY_LOW 0x00000000U
1105#define LL_TIM_BREAK2_POLARITY_HIGH TIM_BDTR_BK2P
1114#define LL_TIM_BREAK2_FILTER_FDIV1 0x00000000U
1115#define LL_TIM_BREAK2_FILTER_FDIV1_N2 0x00100000U
1116#define LL_TIM_BREAK2_FILTER_FDIV1_N4 0x00200000U
1117#define LL_TIM_BREAK2_FILTER_FDIV1_N8 0x00300000U
1118#define LL_TIM_BREAK2_FILTER_FDIV2_N6 0x00400000U
1119#define LL_TIM_BREAK2_FILTER_FDIV2_N8 0x00500000U
1120#define LL_TIM_BREAK2_FILTER_FDIV4_N6 0x00600000U
1121#define LL_TIM_BREAK2_FILTER_FDIV4_N8 0x00700000U
1122#define LL_TIM_BREAK2_FILTER_FDIV8_N6 0x00800000U
1123#define LL_TIM_BREAK2_FILTER_FDIV8_N8 0x00900000U
1124#define LL_TIM_BREAK2_FILTER_FDIV16_N5 0x00A00000U
1125#define LL_TIM_BREAK2_FILTER_FDIV16_N6 0x00B00000U
1126#define LL_TIM_BREAK2_FILTER_FDIV16_N8 0x00C00000U
1127#define LL_TIM_BREAK2_FILTER_FDIV32_N5 0x00D00000U
1128#define LL_TIM_BREAK2_FILTER_FDIV32_N6 0x00E00000U
1129#define LL_TIM_BREAK2_FILTER_FDIV32_N8 0x00F00000U
1138#define LL_TIM_OSSI_DISABLE 0x00000000U
1139#define LL_TIM_OSSI_ENABLE TIM_BDTR_OSSI
1148#define LL_TIM_OSSR_DISABLE 0x00000000U
1149#define LL_TIM_OSSR_ENABLE TIM_BDTR_OSSR
1154#if defined(TIM_BREAK_INPUT_SUPPORT)
1159#define LL_TIM_BREAK_INPUT_BKIN 0x00000000U
1160#define LL_TIM_BREAK_INPUT_BKIN2 0x00000004U
1169#define LL_TIM_BKIN_SOURCE_BKIN TIM1_AF1_BKINE
1170#define LL_TIM_BKIN_SOURCE_BKCOMP1 TIM1_AF1_BKCMP1E
1171#define LL_TIM_BKIN_SOURCE_BKCOMP2 TIM1_AF1_BKCMP2E
1172#define LL_TIM_BKIN_SOURCE_DF1BK TIM1_AF1_BKDF1BK0E
1181#define LL_TIM_BKIN_POLARITY_LOW TIM1_AF1_BKINP
1182#define LL_TIM_BKIN_POLARITY_HIGH 0x00000000U
1188#if defined(TIM_BDTR_BKBID)
1193#define LL_TIM_BREAK_AFMODE_INPUT 0x00000000U
1194#define LL_TIM_BREAK_AFMODE_BIDIRECTIONAL TIM_BDTR_BKBID
1203#define LL_TIM_BREAK2_AFMODE_INPUT 0x00000000U
1204#define LL_TIM_BREAK2_AFMODE_BIDIRECTIONAL TIM_BDTR_BK2BID
1214#define LL_TIM_DMABURST_BASEADDR_CR1 0x00000000U
1215#define LL_TIM_DMABURST_BASEADDR_CR2 TIM_DCR_DBA_0
1216#define LL_TIM_DMABURST_BASEADDR_SMCR TIM_DCR_DBA_1
1217#define LL_TIM_DMABURST_BASEADDR_DIER (TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1218#define LL_TIM_DMABURST_BASEADDR_SR TIM_DCR_DBA_2
1219#define LL_TIM_DMABURST_BASEADDR_EGR (TIM_DCR_DBA_2 | TIM_DCR_DBA_0)
1220#define LL_TIM_DMABURST_BASEADDR_CCMR1 (TIM_DCR_DBA_2 | TIM_DCR_DBA_1)
1221#define LL_TIM_DMABURST_BASEADDR_CCMR2 (TIM_DCR_DBA_2 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1222#define LL_TIM_DMABURST_BASEADDR_CCER TIM_DCR_DBA_3
1223#define LL_TIM_DMABURST_BASEADDR_CNT (TIM_DCR_DBA_3 | TIM_DCR_DBA_0)
1224#define LL_TIM_DMABURST_BASEADDR_PSC (TIM_DCR_DBA_3 | TIM_DCR_DBA_1)
1225#define LL_TIM_DMABURST_BASEADDR_ARR (TIM_DCR_DBA_3 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1226#define LL_TIM_DMABURST_BASEADDR_RCR (TIM_DCR_DBA_3 | TIM_DCR_DBA_2)
1227#define LL_TIM_DMABURST_BASEADDR_CCR1 (TIM_DCR_DBA_3 | TIM_DCR_DBA_2 | TIM_DCR_DBA_0)
1228#define LL_TIM_DMABURST_BASEADDR_CCR2 (TIM_DCR_DBA_3 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1)
1229#define LL_TIM_DMABURST_BASEADDR_CCR3 (TIM_DCR_DBA_3 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1230#define LL_TIM_DMABURST_BASEADDR_CCR4 TIM_DCR_DBA_4
1231#define LL_TIM_DMABURST_BASEADDR_BDTR (TIM_DCR_DBA_4 | TIM_DCR_DBA_0)
1232#define LL_TIM_DMABURST_BASEADDR_CCMR3 (TIM_DCR_DBA_4 | TIM_DCR_DBA_2 | TIM_DCR_DBA_0)
1233#define LL_TIM_DMABURST_BASEADDR_CCR5 (TIM_DCR_DBA_4 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1)
1234#define LL_TIM_DMABURST_BASEADDR_CCR6 (TIM_DCR_DBA_4 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1235#if defined(TIM1_AF1_BKINE)&&defined(TIM1_AF2_BKINE)
1236#define LL_TIM_DMABURST_BASEADDR_AF1 (TIM_DCR_DBA_4 | TIM_DCR_DBA_3)
1237#define LL_TIM_DMABURST_BASEADDR_AF2 (TIM_DCR_DBA_4 | TIM_DCR_DBA_3 | TIM_DCR_DBA_0)
1239#define LL_TIM_DMABURST_BASEADDR_TISEL (TIM_DCR_DBA_4 | TIM_DCR_DBA_3 | TIM_DCR_DBA_1)
1248#define LL_TIM_DMABURST_LENGTH_1TRANSFER 0x00000000U
1249#define LL_TIM_DMABURST_LENGTH_2TRANSFERS TIM_DCR_DBL_0
1250#define LL_TIM_DMABURST_LENGTH_3TRANSFERS TIM_DCR_DBL_1
1251#define LL_TIM_DMABURST_LENGTH_4TRANSFERS (TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1252#define LL_TIM_DMABURST_LENGTH_5TRANSFERS TIM_DCR_DBL_2
1253#define LL_TIM_DMABURST_LENGTH_6TRANSFERS (TIM_DCR_DBL_2 | TIM_DCR_DBL_0)
1254#define LL_TIM_DMABURST_LENGTH_7TRANSFERS (TIM_DCR_DBL_2 | TIM_DCR_DBL_1)
1255#define LL_TIM_DMABURST_LENGTH_8TRANSFERS (TIM_DCR_DBL_2 | TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1256#define LL_TIM_DMABURST_LENGTH_9TRANSFERS TIM_DCR_DBL_3
1257#define LL_TIM_DMABURST_LENGTH_10TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_0)
1258#define LL_TIM_DMABURST_LENGTH_11TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_1)
1259#define LL_TIM_DMABURST_LENGTH_12TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1260#define LL_TIM_DMABURST_LENGTH_13TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2)
1261#define LL_TIM_DMABURST_LENGTH_14TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2 | TIM_DCR_DBL_0)
1262#define LL_TIM_DMABURST_LENGTH_15TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2 | TIM_DCR_DBL_1)
1263#define LL_TIM_DMABURST_LENGTH_16TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2 | TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1264#define LL_TIM_DMABURST_LENGTH_17TRANSFERS TIM_DCR_DBL_4
1265#define LL_TIM_DMABURST_LENGTH_18TRANSFERS (TIM_DCR_DBL_4 | TIM_DCR_DBL_0)
1274#define LL_TIM_TIM1_TI1_RMP_GPIO 0x00000000U
1275#define LL_TIM_TIM1_TI1_RMP_COMP1 TIM_TISEL_TI1SEL_0
1284#define LL_TIM_TIM8_TI1_RMP_GPIO 0x00000000U
1285#define LL_TIM_TIM8_TI1_RMP_COMP2 TIM_TISEL_TI1SEL_0
1294#define LL_TIM_TIM2_TI4_RMP_GPIO 0x00000000U
1295#define LL_TIM_TIM2_TI4_RMP_COMP1 TIM_TISEL_TI4SEL_0
1296#define LL_TIM_TIM2_TI4_RMP_COMP2 TIM_TISEL_TI4SEL_1
1297#define LL_TIM_TIM2_TI4_RMP_COMP1_COMP2 (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1)
1306#define LL_TIM_TIM3_TI1_RMP_GPIO 0x00000000U
1307#define LL_TIM_TIM3_TI1_RMP_COMP1 TIM_TISEL_TI1SEL_0
1308#define LL_TIM_TIM3_TI1_RMP_COMP2 TIM_TISEL_TI1SEL_1
1309#define LL_TIM_TIM3_TI1_RMP_COMP1_COMP2 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1318#define LL_TIM_TIM5_TI1_RMP_GPIO 0x00000000U
1319#define LL_TIM_TIM5_TI1_RMP_CAN_TMP TIM_TISEL_TI1SEL_0
1320#define LL_TIM_TIM5_TI1_RMP_CAN_RTP TIM_TISEL_TI1SEL_1
1329#define LL_TIM_TIM12_TI1_RMP_GPIO 0x00000000U
1330#define LL_TIM_TIM12_TI1_RMP_SPDIF_FS TIM_TISEL_TI1SEL_0
1339#define LL_TIM_TIM15_TI1_RMP_GPIO 0x00000000U
1340#define LL_TIM_TIM15_TI1_RMP_TIM2_CH1 TIM_TISEL_TI1SEL_0
1341#define LL_TIM_TIM15_TI1_RMP_TIM3_CH1 TIM_TISEL_TI1SEL_1
1342#define LL_TIM_TIM15_TI1_RMP_TIM4_CH1 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1343#define LL_TIM_TIM15_TI1_RMP_RCC_LSE (TIM_TISEL_TI1SEL_2)
1344#define LL_TIM_TIM15_TI1_RMP_RCC_CSI (TIM_TISEL_TI1SEL_2 | TIM_TISEL_TI1SEL_0)
1345#define LL_TIM_TIM15_TI1_RMP_RCC_MCO2 (TIM_TISEL_TI1SEL_2 | TIM_TISEL_TI1SEL_1)
1354#define LL_TIM_TIM15_TI2_RMP_GPIO 0x00000000U
1355#define LL_TIM_TIM15_TI2_RMP_TIM2_CH2 (TIM_TISEL_TI2SEL_0)
1356#define LL_TIM_TIM15_TI2_RMP_TIM3_CH2 (TIM_TISEL_TI2SEL_1)
1357#define LL_TIM_TIM15_TI2_RMP_TIM4_CH2 (TIM_TISEL_TI2SEL_0 | TIM_TISEL_TI2SEL_1)
1366#define LL_TIM_TIM16_TI1_RMP_GPIO 0x00000000U
1367#define LL_TIM_TIM16_TI1_RMP_RCC_LSI TIM_TISEL_TI1SEL_0
1368#define LL_TIM_TIM16_TI1_RMP_RCC_LSE TIM_TISEL_TI1SEL_1
1369#define LL_TIM_TIM16_TI1_RMP_WKUP_IT (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1378#define LL_TIM_TIM17_TI1_RMP_GPIO 0x00000000U
1379#define LL_TIM_TIM17_TI1_RMP_SPDIF_FS TIM_TISEL_TI1SEL_0
1380#define LL_TIM_TIM17_TI1_RMP_RCC_HSE1MHZ TIM_TISEL_TI1SEL_1
1381#define LL_TIM_TIM17_TI1_RMP_RCC_MCO1 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1390#define LL_TIM_TIM23_TI4_RMP_GPIO 0x00000000U
1391#define LL_TIM_TIM23_TI4_RMP_COMP1 TIM_TISEL_TI4SEL_0
1392#define LL_TIM_TIM23_TI4_RMP_COMP2 TIM_TISEL_TI4SEL_1
1393#define LL_TIM_TIM23_TI4_RMP_COMP1_COMP2 (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1)
1402#define LL_TIM_TIM24_TI1_RMP_GPIO 0x00000000U
1403#define LL_TIM_TIM24_TI1_RMP_CAN_TMP TIM_TISEL_TI1SEL_0
1404#define LL_TIM_TIM24_TI1_RMP_CAN_RTP TIM_TISEL_TI1SEL_1
1405#define LL_TIM_TIM24_TI1_RMP_CAN_SOC (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1)
1407#if defined(TIM_BREAK_INPUT_SUPPORT)
1411#define LL_TIM_BKIN_SOURCE_DFBK LL_TIM_BKIN_SOURCE_DF1BK
1437#define LL_TIM_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG((__INSTANCE__)->__REG__, (__VALUE__))
1445#define LL_TIM_ReadReg(__INSTANCE__, __REG__) READ_REG((__INSTANCE__)->__REG__)
1458#define __LL_TIM_GETFLAG_UIFCPY(__CNT__) \
1459 (READ_BIT((__CNT__), TIM_CNT_UIFCPY) >> TIM_CNT_UIFCPY_Pos)
1472#define __LL_TIM_CALC_DEADTIME(__TIMCLK__, __CKD__, __DT__) \
1473 ( (((uint64_t)((__DT__)*1000U)) < ((DT_DELAY_1+1U) * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1474 (uint8_t)(((uint64_t)((__DT__)*1000U) / TIM_CALC_DTS((__TIMCLK__), (__CKD__))) & DT_DELAY_1) : \
1475 (((uint64_t)((__DT__)*1000U)) < ((64U + (DT_DELAY_2+1U)) * 2U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1476 (uint8_t)(DT_RANGE_2 | ((uint8_t)((uint8_t)((((uint64_t)((__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \
1477 (__CKD__))) >> 1U) - (uint8_t) 64) & DT_DELAY_2)) :\
1478 (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_3+1U)) * 8U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1479 (uint8_t)(DT_RANGE_3 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \
1480 (__CKD__))) >> 3U) - (uint8_t) 32) & DT_DELAY_3)) :\
1481 (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_4+1U)) * 16U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1482 (uint8_t)(DT_RANGE_4 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \
1483 (__CKD__))) >> 4U) - (uint8_t) 32) & DT_DELAY_4)) :\
1493#define __LL_TIM_CALC_PSC(__TIMCLK__, __CNTCLK__) \
1494 (((__TIMCLK__) >= (__CNTCLK__)) ? (uint32_t)((((__TIMCLK__) + (__CNTCLK__)/2U)/(__CNTCLK__)) - 1U) : 0U)
1504#define __LL_TIM_CALC_ARR(__TIMCLK__, __PSC__, __FREQ__) \
1505 ((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? (((__TIMCLK__)/((__FREQ__) * ((__PSC__) + 1U))) - 1U) : 0U)
1516#define __LL_TIM_CALC_DELAY(__TIMCLK__, __PSC__, __DELAY__) \
1517 ((uint32_t)(((uint64_t)(__TIMCLK__) * (uint64_t)(__DELAY__)) \
1518 / ((uint64_t)1000000U * (uint64_t)((__PSC__) + 1U))))
1530#define __LL_TIM_CALC_PULSE(__TIMCLK__, __PSC__, __DELAY__, __PULSE__) \
1531 ((uint32_t)(__LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__PULSE__)) \
1532 + __LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__DELAY__))))
1544#define __LL_TIM_GET_ICPSC_RATIO(__ICPSC__) \
1545 ((uint32_t)(0x01U << (((__ICPSC__) >> 16U) >> TIM_CCMR1_IC1PSC_Pos)))
1573__STATIC_INLINE
void LL_TIM_EnableCounter(
TIM_TypeDef *TIMx)
1584__STATIC_INLINE
void LL_TIM_DisableCounter(
TIM_TypeDef *TIMx)
1595__STATIC_INLINE uint32_t LL_TIM_IsEnabledCounter(
const TIM_TypeDef *TIMx)
1606__STATIC_INLINE
void LL_TIM_EnableUpdateEvent(
TIM_TypeDef *TIMx)
1617__STATIC_INLINE
void LL_TIM_DisableUpdateEvent(
TIM_TypeDef *TIMx)
1628__STATIC_INLINE uint32_t LL_TIM_IsEnabledUpdateEvent(
const TIM_TypeDef *TIMx)
1649__STATIC_INLINE
void LL_TIM_SetUpdateSource(
TIM_TypeDef *TIMx, uint32_t UpdateSource)
1662__STATIC_INLINE uint32_t LL_TIM_GetUpdateSource(
const TIM_TypeDef *TIMx)
1676__STATIC_INLINE
void LL_TIM_SetOnePulseMode(
TIM_TypeDef *TIMx, uint32_t OnePulseMode)
1689__STATIC_INLINE uint32_t LL_TIM_GetOnePulseMode(
const TIM_TypeDef *TIMx)
1713__STATIC_INLINE
void LL_TIM_SetCounterMode(
TIM_TypeDef *TIMx, uint32_t CounterMode)
1733__STATIC_INLINE uint32_t LL_TIM_GetCounterMode(
const TIM_TypeDef *TIMx)
1735 uint32_t counter_mode;
1739 if (counter_mode == 0U)
1744 return counter_mode;
1753__STATIC_INLINE
void LL_TIM_EnableARRPreload(
TIM_TypeDef *TIMx)
1764__STATIC_INLINE
void LL_TIM_DisableARRPreload(
TIM_TypeDef *TIMx)
1775__STATIC_INLINE uint32_t LL_TIM_IsEnabledARRPreload(
const TIM_TypeDef *TIMx)
1794__STATIC_INLINE
void LL_TIM_SetClockDivision(
TIM_TypeDef *TIMx, uint32_t ClockDivision)
1812__STATIC_INLINE uint32_t LL_TIM_GetClockDivision(
const TIM_TypeDef *TIMx)
1826__STATIC_INLINE
void LL_TIM_SetCounter(
TIM_TypeDef *TIMx, uint32_t Counter)
1828 WRITE_REG(TIMx->
CNT, Counter);
1839__STATIC_INLINE uint32_t LL_TIM_GetCounter(
const TIM_TypeDef *TIMx)
1841 return (uint32_t)(READ_REG(TIMx->
CNT));
1852__STATIC_INLINE uint32_t LL_TIM_GetDirection(
const TIM_TypeDef *TIMx)
1868__STATIC_INLINE
void LL_TIM_SetPrescaler(
TIM_TypeDef *TIMx, uint32_t Prescaler)
1870 WRITE_REG(TIMx->
PSC, Prescaler);
1879__STATIC_INLINE uint32_t LL_TIM_GetPrescaler(
const TIM_TypeDef *TIMx)
1881 return (uint32_t)(READ_REG(TIMx->
PSC));
1895__STATIC_INLINE
void LL_TIM_SetAutoReload(
TIM_TypeDef *TIMx, uint32_t AutoReload)
1897 WRITE_REG(TIMx->
ARR, AutoReload);
1908__STATIC_INLINE uint32_t LL_TIM_GetAutoReload(
const TIM_TypeDef *TIMx)
1910 return (uint32_t)(READ_REG(TIMx->
ARR));
1923__STATIC_INLINE
void LL_TIM_SetRepetitionCounter(
TIM_TypeDef *TIMx, uint32_t RepetitionCounter)
1925 WRITE_REG(TIMx->
RCR, RepetitionCounter);
1936__STATIC_INLINE uint32_t LL_TIM_GetRepetitionCounter(
const TIM_TypeDef *TIMx)
1938 return (uint32_t)(READ_REG(TIMx->
RCR));
1949__STATIC_INLINE
void LL_TIM_EnableUIFRemap(
TIM_TypeDef *TIMx)
1960__STATIC_INLINE
void LL_TIM_DisableUIFRemap(
TIM_TypeDef *TIMx)
1970__STATIC_INLINE uint32_t LL_TIM_IsActiveUIFCPY(
const uint32_t Counter)
1994__STATIC_INLINE
void LL_TIM_CC_EnablePreload(
TIM_TypeDef *TIMx)
2007__STATIC_INLINE
void LL_TIM_CC_DisablePreload(
TIM_TypeDef *TIMx)
2023__STATIC_INLINE
void LL_TIM_CC_SetUpdate(
TIM_TypeDef *TIMx, uint32_t CCUpdateSource)
2037__STATIC_INLINE
void LL_TIM_CC_SetDMAReqTrigger(
TIM_TypeDef *TIMx, uint32_t DMAReqTrigger)
2050__STATIC_INLINE uint32_t LL_TIM_CC_GetDMAReqTrigger(
const TIM_TypeDef *TIMx)
2069__STATIC_INLINE
void LL_TIM_CC_SetLockLevel(
TIM_TypeDef *TIMx, uint32_t LockLevel)
2098__STATIC_INLINE
void LL_TIM_CC_EnableChannel(
TIM_TypeDef *TIMx, uint32_t Channels)
2100 SET_BIT(TIMx->
CCER, Channels);
2127__STATIC_INLINE
void LL_TIM_CC_DisableChannel(
TIM_TypeDef *TIMx, uint32_t Channels)
2129 CLEAR_BIT(TIMx->
CCER, Channels);
2156__STATIC_INLINE uint32_t LL_TIM_CC_IsEnabledChannel(
TIM_TypeDef *TIMx, uint32_t Channels)
2158 return ((READ_BIT(TIMx->
CCER, Channels) == (Channels)) ? 1UL : 0UL);
2202__STATIC_INLINE
void LL_TIM_OC_ConfigOutput(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Configuration)
2204 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2205 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2208 (Configuration &
TIM_CCER_CC1P) << SHIFT_TAB_CCxP[iChannel]);
2210 (Configuration &
TIM_CR2_OIS1) << SHIFT_TAB_OISx[iChannel]);
2247__STATIC_INLINE
void LL_TIM_OC_SetMode(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Mode)
2249 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2250 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2286__STATIC_INLINE uint32_t LL_TIM_OC_GetMode(
const TIM_TypeDef *TIMx, uint32_t Channel)
2288 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2289 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2320__STATIC_INLINE
void LL_TIM_OC_SetPolarity(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Polarity)
2322 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2323 MODIFY_REG(TIMx->
CCER, (
TIM_CCER_CC1P << SHIFT_TAB_CCxP[iChannel]), Polarity << SHIFT_TAB_CCxP[iChannel]);
2352__STATIC_INLINE uint32_t LL_TIM_OC_GetPolarity(
const TIM_TypeDef *TIMx, uint32_t Channel)
2354 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2355 return (READ_BIT(TIMx->
CCER, (
TIM_CCER_CC1P << SHIFT_TAB_CCxP[iChannel])) >> SHIFT_TAB_CCxP[iChannel]);
2389__STATIC_INLINE
void LL_TIM_OC_SetIdleState(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t IdleState)
2391 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2392 MODIFY_REG(TIMx->
CR2, (
TIM_CR2_OIS1 << SHIFT_TAB_OISx[iChannel]), IdleState << SHIFT_TAB_OISx[iChannel]);
2421__STATIC_INLINE uint32_t LL_TIM_OC_GetIdleState(
const TIM_TypeDef *TIMx, uint32_t Channel)
2423 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2424 return (READ_BIT(TIMx->
CR2, (
TIM_CR2_OIS1 << SHIFT_TAB_OISx[iChannel])) >> SHIFT_TAB_OISx[iChannel]);
2446__STATIC_INLINE
void LL_TIM_OC_EnableFast(
TIM_TypeDef *TIMx, uint32_t Channel)
2448 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2449 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2472__STATIC_INLINE
void LL_TIM_OC_DisableFast(
TIM_TypeDef *TIMx, uint32_t Channel)
2474 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2475 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2498__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledFast(
TIM_TypeDef *TIMx, uint32_t Channel)
2500 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2501 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2503 return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL);
2524__STATIC_INLINE
void LL_TIM_OC_EnablePreload(
TIM_TypeDef *TIMx, uint32_t Channel)
2526 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2527 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2549__STATIC_INLINE
void LL_TIM_OC_DisablePreload(
TIM_TypeDef *TIMx, uint32_t Channel)
2551 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2552 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2574__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledPreload(
TIM_TypeDef *TIMx, uint32_t Channel)
2576 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2577 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2579 return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL);
2603__STATIC_INLINE
void LL_TIM_OC_EnableClear(
TIM_TypeDef *TIMx, uint32_t Channel)
2605 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2606 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2630__STATIC_INLINE
void LL_TIM_OC_DisableClear(
TIM_TypeDef *TIMx, uint32_t Channel)
2632 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2633 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2659__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledClear(
TIM_TypeDef *TIMx, uint32_t Channel)
2661 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2662 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2664 return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL);
2678__STATIC_INLINE
void LL_TIM_OC_SetDeadTime(
TIM_TypeDef *TIMx, uint32_t DeadTime)
2695__STATIC_INLINE
void LL_TIM_OC_SetCompareCH1(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2697 WRITE_REG(TIMx->
CCR1, CompareValue);
2712__STATIC_INLINE
void LL_TIM_OC_SetCompareCH2(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2714 WRITE_REG(TIMx->
CCR2, CompareValue);
2729__STATIC_INLINE
void LL_TIM_OC_SetCompareCH3(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2731 WRITE_REG(TIMx->
CCR3, CompareValue);
2746__STATIC_INLINE
void LL_TIM_OC_SetCompareCH4(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2748 WRITE_REG(TIMx->
CCR4, CompareValue);
2760__STATIC_INLINE
void LL_TIM_OC_SetCompareCH5(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2774__STATIC_INLINE
void LL_TIM_OC_SetCompareCH6(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2776 WRITE_REG(TIMx->
CCR6, CompareValue);
2790__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH1(
const TIM_TypeDef *TIMx)
2792 return (uint32_t)(READ_REG(TIMx->
CCR1));
2806__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH2(
const TIM_TypeDef *TIMx)
2808 return (uint32_t)(READ_REG(TIMx->
CCR2));
2822__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH3(
const TIM_TypeDef *TIMx)
2824 return (uint32_t)(READ_REG(TIMx->
CCR3));
2838__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH4(
const TIM_TypeDef *TIMx)
2840 return (uint32_t)(READ_REG(TIMx->
CCR4));
2851__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH5(
const TIM_TypeDef *TIMx)
2864__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH6(
const TIM_TypeDef *TIMx)
2866 return (uint32_t)(READ_REG(TIMx->
CCR6));
2884__STATIC_INLINE
void LL_TIM_SetCH5CombinedChannels(
TIM_TypeDef *TIMx, uint32_t GroupCH5)
2932__STATIC_INLINE
void LL_TIM_IC_Config(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Configuration)
2934 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2935 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2938 << SHIFT_TAB_ICxx[iChannel]);
2961__STATIC_INLINE
void LL_TIM_IC_SetActiveInput(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICActiveInput)
2963 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2964 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2965 MODIFY_REG(*pReg, ((
TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel]), (ICActiveInput >> 16U) << SHIFT_TAB_ICxx[iChannel]);
2985__STATIC_INLINE uint32_t LL_TIM_IC_GetActiveInput(
const TIM_TypeDef *TIMx, uint32_t Channel)
2987 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2988 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2989 return ((READ_BIT(*pReg, ((
TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U);
3011__STATIC_INLINE
void LL_TIM_IC_SetPrescaler(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICPrescaler)
3013 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3014 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3015 MODIFY_REG(*pReg, ((
TIM_CCMR1_IC1PSC) << SHIFT_TAB_ICxx[iChannel]), (ICPrescaler >> 16U) << SHIFT_TAB_ICxx[iChannel]);
3036__STATIC_INLINE uint32_t LL_TIM_IC_GetPrescaler(
const TIM_TypeDef *TIMx, uint32_t Channel)
3038 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3039 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3040 return ((READ_BIT(*pReg, ((
TIM_CCMR1_IC1PSC) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U);
3074__STATIC_INLINE
void LL_TIM_IC_SetFilter(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICFilter)
3076 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3077 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3078 MODIFY_REG(*pReg, ((
TIM_CCMR1_IC1F) << SHIFT_TAB_ICxx[iChannel]), (ICFilter >> 16U) << SHIFT_TAB_ICxx[iChannel]);
3111__STATIC_INLINE uint32_t LL_TIM_IC_GetFilter(
const TIM_TypeDef *TIMx, uint32_t Channel)
3113 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3114 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3115 return ((READ_BIT(*pReg, ((
TIM_CCMR1_IC1F) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U);
3140__STATIC_INLINE
void LL_TIM_IC_SetPolarity(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICPolarity)
3142 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3144 ICPolarity << SHIFT_TAB_CCxP[iChannel]);
3168__STATIC_INLINE uint32_t LL_TIM_IC_GetPolarity(
const TIM_TypeDef *TIMx, uint32_t Channel)
3170 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3172 SHIFT_TAB_CCxP[iChannel]);
3183__STATIC_INLINE
void LL_TIM_IC_EnableXORCombination(
TIM_TypeDef *TIMx)
3196__STATIC_INLINE
void LL_TIM_IC_DisableXORCombination(
TIM_TypeDef *TIMx)
3209__STATIC_INLINE uint32_t LL_TIM_IC_IsEnabledXORCombination(
TIM_TypeDef *TIMx)
3225__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH1(
const TIM_TypeDef *TIMx)
3227 return (uint32_t)(READ_REG(TIMx->
CCR1));
3241__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH2(
const TIM_TypeDef *TIMx)
3243 return (uint32_t)(READ_REG(TIMx->
CCR2));
3257__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH3(
const TIM_TypeDef *TIMx)
3259 return (uint32_t)(READ_REG(TIMx->
CCR3));
3273__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH4(
const TIM_TypeDef *TIMx)
3275 return (uint32_t)(READ_REG(TIMx->
CCR4));
3295__STATIC_INLINE
void LL_TIM_EnableExternalClock(
TIM_TypeDef *TIMx)
3308__STATIC_INLINE
void LL_TIM_DisableExternalClock(
TIM_TypeDef *TIMx)
3321__STATIC_INLINE uint32_t LL_TIM_IsEnabledExternalClock(
const TIM_TypeDef *TIMx)
3345__STATIC_INLINE
void LL_TIM_SetClockSource(
TIM_TypeDef *TIMx, uint32_t ClockSource)
3362__STATIC_INLINE
void LL_TIM_SetEncoderMode(
TIM_TypeDef *TIMx, uint32_t EncoderMode)
3392__STATIC_INLINE
void LL_TIM_SetTriggerOutput(
TIM_TypeDef *TIMx, uint32_t TimerSynchronization)
3422__STATIC_INLINE
void LL_TIM_SetTriggerOutput2(
TIM_TypeDef *TIMx, uint32_t ADCSynchronization)
3441__STATIC_INLINE
void LL_TIM_SetSlaveMode(
TIM_TypeDef *TIMx, uint32_t SlaveMode)
3475__STATIC_INLINE
void LL_TIM_SetTriggerInput(
TIM_TypeDef *TIMx, uint32_t TriggerInput)
3488__STATIC_INLINE
void LL_TIM_EnableMasterSlaveMode(
TIM_TypeDef *TIMx)
3501__STATIC_INLINE
void LL_TIM_DisableMasterSlaveMode(
TIM_TypeDef *TIMx)
3514__STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode(
const TIM_TypeDef *TIMx)
3554__STATIC_INLINE
void LL_TIM_ConfigETR(
TIM_TypeDef *TIMx, uint32_t ETRPolarity, uint32_t ETRPrescaler,
3623__STATIC_INLINE
void LL_TIM_SetETRSource(
TIM_TypeDef *TIMx, uint32_t ETRSource)
3625 MODIFY_REG(TIMx->
AF1, TIMx_AF1_ETRSEL, ETRSource);
3644__STATIC_INLINE
void LL_TIM_EnableBRK(
TIM_TypeDef *TIMx)
3657__STATIC_INLINE
void LL_TIM_DisableBRK(
TIM_TypeDef *TIMx)
3662#if defined(TIM_BDTR_BKBID)
3705__STATIC_INLINE
void LL_TIM_ConfigBRK(
TIM_TypeDef *TIMx, uint32_t BreakPolarity, uint32_t BreakFilter,
3706 uint32_t BreakAFMode)
3741__STATIC_INLINE
void LL_TIM_ConfigBRK(
TIM_TypeDef *TIMx, uint32_t BreakPolarity,
3742 uint32_t BreakFilter)
3748#if defined(TIM_BDTR_BKBID)
3759__STATIC_INLINE
void LL_TIM_DisarmBRK(
TIM_TypeDef *TIMx)
3771__STATIC_INLINE
void LL_TIM_ReArmBRK(
TIM_TypeDef *TIMx)
3785__STATIC_INLINE
void LL_TIM_EnableBRK2(
TIM_TypeDef *TIMx)
3798__STATIC_INLINE
void LL_TIM_DisableBRK2(
TIM_TypeDef *TIMx)
3803#if defined(TIM_BDTR_BKBID)
3846__STATIC_INLINE
void LL_TIM_ConfigBRK2(
TIM_TypeDef *TIMx, uint32_t Break2Polarity, uint32_t Break2Filter,
3847 uint32_t Break2AFMode)
3882__STATIC_INLINE
void LL_TIM_ConfigBRK2(
TIM_TypeDef *TIMx, uint32_t Break2Polarity, uint32_t Break2Filter)
3888#if defined(TIM_BDTR_BKBID)
3899__STATIC_INLINE
void LL_TIM_DisarmBRK2(
TIM_TypeDef *TIMx)
3911__STATIC_INLINE
void LL_TIM_ReArmBRK2(
TIM_TypeDef *TIMx)
3932__STATIC_INLINE
void LL_TIM_SetOffStates(
TIM_TypeDef *TIMx, uint32_t OffStateIdle, uint32_t OffStateRun)
3945__STATIC_INLINE
void LL_TIM_EnableAutomaticOutput(
TIM_TypeDef *TIMx)
3958__STATIC_INLINE
void LL_TIM_DisableAutomaticOutput(
TIM_TypeDef *TIMx)
3971__STATIC_INLINE uint32_t LL_TIM_IsEnabledAutomaticOutput(
const TIM_TypeDef *TIMx)
3986__STATIC_INLINE
void LL_TIM_EnableAllOutputs(
TIM_TypeDef *TIMx)
4001__STATIC_INLINE
void LL_TIM_DisableAllOutputs(
TIM_TypeDef *TIMx)
4014__STATIC_INLINE uint32_t LL_TIM_IsEnabledAllOutputs(
const TIM_TypeDef *TIMx)
4019#if defined(TIM_BREAK_INPUT_SUPPORT)
4043__STATIC_INLINE
void LL_TIM_EnableBreakInputSource(
TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source)
4045 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
AF1) + BreakInput));
4046 SET_BIT(*pReg, Source);
4072__STATIC_INLINE
void LL_TIM_DisableBreakInputSource(
TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source)
4074 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
AF1) + BreakInput));
4075 CLEAR_BIT(*pReg, Source);
4101__STATIC_INLINE
void LL_TIM_SetBreakInputSourcePolarity(
TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source,
4104 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
AF1) + BreakInput));
4105 MODIFY_REG(*pReg, (TIMx_AF1_BKINP << TIM_POSITION_BRK_SOURCE), (Polarity << TIM_POSITION_BRK_SOURCE));
4170__STATIC_INLINE
void LL_TIM_ConfigDMABurst(
TIM_TypeDef *TIMx, uint32_t DMABurstBaseAddress, uint32_t DMABurstLength)
4256__STATIC_INLINE
void LL_TIM_SetRemap(
TIM_TypeDef *TIMx, uint32_t Remap)
4275__STATIC_INLINE
void LL_TIM_ClearFlag_UPDATE(
TIM_TypeDef *TIMx)
4286__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_UPDATE(
const TIM_TypeDef *TIMx)
4297__STATIC_INLINE
void LL_TIM_ClearFlag_CC1(
TIM_TypeDef *TIMx)
4308__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC1(
const TIM_TypeDef *TIMx)
4319__STATIC_INLINE
void LL_TIM_ClearFlag_CC2(
TIM_TypeDef *TIMx)
4330__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC2(
const TIM_TypeDef *TIMx)
4341__STATIC_INLINE
void LL_TIM_ClearFlag_CC3(
TIM_TypeDef *TIMx)
4352__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC3(
const TIM_TypeDef *TIMx)
4363__STATIC_INLINE
void LL_TIM_ClearFlag_CC4(
TIM_TypeDef *TIMx)
4374__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC4(
const TIM_TypeDef *TIMx)
4385__STATIC_INLINE
void LL_TIM_ClearFlag_CC5(
TIM_TypeDef *TIMx)
4396__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC5(
const TIM_TypeDef *TIMx)
4407__STATIC_INLINE
void LL_TIM_ClearFlag_CC6(
TIM_TypeDef *TIMx)
4418__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC6(
const TIM_TypeDef *TIMx)
4429__STATIC_INLINE
void LL_TIM_ClearFlag_COM(
TIM_TypeDef *TIMx)
4440__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_COM(
const TIM_TypeDef *TIMx)
4451__STATIC_INLINE
void LL_TIM_ClearFlag_TRIG(
TIM_TypeDef *TIMx)
4462__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_TRIG(
const TIM_TypeDef *TIMx)
4473__STATIC_INLINE
void LL_TIM_ClearFlag_BRK(
TIM_TypeDef *TIMx)
4484__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_BRK(
const TIM_TypeDef *TIMx)
4495__STATIC_INLINE
void LL_TIM_ClearFlag_BRK2(
TIM_TypeDef *TIMx)
4506__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_BRK2(
const TIM_TypeDef *TIMx)
4517__STATIC_INLINE
void LL_TIM_ClearFlag_CC1OVR(
TIM_TypeDef *TIMx)
4529__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC1OVR(
const TIM_TypeDef *TIMx)
4540__STATIC_INLINE
void LL_TIM_ClearFlag_CC2OVR(
TIM_TypeDef *TIMx)
4552__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC2OVR(
const TIM_TypeDef *TIMx)
4563__STATIC_INLINE
void LL_TIM_ClearFlag_CC3OVR(
TIM_TypeDef *TIMx)
4575__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC3OVR(
const TIM_TypeDef *TIMx)
4586__STATIC_INLINE
void LL_TIM_ClearFlag_CC4OVR(
TIM_TypeDef *TIMx)
4598__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC4OVR(
const TIM_TypeDef *TIMx)
4609__STATIC_INLINE
void LL_TIM_ClearFlag_SYSBRK(
TIM_TypeDef *TIMx)
4620__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_SYSBRK(
const TIM_TypeDef *TIMx)
4639__STATIC_INLINE
void LL_TIM_EnableIT_UPDATE(
TIM_TypeDef *TIMx)
4650__STATIC_INLINE
void LL_TIM_DisableIT_UPDATE(
TIM_TypeDef *TIMx)
4661__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_UPDATE(
const TIM_TypeDef *TIMx)
4672__STATIC_INLINE
void LL_TIM_EnableIT_CC1(
TIM_TypeDef *TIMx)
4683__STATIC_INLINE
void LL_TIM_DisableIT_CC1(
TIM_TypeDef *TIMx)
4694__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC1(
const TIM_TypeDef *TIMx)
4705__STATIC_INLINE
void LL_TIM_EnableIT_CC2(
TIM_TypeDef *TIMx)
4716__STATIC_INLINE
void LL_TIM_DisableIT_CC2(
TIM_TypeDef *TIMx)
4727__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC2(
const TIM_TypeDef *TIMx)
4738__STATIC_INLINE
void LL_TIM_EnableIT_CC3(
TIM_TypeDef *TIMx)
4749__STATIC_INLINE
void LL_TIM_DisableIT_CC3(
TIM_TypeDef *TIMx)
4760__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC3(
const TIM_TypeDef *TIMx)
4771__STATIC_INLINE
void LL_TIM_EnableIT_CC4(
TIM_TypeDef *TIMx)
4782__STATIC_INLINE
void LL_TIM_DisableIT_CC4(
TIM_TypeDef *TIMx)
4793__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC4(
const TIM_TypeDef *TIMx)
4804__STATIC_INLINE
void LL_TIM_EnableIT_COM(
TIM_TypeDef *TIMx)
4815__STATIC_INLINE
void LL_TIM_DisableIT_COM(
TIM_TypeDef *TIMx)
4826__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_COM(
const TIM_TypeDef *TIMx)
4837__STATIC_INLINE
void LL_TIM_EnableIT_TRIG(
TIM_TypeDef *TIMx)
4848__STATIC_INLINE
void LL_TIM_DisableIT_TRIG(
TIM_TypeDef *TIMx)
4859__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_TRIG(
const TIM_TypeDef *TIMx)
4870__STATIC_INLINE
void LL_TIM_EnableIT_BRK(
TIM_TypeDef *TIMx)
4881__STATIC_INLINE
void LL_TIM_DisableIT_BRK(
TIM_TypeDef *TIMx)
4892__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_BRK(
const TIM_TypeDef *TIMx)
4911__STATIC_INLINE
void LL_TIM_EnableDMAReq_UPDATE(
TIM_TypeDef *TIMx)
4922__STATIC_INLINE
void LL_TIM_DisableDMAReq_UPDATE(
TIM_TypeDef *TIMx)
4933__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_UPDATE(
const TIM_TypeDef *TIMx)
4944__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC1(
TIM_TypeDef *TIMx)
4955__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC1(
TIM_TypeDef *TIMx)
4966__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC1(
const TIM_TypeDef *TIMx)
4977__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC2(
TIM_TypeDef *TIMx)
4988__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC2(
TIM_TypeDef *TIMx)
4999__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC2(
const TIM_TypeDef *TIMx)
5010__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC3(
TIM_TypeDef *TIMx)
5021__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC3(
TIM_TypeDef *TIMx)
5032__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC3(
const TIM_TypeDef *TIMx)
5043__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC4(
TIM_TypeDef *TIMx)
5054__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC4(
TIM_TypeDef *TIMx)
5065__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC4(
const TIM_TypeDef *TIMx)
5076__STATIC_INLINE
void LL_TIM_EnableDMAReq_COM(
TIM_TypeDef *TIMx)
5087__STATIC_INLINE
void LL_TIM_DisableDMAReq_COM(
TIM_TypeDef *TIMx)
5098__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_COM(
const TIM_TypeDef *TIMx)
5109__STATIC_INLINE
void LL_TIM_EnableDMAReq_TRIG(
TIM_TypeDef *TIMx)
5120__STATIC_INLINE
void LL_TIM_DisableDMAReq_TRIG(
TIM_TypeDef *TIMx)
5131__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_TRIG(
const TIM_TypeDef *TIMx)
5150__STATIC_INLINE
void LL_TIM_GenerateEvent_UPDATE(
TIM_TypeDef *TIMx)
5161__STATIC_INLINE
void LL_TIM_GenerateEvent_CC1(
TIM_TypeDef *TIMx)
5172__STATIC_INLINE
void LL_TIM_GenerateEvent_CC2(
TIM_TypeDef *TIMx)
5183__STATIC_INLINE
void LL_TIM_GenerateEvent_CC3(
TIM_TypeDef *TIMx)
5194__STATIC_INLINE
void LL_TIM_GenerateEvent_CC4(
TIM_TypeDef *TIMx)
5205__STATIC_INLINE
void LL_TIM_GenerateEvent_COM(
TIM_TypeDef *TIMx)
5216__STATIC_INLINE
void LL_TIM_GenerateEvent_TRIG(
TIM_TypeDef *TIMx)
5227__STATIC_INLINE
void LL_TIM_GenerateEvent_BRK(
TIM_TypeDef *TIMx)
5238__STATIC_INLINE
void LL_TIM_GenerateEvent_BRK2(
TIM_TypeDef *TIMx)
5247#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
5254void LL_TIM_StructInit(LL_TIM_InitTypeDef *TIM_InitStruct);
5255ErrorStatus LL_TIM_Init(
TIM_TypeDef *TIMx,
const LL_TIM_InitTypeDef *TIM_InitStruct);
5256void LL_TIM_OC_StructInit(LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct);
5257ErrorStatus LL_TIM_OC_Init(
TIM_TypeDef *TIMx, uint32_t Channel,
const LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct);
5258void LL_TIM_IC_StructInit(LL_TIM_IC_InitTypeDef *TIM_ICInitStruct);
5259ErrorStatus LL_TIM_IC_Init(
TIM_TypeDef *TIMx, uint32_t Channel,
const LL_TIM_IC_InitTypeDef *TIM_IC_InitStruct);
5260void LL_TIM_ENCODER_StructInit(LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct);
5261ErrorStatus LL_TIM_ENCODER_Init(
TIM_TypeDef *TIMx,
const LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct);
5262void LL_TIM_HALLSENSOR_StructInit(LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct);
5263ErrorStatus LL_TIM_HALLSENSOR_Init(
TIM_TypeDef *TIMx,
const LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct);
5264void LL_TIM_BDTR_StructInit(LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct);
5265ErrorStatus LL_TIM_BDTR_Init(
TIM_TypeDef *TIMx,
const LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct);
#define __IO
Definition: core_cm4.h:239
@ RESET
Definition: xnandpsu_onfi.h:172
#define TIM_EGR_CC3G
Definition: stm32h723xx.h:19448
#define TIM_CR1_URS
Definition: stm32h723xx.h:19211
#define TIM_EGR_BG
Definition: stm32h723xx.h:19460
#define TIM_EGR_CC1G
Definition: stm32h723xx.h:19442
#define TIM_CCER_CC1P
Definition: stm32h723xx.h:19634
#define TIM_SMCR_ETPS
Definition: stm32h723xx.h:19328
#define TIM_DIER_CC3DE
Definition: stm32h723xx.h:19375
#define TIM_EGR_UG
Definition: stm32h723xx.h:19439
#define TIM_CCMR1_OC1PE
Definition: stm32h723xx.h:19478
#define TIM_DIER_CC1IE
Definition: stm32h723xx.h:19345
#define TIM_EGR_CC4G
Definition: stm32h723xx.h:19451
#define TIM_DIER_BIE
Definition: stm32h723xx.h:19363
#define TIM_SR_CC5IF
Definition: stm32h723xx.h:19428
#define TIM_SR_CC2IF
Definition: stm32h723xx.h:19395
#define TIM_BDTR_MOE
Definition: stm32h723xx.h:19783
#define TIM_SMCR_ETP
Definition: stm32h723xx.h:19337
#define TIM_EGR_TG
Definition: stm32h723xx.h:19457
#define TIM_BDTR_BKDSRM
Definition: stm32h723xx.h:19800
#define TIM_CR2_OIS1
Definition: stm32h723xx.h:19262
#define TIM_BDTR_BKP
Definition: stm32h723xx.h:19777
#define TIM_SMCR_ECE
Definition: stm32h723xx.h:19334
#define TIM_CR1_CMS
Definition: stm32h723xx.h:19221
#define TIM_SR_CC2OF
Definition: stm32h723xx.h:19419
#define TIM_CCER_CC1NP
Definition: stm32h723xx.h:19640
#define TIM_EGR_B2G
Definition: stm32h723xx.h:19463
#define TIM_SR_CC1IF
Definition: stm32h723xx.h:19392
#define TIM_CR1_ARPE
Definition: stm32h723xx.h:19227
#define TIM_DIER_CC3IE
Definition: stm32h723xx.h:19351
#define TIM_BDTR_BK2E
Definition: stm32h723xx.h:19794
#define TIM_TISEL_TI1SEL
Definition: stm32h723xx.h:19930
#define TIM_SMCR_MSM
Definition: stm32h723xx.h:19316
#define TIM_EGR_CC2G
Definition: stm32h723xx.h:19445
#define TIM_CCR5_CCR5
Definition: stm32h723xx.h:19731
#define TIM_BDTR_BKBID
Definition: stm32h723xx.h:19806
#define TIM_DIER_CC2DE
Definition: stm32h723xx.h:19372
#define TIM_BDTR_AOE
Definition: stm32h723xx.h:19780
#define TIM_DIER_TDE
Definition: stm32h723xx.h:19384
#define TIM_DIER_UIE
Definition: stm32h723xx.h:19342
#define TIM_CCR5_GC5C2
Definition: stm32h723xx.h:19737
#define TIM_DIER_CC4IE
Definition: stm32h723xx.h:19354
#define TIM_CR1_OPM
Definition: stm32h723xx.h:19214
#define TIM_SR_BIF
Definition: stm32h723xx.h:19410
#define TIM_CCMR1_OC1M
Definition: stm32h723xx.h:19482
#define TIM_BDTR_BKE
Definition: stm32h723xx.h:19774
#define TIM_DIER_CC2IE
Definition: stm32h723xx.h:19348
#define TIM_BDTR_BK2DSRM
Definition: stm32h723xx.h:19803
#define TIM_DIER_COMDE
Definition: stm32h723xx.h:19381
#define TIM_TISEL_TI3SEL
Definition: stm32h723xx.h:19946
#define TIM_SR_TIF
Definition: stm32h723xx.h:19407
#define TIM_BDTR_LOCK
Definition: stm32h723xx.h:19762
#define TIM_TISEL_TI4SEL
Definition: stm32h723xx.h:19954
#define TIM_SR_CC1OF
Definition: stm32h723xx.h:19416
#define TIM_SR_CC4OF
Definition: stm32h723xx.h:19425
#define TIM_SMCR_TS
Definition: stm32h723xx.h:19307
#define TIM_CCMR1_OC1CE
Definition: stm32h723xx.h:19490
#define TIM_CNT_UIFCPY
Definition: stm32h723xx.h:19692
#define TIM_SR_COMIF
Definition: stm32h723xx.h:19404
#define TIM_CR1_CEN
Definition: stm32h723xx.h:19205
#define TIM_BDTR_BK2P
Definition: stm32h723xx.h:19797
#define TIM_CCMR1_CC1S
Definition: stm32h723xx.h:19469
#define TIM_CR1_UDIS
Definition: stm32h723xx.h:19208
#define TIM_DIER_TIE
Definition: stm32h723xx.h:19360
#define TIM_CR2_MMS
Definition: stm32h723xx.h:19252
#define TIM_CCR5_GC5C3
Definition: stm32h723xx.h:19740
#define TIM_DIER_CC4DE
Definition: stm32h723xx.h:19378
#define TIM_CR2_CCPC
Definition: stm32h723xx.h:19242
#define TIM_CCMR1_IC1F
Definition: stm32h723xx.h:19527
#define TIM_BDTR_OSSI
Definition: stm32h723xx.h:19768
#define TIM_BDTR_BK2BID
Definition: stm32h723xx.h:19809
#define TIM_CCMR1_IC1PSC
Definition: stm32h723xx.h:19521
#define TIM_CCMR1_OC1FE
Definition: stm32h723xx.h:19475
#define TIM_DCR_DBL
Definition: stm32h723xx.h:19823
#define TIM_DIER_UDE
Definition: stm32h723xx.h:19366
#define TIM_BDTR_DTG
Definition: stm32h723xx.h:19750
#define TIM_DCR_DBA
Definition: stm32h723xx.h:19814
#define TIM_SR_UIF
Definition: stm32h723xx.h:19389
#define TIM_CR1_CKD
Definition: stm32h723xx.h:19231
#define TIM_SR_CC4IF
Definition: stm32h723xx.h:19401
#define TIM_BDTR_BK2F
Definition: stm32h723xx.h:19790
#define TIM_CR1_DIR
Definition: stm32h723xx.h:19217
#define TIM_CR2_TI1S
Definition: stm32h723xx.h:19259
#define TIM_SR_CC6IF
Definition: stm32h723xx.h:19431
#define TIM_SR_CC3IF
Definition: stm32h723xx.h:19398
#define TIM_EGR_COMG
Definition: stm32h723xx.h:19454
#define TIM_CCR5_GC5C1
Definition: stm32h723xx.h:19734
#define TIM_CR2_CCDS
Definition: stm32h723xx.h:19248
#define TIM_DIER_COMIE
Definition: stm32h723xx.h:19357
#define TIM_DIER_CC1DE
Definition: stm32h723xx.h:19369
#define TIM_CR2_MMS2
Definition: stm32h723xx.h:19290
#define TIM_BDTR_BKF
Definition: stm32h723xx.h:19787
#define TIM_SMCR_ETF
Definition: stm32h723xx.h:19320
#define TIM_SR_SBIF
Definition: stm32h723xx.h:19434
#define TIM_SMCR_SMS
Definition: stm32h723xx.h:19299
#define TIM_SR_B2IF
Definition: stm32h723xx.h:19413
#define TIM_CR2_CCUS
Definition: stm32h723xx.h:19245
#define TIM_CR1_UIFREMAP
Definition: stm32h723xx.h:19237
#define TIM_SR_CC3OF
Definition: stm32h723xx.h:19422
#define TIM_BDTR_OSSR
Definition: stm32h723xx.h:19771
#define TIM_TISEL_TI2SEL
Definition: stm32h723xx.h:19938
CMSIS STM32H7xx Device Peripheral Access Layer Header File.
TIM.
Definition: stm32h723xx.h:1525
__IO uint32_t EGR
Definition: stm32h723xx.h:1531
__IO uint32_t CCR1
Definition: stm32h723xx.h:1539
__IO uint32_t CCMR1
Definition: stm32h723xx.h:1532
__IO uint32_t BDTR
Definition: stm32h723xx.h:1543
__IO uint32_t DIER
Definition: stm32h723xx.h:1529
__IO uint32_t CCR6
Definition: stm32h723xx.h:1549
__IO uint32_t TISEL
Definition: stm32h723xx.h:1552
__IO uint32_t CCR2
Definition: stm32h723xx.h:1540
__IO uint32_t CCR4
Definition: stm32h723xx.h:1542
__IO uint32_t SMCR
Definition: stm32h723xx.h:1528
__IO uint32_t ARR
Definition: stm32h723xx.h:1537
__IO uint32_t CR2
Definition: stm32h723xx.h:1527
__IO uint32_t CNT
Definition: stm32h723xx.h:1535
__IO uint32_t AF1
Definition: stm32h723xx.h:1550
__IO uint32_t DCR
Definition: stm32h723xx.h:1544
__IO uint32_t CR1
Definition: stm32h723xx.h:1526
__IO uint32_t CCR3
Definition: stm32h723xx.h:1541
__IO uint32_t SR
Definition: stm32h723xx.h:1530
__IO uint32_t PSC
Definition: stm32h723xx.h:1536
__IO uint32_t RCR
Definition: stm32h723xx.h:1538
__IO uint32_t CCER
Definition: stm32h723xx.h:1534
__IO uint32_t CCR5
Definition: stm32h723xx.h:1548