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
764#define LL_TIM_OCMODE_ASSYMETRIC_PWM1 LL_TIM_OCMODE_ASYMMETRIC_PWM1
765#define LL_TIM_OCMODE_ASSYMETRIC_PWM2 LL_TIM_OCMODE_ASYMMETRIC_PWM2
774#define LL_TIM_OCMODE_FROZEN 0x00000000U
775#define LL_TIM_OCMODE_ACTIVE TIM_CCMR1_OC1M_0
776#define LL_TIM_OCMODE_INACTIVE TIM_CCMR1_OC1M_1
777#define LL_TIM_OCMODE_TOGGLE (TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0)
778#define LL_TIM_OCMODE_FORCED_INACTIVE TIM_CCMR1_OC1M_2
779#define LL_TIM_OCMODE_FORCED_ACTIVE (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_0)
780#define LL_TIM_OCMODE_PWM1 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1)
781#define LL_TIM_OCMODE_PWM2 (TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_0)
782#define LL_TIM_OCMODE_RETRIG_OPM1 TIM_CCMR1_OC1M_3
783#define LL_TIM_OCMODE_RETRIG_OPM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_0)
784#define LL_TIM_OCMODE_COMBINED_PWM1 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_2)
785#define LL_TIM_OCMODE_COMBINED_PWM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_0 | TIM_CCMR1_OC1M_2)
786#define LL_TIM_OCMODE_ASYMMETRIC_PWM1 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2)
787#define LL_TIM_OCMODE_ASYMMETRIC_PWM2 (TIM_CCMR1_OC1M_3 | TIM_CCMR1_OC1M)
796#define LL_TIM_OCPOLARITY_HIGH 0x00000000U
797#define LL_TIM_OCPOLARITY_LOW TIM_CCER_CC1P
806#define LL_TIM_OCIDLESTATE_LOW 0x00000000U
807#define LL_TIM_OCIDLESTATE_HIGH TIM_CR2_OIS1
816#define LL_TIM_GROUPCH5_NONE 0x00000000U
817#define LL_TIM_GROUPCH5_OC1REFC TIM_CCR5_GC5C1
818#define LL_TIM_GROUPCH5_OC2REFC TIM_CCR5_GC5C2
819#define LL_TIM_GROUPCH5_OC3REFC TIM_CCR5_GC5C3
828#define LL_TIM_ACTIVEINPUT_DIRECTTI (TIM_CCMR1_CC1S_0 << 16U)
829#define LL_TIM_ACTIVEINPUT_INDIRECTTI (TIM_CCMR1_CC1S_1 << 16U)
830#define LL_TIM_ACTIVEINPUT_TRC (TIM_CCMR1_CC1S << 16U)
839#define LL_TIM_ICPSC_DIV1 0x00000000U
840#define LL_TIM_ICPSC_DIV2 (TIM_CCMR1_IC1PSC_0 << 16U)
841#define LL_TIM_ICPSC_DIV4 (TIM_CCMR1_IC1PSC_1 << 16U)
842#define LL_TIM_ICPSC_DIV8 (TIM_CCMR1_IC1PSC << 16U)
851#define LL_TIM_IC_FILTER_FDIV1 0x00000000U
852#define LL_TIM_IC_FILTER_FDIV1_N2 (TIM_CCMR1_IC1F_0 << 16U)
853#define LL_TIM_IC_FILTER_FDIV1_N4 (TIM_CCMR1_IC1F_1 << 16U)
854#define LL_TIM_IC_FILTER_FDIV1_N8 ((TIM_CCMR1_IC1F_1 | TIM_CCMR1_IC1F_0) << 16U)
855#define LL_TIM_IC_FILTER_FDIV2_N6 (TIM_CCMR1_IC1F_2 << 16U)
856#define LL_TIM_IC_FILTER_FDIV2_N8 ((TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_0) << 16U)
857#define LL_TIM_IC_FILTER_FDIV4_N6 ((TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_1) << 16U)
858#define LL_TIM_IC_FILTER_FDIV4_N8 ((TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_1 | TIM_CCMR1_IC1F_0) << 16U)
859#define LL_TIM_IC_FILTER_FDIV8_N6 (TIM_CCMR1_IC1F_3 << 16U)
860#define LL_TIM_IC_FILTER_FDIV8_N8 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_0) << 16U)
861#define LL_TIM_IC_FILTER_FDIV16_N5 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_1) << 16U)
862#define LL_TIM_IC_FILTER_FDIV16_N6 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_1 | TIM_CCMR1_IC1F_0) << 16U)
863#define LL_TIM_IC_FILTER_FDIV16_N8 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_2) << 16U)
864#define LL_TIM_IC_FILTER_FDIV32_N5 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_0) << 16U)
865#define LL_TIM_IC_FILTER_FDIV32_N6 ((TIM_CCMR1_IC1F_3 | TIM_CCMR1_IC1F_2 | TIM_CCMR1_IC1F_1) << 16U)
866#define LL_TIM_IC_FILTER_FDIV32_N8 (TIM_CCMR1_IC1F << 16U)
875#define LL_TIM_IC_POLARITY_RISING 0x00000000U
876#define LL_TIM_IC_POLARITY_FALLING TIM_CCER_CC1P
877#define LL_TIM_IC_POLARITY_BOTHEDGE (TIM_CCER_CC1P | TIM_CCER_CC1NP)
886#define LL_TIM_CLOCKSOURCE_INTERNAL 0x00000000U
887#define LL_TIM_CLOCKSOURCE_EXT_MODE1 (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)
888#define LL_TIM_CLOCKSOURCE_EXT_MODE2 TIM_SMCR_ECE
897#define LL_TIM_ENCODERMODE_X2_TI1 TIM_SMCR_SMS_0
898#define LL_TIM_ENCODERMODE_X2_TI2 TIM_SMCR_SMS_1
899#define LL_TIM_ENCODERMODE_X4_TI12 (TIM_SMCR_SMS_1 | TIM_SMCR_SMS_0)
908#define LL_TIM_TRGO_RESET 0x00000000U
909#define LL_TIM_TRGO_ENABLE TIM_CR2_MMS_0
910#define LL_TIM_TRGO_UPDATE TIM_CR2_MMS_1
911#define LL_TIM_TRGO_CC1IF (TIM_CR2_MMS_1 | TIM_CR2_MMS_0)
912#define LL_TIM_TRGO_OC1REF TIM_CR2_MMS_2
913#define LL_TIM_TRGO_OC2REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_0)
914#define LL_TIM_TRGO_OC3REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1)
915#define LL_TIM_TRGO_OC4REF (TIM_CR2_MMS_2 | TIM_CR2_MMS_1 | TIM_CR2_MMS_0)
924#define LL_TIM_TRGO2_RESET 0x00000000U
925#define LL_TIM_TRGO2_ENABLE TIM_CR2_MMS2_0
926#define LL_TIM_TRGO2_UPDATE TIM_CR2_MMS2_1
927#define LL_TIM_TRGO2_CC1F (TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
928#define LL_TIM_TRGO2_OC1 TIM_CR2_MMS2_2
929#define LL_TIM_TRGO2_OC2 (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_0)
930#define LL_TIM_TRGO2_OC3 (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1)
931#define LL_TIM_TRGO2_OC4 (TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
932#define LL_TIM_TRGO2_OC5 TIM_CR2_MMS2_3
933#define LL_TIM_TRGO2_OC6 (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_0)
934#define LL_TIM_TRGO2_OC4_RISINGFALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_1)
935#define LL_TIM_TRGO2_OC6_RISINGFALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
936#define LL_TIM_TRGO2_OC4_RISING_OC6_RISING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2)
937#define LL_TIM_TRGO2_OC4_RISING_OC6_FALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 | TIM_CR2_MMS2_0)
938#define LL_TIM_TRGO2_OC5_RISING_OC6_RISING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 |TIM_CR2_MMS2_1)
939#define LL_TIM_TRGO2_OC5_RISING_OC6_FALLING (TIM_CR2_MMS2_3 | TIM_CR2_MMS2_2 | TIM_CR2_MMS2_1 | TIM_CR2_MMS2_0)
948#define LL_TIM_SLAVEMODE_DISABLED 0x00000000U
949#define LL_TIM_SLAVEMODE_RESET TIM_SMCR_SMS_2
950#define LL_TIM_SLAVEMODE_GATED (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_0)
951#define LL_TIM_SLAVEMODE_TRIGGER (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1)
952#define LL_TIM_SLAVEMODE_COMBINED_RESETTRIGGER TIM_SMCR_SMS_3
961#define LL_TIM_TS_ITR0 0x00000000U
962#define LL_TIM_TS_ITR1 TIM_SMCR_TS_0
963#define LL_TIM_TS_ITR2 TIM_SMCR_TS_1
964#define LL_TIM_TS_ITR3 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1)
965#define LL_TIM_TS_ITR4 (TIM_SMCR_TS_3)
966#define LL_TIM_TS_ITR5 (TIM_SMCR_TS_0 | TIM_SMCR_TS_3)
967#define LL_TIM_TS_ITR6 (TIM_SMCR_TS_1 | TIM_SMCR_TS_3)
968#define LL_TIM_TS_ITR7 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_3)
969#define LL_TIM_TS_ITR8 (TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
970#define LL_TIM_TS_ITR9 (TIM_SMCR_TS_0 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
971#define LL_TIM_TS_ITR10 (TIM_SMCR_TS_1 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
972#define LL_TIM_TS_ITR11 (TIM_SMCR_TS_0 | TIM_SMCR_TS_1 | TIM_SMCR_TS_2 | TIM_SMCR_TS_3)
973#define LL_TIM_TS_ITR12 (TIM_SMCR_TS_4)
974#define LL_TIM_TS_ITR13 (TIM_SMCR_TS_0 | TIM_SMCR_TS_4)
975#define LL_TIM_TS_TI1F_ED TIM_SMCR_TS_2
976#define LL_TIM_TS_TI1FP1 (TIM_SMCR_TS_2 | TIM_SMCR_TS_0)
977#define LL_TIM_TS_TI2FP2 (TIM_SMCR_TS_2 | TIM_SMCR_TS_1)
978#define LL_TIM_TS_ETRF (TIM_SMCR_TS_2 | TIM_SMCR_TS_1 | TIM_SMCR_TS_0)
987#define LL_TIM_ETR_POLARITY_NONINVERTED 0x00000000U
988#define LL_TIM_ETR_POLARITY_INVERTED TIM_SMCR_ETP
997#define LL_TIM_ETR_PRESCALER_DIV1 0x00000000U
998#define LL_TIM_ETR_PRESCALER_DIV2 TIM_SMCR_ETPS_0
999#define LL_TIM_ETR_PRESCALER_DIV4 TIM_SMCR_ETPS_1
1000#define LL_TIM_ETR_PRESCALER_DIV8 TIM_SMCR_ETPS
1009#define LL_TIM_ETR_FILTER_FDIV1 0x00000000U
1010#define LL_TIM_ETR_FILTER_FDIV1_N2 TIM_SMCR_ETF_0
1011#define LL_TIM_ETR_FILTER_FDIV1_N4 TIM_SMCR_ETF_1
1012#define LL_TIM_ETR_FILTER_FDIV1_N8 (TIM_SMCR_ETF_1 | TIM_SMCR_ETF_0)
1013#define LL_TIM_ETR_FILTER_FDIV2_N6 TIM_SMCR_ETF_2
1014#define LL_TIM_ETR_FILTER_FDIV2_N8 (TIM_SMCR_ETF_2 | TIM_SMCR_ETF_0)
1015#define LL_TIM_ETR_FILTER_FDIV4_N6 (TIM_SMCR_ETF_2 | TIM_SMCR_ETF_1)
1016#define LL_TIM_ETR_FILTER_FDIV4_N8 (TIM_SMCR_ETF_2 | TIM_SMCR_ETF_1 | TIM_SMCR_ETF_0)
1017#define LL_TIM_ETR_FILTER_FDIV8_N6 TIM_SMCR_ETF_3
1018#define LL_TIM_ETR_FILTER_FDIV8_N8 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_0)
1019#define LL_TIM_ETR_FILTER_FDIV16_N5 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_1)
1020#define LL_TIM_ETR_FILTER_FDIV16_N6 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_1 | TIM_SMCR_ETF_0)
1021#define LL_TIM_ETR_FILTER_FDIV16_N8 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_2)
1022#define LL_TIM_ETR_FILTER_FDIV32_N5 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_2 | TIM_SMCR_ETF_0)
1023#define LL_TIM_ETR_FILTER_FDIV32_N6 (TIM_SMCR_ETF_3 | TIM_SMCR_ETF_2 | TIM_SMCR_ETF_1)
1024#define LL_TIM_ETR_FILTER_FDIV32_N8 TIM_SMCR_ETF
1029#define LL_TIM_TIM1_ETRSOURCE_GPIO 0x00000000U
1030#define LL_TIM_TIM1_ETRSOURCE_COMP1 TIM1_AF1_ETRSEL_0
1031#define LL_TIM_TIM1_ETRSOURCE_COMP2 TIM1_AF1_ETRSEL_1
1032#define LL_TIM_TIM1_ETRSOURCE_ADC1_AWD1 (TIM1_AF1_ETRSEL_1 | TIM1_AF1_ETRSEL_0)
1033#define LL_TIM_TIM1_ETRSOURCE_ADC1_AWD2 (TIM1_AF1_ETRSEL_2)
1034#define LL_TIM_TIM1_ETRSOURCE_ADC1_AWD3 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_0)
1035#define LL_TIM_TIM1_ETRSOURCE_ADC3_AWD1 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_1)
1036#define LL_TIM_TIM1_ETRSOURCE_ADC3_AWD2 (TIM1_AF1_ETRSEL_2 | TIM1_AF1_ETRSEL_1 | TIM1_AF1_ETRSEL_0)
1037#define LL_TIM_TIM1_ETRSOURCE_ADC3_AWD3 TIM1_AF1_ETRSEL_3
1039#define LL_TIM_TIM8_ETRSOURCE_GPIO 0x00000000U
1040#define LL_TIM_TIM8_ETRSOURCE_COMP1 TIM8_AF1_ETRSEL_0
1041#define LL_TIM_TIM8_ETRSOURCE_COMP2 TIM8_AF1_ETRSEL_1
1042#define LL_TIM_TIM8_ETRSOURCE_ADC2_AWD1 (TIM8_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1043#define LL_TIM_TIM8_ETRSOURCE_ADC2_AWD2 (TIM8_AF1_ETRSEL_2)
1044#define LL_TIM_TIM8_ETRSOURCE_ADC2_AWD3 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_0)
1045#define LL_TIM_TIM8_ETRSOURCE_ADC3_AWD1 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_1)
1046#define LL_TIM_TIM8_ETRSOURCE_ADC3_AWD2 (TIM8_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1047#define LL_TIM_TIM8_ETRSOURCE_ADC3_AWD3 TIM8_AF1_ETRSEL_3
1049#define LL_TIM_TIM2_ETRSOURCE_GPIO 0x00000000U
1050#define LL_TIM_TIM2_ETRSOURCE_COMP1 (TIM2_AF1_ETRSEL_0)
1051#define LL_TIM_TIM2_ETRSOURCE_COMP2 (TIM2_AF1_ETRSEL_1)
1052#define LL_TIM_TIM2_ETRSOURCE_RCC_LSE (TIM2_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1053#define LL_TIM_TIM2_ETRSOURCE_SAI1_FSA TIM2_AF1_ETRSEL_2
1054#define LL_TIM_TIM2_ETRSOURCE_SAI1_FSB (TIM2_AF1_ETRSEL_2 | TIM8_AF1_ETRSEL_0)
1056#define LL_TIM_TIM3_ETRSOURCE_GPIO 0x00000000U
1057#define LL_TIM_TIM3_ETRSOURCE_COMP1 TIM3_AF1_ETRSEL_0
1059#define LL_TIM_TIM5_ETRSOURCE_GPIO 0x00000000U
1060#define LL_TIM_TIM5_ETRSOURCE_SAI2_FSA TIM5_AF1_ETRSEL_0
1061#define LL_TIM_TIM5_ETRSOURCE_SAI2_FSB TIM5_AF1_ETRSEL_1
1062#define LL_TIM_TIM5_ETRSOURCE_SAI4_FSA TIM5_AF1_ETRSEL_0
1063#define LL_TIM_TIM5_ETRSOURCE_SAI4_FSB TIM5_AF1_ETRSEL_1
1065#define LL_TIM_TIM23_ETRSOURCE_GPIO 0x00000000U
1066#define LL_TIM_TIM23_ETRSOURCE_COMP1 (TIM2_AF1_ETRSEL_0)
1067#define LL_TIM_TIM23_ETRSOURCE_COMP2 (TIM2_AF1_ETRSEL_1)
1069#define LL_TIM_TIM24_ETRSOURCE_GPIO 0x00000000U
1070#define LL_TIM_TIM24_ETRSOURCE_SAI4_FSA TIM5_AF1_ETRSEL_0
1071#define LL_TIM_TIM24_ETRSOURCE_SAI4_FSB TIM5_AF1_ETRSEL_1
1072#define LL_TIM_TIM24_ETRSOURCE_SAI1_FSA (TIM2_AF1_ETRSEL_1 | TIM8_AF1_ETRSEL_0)
1073#define LL_TIM_TIM24_ETRSOURCE_SAI1_FSB TIM2_AF1_ETRSEL_2
1079#define LL_TIM_BREAK_POLARITY_LOW 0x00000000U
1080#define LL_TIM_BREAK_POLARITY_HIGH TIM_BDTR_BKP
1089#define LL_TIM_BREAK_FILTER_FDIV1 0x00000000U
1090#define LL_TIM_BREAK_FILTER_FDIV1_N2 0x00010000U
1091#define LL_TIM_BREAK_FILTER_FDIV1_N4 0x00020000U
1092#define LL_TIM_BREAK_FILTER_FDIV1_N8 0x00030000U
1093#define LL_TIM_BREAK_FILTER_FDIV2_N6 0x00040000U
1094#define LL_TIM_BREAK_FILTER_FDIV2_N8 0x00050000U
1095#define LL_TIM_BREAK_FILTER_FDIV4_N6 0x00060000U
1096#define LL_TIM_BREAK_FILTER_FDIV4_N8 0x00070000U
1097#define LL_TIM_BREAK_FILTER_FDIV8_N6 0x00080000U
1098#define LL_TIM_BREAK_FILTER_FDIV8_N8 0x00090000U
1099#define LL_TIM_BREAK_FILTER_FDIV16_N5 0x000A0000U
1100#define LL_TIM_BREAK_FILTER_FDIV16_N6 0x000B0000U
1101#define LL_TIM_BREAK_FILTER_FDIV16_N8 0x000C0000U
1102#define LL_TIM_BREAK_FILTER_FDIV32_N5 0x000D0000U
1103#define LL_TIM_BREAK_FILTER_FDIV32_N6 0x000E0000U
1104#define LL_TIM_BREAK_FILTER_FDIV32_N8 0x000F0000U
1113#define LL_TIM_BREAK2_POLARITY_LOW 0x00000000U
1114#define LL_TIM_BREAK2_POLARITY_HIGH TIM_BDTR_BK2P
1123#define LL_TIM_BREAK2_FILTER_FDIV1 0x00000000U
1124#define LL_TIM_BREAK2_FILTER_FDIV1_N2 0x00100000U
1125#define LL_TIM_BREAK2_FILTER_FDIV1_N4 0x00200000U
1126#define LL_TIM_BREAK2_FILTER_FDIV1_N8 0x00300000U
1127#define LL_TIM_BREAK2_FILTER_FDIV2_N6 0x00400000U
1128#define LL_TIM_BREAK2_FILTER_FDIV2_N8 0x00500000U
1129#define LL_TIM_BREAK2_FILTER_FDIV4_N6 0x00600000U
1130#define LL_TIM_BREAK2_FILTER_FDIV4_N8 0x00700000U
1131#define LL_TIM_BREAK2_FILTER_FDIV8_N6 0x00800000U
1132#define LL_TIM_BREAK2_FILTER_FDIV8_N8 0x00900000U
1133#define LL_TIM_BREAK2_FILTER_FDIV16_N5 0x00A00000U
1134#define LL_TIM_BREAK2_FILTER_FDIV16_N6 0x00B00000U
1135#define LL_TIM_BREAK2_FILTER_FDIV16_N8 0x00C00000U
1136#define LL_TIM_BREAK2_FILTER_FDIV32_N5 0x00D00000U
1137#define LL_TIM_BREAK2_FILTER_FDIV32_N6 0x00E00000U
1138#define LL_TIM_BREAK2_FILTER_FDIV32_N8 0x00F00000U
1147#define LL_TIM_OSSI_DISABLE 0x00000000U
1148#define LL_TIM_OSSI_ENABLE TIM_BDTR_OSSI
1157#define LL_TIM_OSSR_DISABLE 0x00000000U
1158#define LL_TIM_OSSR_ENABLE TIM_BDTR_OSSR
1163#if defined(TIM_BREAK_INPUT_SUPPORT)
1168#define LL_TIM_BREAK_INPUT_BKIN 0x00000000U
1169#define LL_TIM_BREAK_INPUT_BKIN2 0x00000004U
1178#define LL_TIM_BKIN_SOURCE_BKIN TIM1_AF1_BKINE
1179#define LL_TIM_BKIN_SOURCE_BKCOMP1 TIM1_AF1_BKCMP1E
1180#define LL_TIM_BKIN_SOURCE_BKCOMP2 TIM1_AF1_BKCMP2E
1181#define LL_TIM_BKIN_SOURCE_DF1BK TIM1_AF1_BKDF1BK0E
1190#define LL_TIM_BKIN_POLARITY_LOW TIM1_AF1_BKINP
1191#define LL_TIM_BKIN_POLARITY_HIGH 0x00000000U
1197#if defined(TIM_BDTR_BKBID)
1202#define LL_TIM_BREAK_AFMODE_INPUT 0x00000000U
1203#define LL_TIM_BREAK_AFMODE_BIDIRECTIONAL TIM_BDTR_BKBID
1212#define LL_TIM_BREAK2_AFMODE_INPUT 0x00000000U
1213#define LL_TIM_BREAK2_AFMODE_BIDIRECTIONAL TIM_BDTR_BK2BID
1221#define LL_TIM_ReArmBRK(_PARAM_)
1222#define LL_TIM_ReArmBRK2(_PARAM_)
1232#define LL_TIM_DMABURST_BASEADDR_CR1 0x00000000U
1233#define LL_TIM_DMABURST_BASEADDR_CR2 TIM_DCR_DBA_0
1234#define LL_TIM_DMABURST_BASEADDR_SMCR TIM_DCR_DBA_1
1235#define LL_TIM_DMABURST_BASEADDR_DIER (TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1236#define LL_TIM_DMABURST_BASEADDR_SR TIM_DCR_DBA_2
1237#define LL_TIM_DMABURST_BASEADDR_EGR (TIM_DCR_DBA_2 | TIM_DCR_DBA_0)
1238#define LL_TIM_DMABURST_BASEADDR_CCMR1 (TIM_DCR_DBA_2 | TIM_DCR_DBA_1)
1239#define LL_TIM_DMABURST_BASEADDR_CCMR2 (TIM_DCR_DBA_2 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1240#define LL_TIM_DMABURST_BASEADDR_CCER TIM_DCR_DBA_3
1241#define LL_TIM_DMABURST_BASEADDR_CNT (TIM_DCR_DBA_3 | TIM_DCR_DBA_0)
1242#define LL_TIM_DMABURST_BASEADDR_PSC (TIM_DCR_DBA_3 | TIM_DCR_DBA_1)
1243#define LL_TIM_DMABURST_BASEADDR_ARR (TIM_DCR_DBA_3 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1244#define LL_TIM_DMABURST_BASEADDR_RCR (TIM_DCR_DBA_3 | TIM_DCR_DBA_2)
1245#define LL_TIM_DMABURST_BASEADDR_CCR1 (TIM_DCR_DBA_3 | TIM_DCR_DBA_2 | TIM_DCR_DBA_0)
1246#define LL_TIM_DMABURST_BASEADDR_CCR2 (TIM_DCR_DBA_3 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1)
1247#define LL_TIM_DMABURST_BASEADDR_CCR3 (TIM_DCR_DBA_3 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1248#define LL_TIM_DMABURST_BASEADDR_CCR4 TIM_DCR_DBA_4
1249#define LL_TIM_DMABURST_BASEADDR_BDTR (TIM_DCR_DBA_4 | TIM_DCR_DBA_0)
1250#define LL_TIM_DMABURST_BASEADDR_CCMR3 (TIM_DCR_DBA_4 | TIM_DCR_DBA_2 | TIM_DCR_DBA_0)
1251#define LL_TIM_DMABURST_BASEADDR_CCR5 (TIM_DCR_DBA_4 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1)
1252#define LL_TIM_DMABURST_BASEADDR_CCR6 (TIM_DCR_DBA_4 | TIM_DCR_DBA_2 | TIM_DCR_DBA_1 | TIM_DCR_DBA_0)
1253#if defined(TIM1_AF1_BKINE)&&defined(TIM1_AF2_BKINE)
1254#define LL_TIM_DMABURST_BASEADDR_AF1 (TIM_DCR_DBA_4 | TIM_DCR_DBA_3)
1255#define LL_TIM_DMABURST_BASEADDR_AF2 (TIM_DCR_DBA_4 | TIM_DCR_DBA_3 | TIM_DCR_DBA_0)
1257#define LL_TIM_DMABURST_BASEADDR_TISEL (TIM_DCR_DBA_4 | TIM_DCR_DBA_3 | TIM_DCR_DBA_1)
1266#define LL_TIM_DMABURST_LENGTH_1TRANSFER 0x00000000U
1267#define LL_TIM_DMABURST_LENGTH_2TRANSFERS TIM_DCR_DBL_0
1268#define LL_TIM_DMABURST_LENGTH_3TRANSFERS TIM_DCR_DBL_1
1269#define LL_TIM_DMABURST_LENGTH_4TRANSFERS (TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1270#define LL_TIM_DMABURST_LENGTH_5TRANSFERS TIM_DCR_DBL_2
1271#define LL_TIM_DMABURST_LENGTH_6TRANSFERS (TIM_DCR_DBL_2 | TIM_DCR_DBL_0)
1272#define LL_TIM_DMABURST_LENGTH_7TRANSFERS (TIM_DCR_DBL_2 | TIM_DCR_DBL_1)
1273#define LL_TIM_DMABURST_LENGTH_8TRANSFERS (TIM_DCR_DBL_2 | TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1274#define LL_TIM_DMABURST_LENGTH_9TRANSFERS TIM_DCR_DBL_3
1275#define LL_TIM_DMABURST_LENGTH_10TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_0)
1276#define LL_TIM_DMABURST_LENGTH_11TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_1)
1277#define LL_TIM_DMABURST_LENGTH_12TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1278#define LL_TIM_DMABURST_LENGTH_13TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2)
1279#define LL_TIM_DMABURST_LENGTH_14TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2 | TIM_DCR_DBL_0)
1280#define LL_TIM_DMABURST_LENGTH_15TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2 | TIM_DCR_DBL_1)
1281#define LL_TIM_DMABURST_LENGTH_16TRANSFERS (TIM_DCR_DBL_3 | TIM_DCR_DBL_2 | TIM_DCR_DBL_1 | TIM_DCR_DBL_0)
1282#define LL_TIM_DMABURST_LENGTH_17TRANSFERS TIM_DCR_DBL_4
1283#define LL_TIM_DMABURST_LENGTH_18TRANSFERS (TIM_DCR_DBL_4 | TIM_DCR_DBL_0)
1292#define LL_TIM_TIM1_TI1_RMP_GPIO 0x00000000U
1293#define LL_TIM_TIM1_TI1_RMP_COMP1 TIM_TISEL_TI1SEL_0
1302#define LL_TIM_TIM8_TI1_RMP_GPIO 0x00000000U
1303#define LL_TIM_TIM8_TI1_RMP_COMP2 TIM_TISEL_TI1SEL_0
1312#define LL_TIM_TIM2_TI4_RMP_GPIO 0x00000000U
1313#define LL_TIM_TIM2_TI4_RMP_COMP1 TIM_TISEL_TI4SEL_0
1314#define LL_TIM_TIM2_TI4_RMP_COMP2 TIM_TISEL_TI4SEL_1
1315#define LL_TIM_TIM2_TI4_RMP_COMP1_COMP2 (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1)
1324#define LL_TIM_TIM3_TI1_RMP_GPIO 0x00000000U
1325#define LL_TIM_TIM3_TI1_RMP_COMP1 TIM_TISEL_TI1SEL_0
1326#define LL_TIM_TIM3_TI1_RMP_COMP2 TIM_TISEL_TI1SEL_1
1327#define LL_TIM_TIM3_TI1_RMP_COMP1_COMP2 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1336#define LL_TIM_TIM5_TI1_RMP_GPIO 0x00000000U
1337#define LL_TIM_TIM5_TI1_RMP_CAN_TMP TIM_TISEL_TI1SEL_0
1338#define LL_TIM_TIM5_TI1_RMP_CAN_RTP TIM_TISEL_TI1SEL_1
1347#define LL_TIM_TIM12_TI1_RMP_GPIO 0x00000000U
1348#define LL_TIM_TIM12_TI1_RMP_SPDIF_FS TIM_TISEL_TI1SEL_0
1357#define LL_TIM_TIM15_TI1_RMP_GPIO 0x00000000U
1358#define LL_TIM_TIM15_TI1_RMP_TIM2_CH1 TIM_TISEL_TI1SEL_0
1359#define LL_TIM_TIM15_TI1_RMP_TIM3_CH1 TIM_TISEL_TI1SEL_1
1360#define LL_TIM_TIM15_TI1_RMP_TIM4_CH1 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1361#define LL_TIM_TIM15_TI1_RMP_RCC_LSE (TIM_TISEL_TI1SEL_2)
1362#define LL_TIM_TIM15_TI1_RMP_RCC_CSI (TIM_TISEL_TI1SEL_2 | TIM_TISEL_TI1SEL_0)
1363#define LL_TIM_TIM15_TI1_RMP_RCC_MCO2 (TIM_TISEL_TI1SEL_2 | TIM_TISEL_TI1SEL_1)
1372#define LL_TIM_TIM15_TI2_RMP_GPIO 0x00000000U
1373#define LL_TIM_TIM15_TI2_RMP_TIM2_CH2 (TIM_TISEL_TI2SEL_0)
1374#define LL_TIM_TIM15_TI2_RMP_TIM3_CH2 (TIM_TISEL_TI2SEL_1)
1375#define LL_TIM_TIM15_TI2_RMP_TIM4_CH2 (TIM_TISEL_TI2SEL_0 | TIM_TISEL_TI2SEL_1)
1384#define LL_TIM_TIM16_TI1_RMP_GPIO 0x00000000U
1385#define LL_TIM_TIM16_TI1_RMP_RCC_LSI TIM_TISEL_TI1SEL_0
1386#define LL_TIM_TIM16_TI1_RMP_RCC_LSE TIM_TISEL_TI1SEL_1
1387#define LL_TIM_TIM16_TI1_RMP_WKUP_IT (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1396#define LL_TIM_TIM17_TI1_RMP_GPIO 0x00000000U
1397#define LL_TIM_TIM17_TI1_RMP_SPDIF_FS TIM_TISEL_TI1SEL_0
1398#define LL_TIM_TIM17_TI1_RMP_RCC_HSE1MHZ TIM_TISEL_TI1SEL_1
1399#define LL_TIM_TIM17_TI1_RMP_RCC_MCO1 (TIM_TISEL_TI1SEL_0 | TIM_TISEL_TI1SEL_1)
1408#define LL_TIM_TIM23_TI4_RMP_GPIO 0x00000000U
1409#define LL_TIM_TIM23_TI4_RMP_COMP1 TIM_TISEL_TI4SEL_0
1410#define LL_TIM_TIM23_TI4_RMP_COMP2 TIM_TISEL_TI4SEL_1
1411#define LL_TIM_TIM23_TI4_RMP_COMP1_COMP2 (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1)
1420#define LL_TIM_TIM24_TI1_RMP_GPIO 0x00000000U
1421#define LL_TIM_TIM24_TI1_RMP_CAN_TMP TIM_TISEL_TI1SEL_0
1422#define LL_TIM_TIM24_TI1_RMP_CAN_RTP TIM_TISEL_TI1SEL_1
1423#define LL_TIM_TIM24_TI1_RMP_CAN_SOC (TIM_TISEL_TI4SEL_0 | TIM_TISEL_TI4SEL_1)
1428#if defined(TIM_BREAK_INPUT_SUPPORT)
1432#define LL_TIM_BKIN_SOURCE_DFBK LL_TIM_BKIN_SOURCE_DF1BK
1459#define LL_TIM_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG((__INSTANCE__)->__REG__, (__VALUE__))
1467#define LL_TIM_ReadReg(__INSTANCE__, __REG__) READ_REG((__INSTANCE__)->__REG__)
1480#define __LL_TIM_GETFLAG_UIFCPY(__CNT__) \
1481 (READ_BIT((__CNT__), TIM_CNT_UIFCPY) >> TIM_CNT_UIFCPY_Pos)
1494#define __LL_TIM_CALC_DEADTIME(__TIMCLK__, __CKD__, __DT__) \
1495 ( (((uint64_t)((__DT__)*1000U)) < ((DT_DELAY_1+1U) * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1496 (uint8_t)(((uint64_t)((__DT__)*1000U) / TIM_CALC_DTS((__TIMCLK__), (__CKD__))) & DT_DELAY_1) : \
1497 (((uint64_t)((__DT__)*1000U)) < ((64U + (DT_DELAY_2+1U)) * 2U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1498 (uint8_t)(DT_RANGE_2 | ((uint8_t)((uint8_t)((((uint64_t)((__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \
1499 (__CKD__))) >> 1U) - (uint8_t) 64) & DT_DELAY_2)) :\
1500 (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_3+1U)) * 8U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1501 (uint8_t)(DT_RANGE_3 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \
1502 (__CKD__))) >> 3U) - (uint8_t) 32) & DT_DELAY_3)) :\
1503 (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_4+1U)) * 16U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? \
1504 (uint8_t)(DT_RANGE_4 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), \
1505 (__CKD__))) >> 4U) - (uint8_t) 32) & DT_DELAY_4)) :\
1515#define __LL_TIM_CALC_PSC(__TIMCLK__, __CNTCLK__) \
1516 (((__TIMCLK__) >= (__CNTCLK__)) ? (uint32_t)((((__TIMCLK__) + (__CNTCLK__)/2U)/(__CNTCLK__)) - 1U) : 0U)
1526#define __LL_TIM_CALC_ARR(__TIMCLK__, __PSC__, __FREQ__) \
1527 ((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? (((__TIMCLK__)/((__FREQ__) * ((__PSC__) + 1U))) - 1U) : 0U)
1538#define __LL_TIM_CALC_DELAY(__TIMCLK__, __PSC__, __DELAY__) \
1539 ((uint32_t)(((uint64_t)(__TIMCLK__) * (uint64_t)(__DELAY__)) \
1540 / ((uint64_t)1000000U * (uint64_t)((__PSC__) + 1U))))
1552#define __LL_TIM_CALC_PULSE(__TIMCLK__, __PSC__, __DELAY__, __PULSE__) \
1553 ((uint32_t)(__LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__PULSE__)) \
1554 + __LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__DELAY__))))
1566#define __LL_TIM_GET_ICPSC_RATIO(__ICPSC__) \
1567 ((uint32_t)(0x01U << (((__ICPSC__) >> 16U) >> TIM_CCMR1_IC1PSC_Pos)))
1590__STATIC_INLINE
void LL_TIM_EnableCounter(
TIM_TypeDef *TIMx)
1601__STATIC_INLINE
void LL_TIM_DisableCounter(
TIM_TypeDef *TIMx)
1612__STATIC_INLINE uint32_t LL_TIM_IsEnabledCounter(
const TIM_TypeDef *TIMx)
1623__STATIC_INLINE
void LL_TIM_EnableUpdateEvent(
TIM_TypeDef *TIMx)
1634__STATIC_INLINE
void LL_TIM_DisableUpdateEvent(
TIM_TypeDef *TIMx)
1645__STATIC_INLINE uint32_t LL_TIM_IsEnabledUpdateEvent(
const TIM_TypeDef *TIMx)
1647 return ((READ_BIT(TIMx->
CR1,
TIM_CR1_UDIS) == (uint32_t)RESET) ? 1UL : 0UL);
1666__STATIC_INLINE
void LL_TIM_SetUpdateSource(
TIM_TypeDef *TIMx, uint32_t UpdateSource)
1679__STATIC_INLINE uint32_t LL_TIM_GetUpdateSource(
const TIM_TypeDef *TIMx)
1693__STATIC_INLINE
void LL_TIM_SetOnePulseMode(
TIM_TypeDef *TIMx, uint32_t OnePulseMode)
1706__STATIC_INLINE uint32_t LL_TIM_GetOnePulseMode(
const TIM_TypeDef *TIMx)
1730__STATIC_INLINE
void LL_TIM_SetCounterMode(
TIM_TypeDef *TIMx, uint32_t CounterMode)
1750__STATIC_INLINE uint32_t LL_TIM_GetCounterMode(
const TIM_TypeDef *TIMx)
1752 uint32_t counter_mode;
1756 if (counter_mode == 0U)
1761 return counter_mode;
1770__STATIC_INLINE
void LL_TIM_EnableARRPreload(
TIM_TypeDef *TIMx)
1781__STATIC_INLINE
void LL_TIM_DisableARRPreload(
TIM_TypeDef *TIMx)
1792__STATIC_INLINE uint32_t LL_TIM_IsEnabledARRPreload(
const TIM_TypeDef *TIMx)
1811__STATIC_INLINE
void LL_TIM_SetClockDivision(
TIM_TypeDef *TIMx, uint32_t ClockDivision)
1829__STATIC_INLINE uint32_t LL_TIM_GetClockDivision(
const TIM_TypeDef *TIMx)
1843__STATIC_INLINE
void LL_TIM_SetCounter(
TIM_TypeDef *TIMx, uint32_t Counter)
1845 WRITE_REG(TIMx->
CNT, Counter);
1856__STATIC_INLINE uint32_t LL_TIM_GetCounter(
const TIM_TypeDef *TIMx)
1858 return (uint32_t)(READ_REG(TIMx->
CNT));
1869__STATIC_INLINE uint32_t LL_TIM_GetDirection(
const TIM_TypeDef *TIMx)
1885__STATIC_INLINE
void LL_TIM_SetPrescaler(
TIM_TypeDef *TIMx, uint32_t Prescaler)
1887 WRITE_REG(TIMx->
PSC, Prescaler);
1896__STATIC_INLINE uint32_t LL_TIM_GetPrescaler(
const TIM_TypeDef *TIMx)
1898 return (uint32_t)(READ_REG(TIMx->
PSC));
1912__STATIC_INLINE
void LL_TIM_SetAutoReload(
TIM_TypeDef *TIMx, uint32_t AutoReload)
1914 WRITE_REG(TIMx->
ARR, AutoReload);
1925__STATIC_INLINE uint32_t LL_TIM_GetAutoReload(
const TIM_TypeDef *TIMx)
1927 return (uint32_t)(READ_REG(TIMx->
ARR));
1940__STATIC_INLINE
void LL_TIM_SetRepetitionCounter(
TIM_TypeDef *TIMx, uint32_t RepetitionCounter)
1942 WRITE_REG(TIMx->
RCR, RepetitionCounter);
1953__STATIC_INLINE uint32_t LL_TIM_GetRepetitionCounter(
const TIM_TypeDef *TIMx)
1955 return (uint32_t)(READ_REG(TIMx->
RCR));
1966__STATIC_INLINE
void LL_TIM_EnableUIFRemap(
TIM_TypeDef *TIMx)
1977__STATIC_INLINE
void LL_TIM_DisableUIFRemap(
TIM_TypeDef *TIMx)
1987__STATIC_INLINE uint32_t LL_TIM_IsActiveUIFCPY(
const uint32_t Counter)
2011__STATIC_INLINE
void LL_TIM_CC_EnablePreload(
TIM_TypeDef *TIMx)
2024__STATIC_INLINE
void LL_TIM_CC_DisablePreload(
TIM_TypeDef *TIMx)
2035__STATIC_INLINE uint32_t LL_TIM_CC_IsEnabledPreload(
const TIM_TypeDef *TIMx)
2051__STATIC_INLINE
void LL_TIM_CC_SetUpdate(
TIM_TypeDef *TIMx, uint32_t CCUpdateSource)
2065__STATIC_INLINE
void LL_TIM_CC_SetDMAReqTrigger(
TIM_TypeDef *TIMx, uint32_t DMAReqTrigger)
2078__STATIC_INLINE uint32_t LL_TIM_CC_GetDMAReqTrigger(
const TIM_TypeDef *TIMx)
2097__STATIC_INLINE
void LL_TIM_CC_SetLockLevel(
TIM_TypeDef *TIMx, uint32_t LockLevel)
2126__STATIC_INLINE
void LL_TIM_CC_EnableChannel(
TIM_TypeDef *TIMx, uint32_t Channels)
2128 SET_BIT(TIMx->
CCER, Channels);
2155__STATIC_INLINE
void LL_TIM_CC_DisableChannel(
TIM_TypeDef *TIMx, uint32_t Channels)
2157 CLEAR_BIT(TIMx->
CCER, Channels);
2184__STATIC_INLINE uint32_t LL_TIM_CC_IsEnabledChannel(
const TIM_TypeDef *TIMx, uint32_t Channels)
2186 return ((READ_BIT(TIMx->
CCER, Channels) == (Channels)) ? 1UL : 0UL);
2230__STATIC_INLINE
void LL_TIM_OC_ConfigOutput(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Configuration)
2232 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2233 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2236 (Configuration &
TIM_CCER_CC1P) << SHIFT_TAB_CCxP[iChannel]);
2238 (Configuration &
TIM_CR2_OIS1) << SHIFT_TAB_OISx[iChannel]);
2275__STATIC_INLINE
void LL_TIM_OC_SetMode(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Mode)
2277 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2278 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2314__STATIC_INLINE uint32_t LL_TIM_OC_GetMode(
const TIM_TypeDef *TIMx, uint32_t Channel)
2316 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2317 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2348__STATIC_INLINE
void LL_TIM_OC_SetPolarity(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Polarity)
2350 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2351 MODIFY_REG(TIMx->
CCER, (
TIM_CCER_CC1P << SHIFT_TAB_CCxP[iChannel]), Polarity << SHIFT_TAB_CCxP[iChannel]);
2380__STATIC_INLINE uint32_t LL_TIM_OC_GetPolarity(
const TIM_TypeDef *TIMx, uint32_t Channel)
2382 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2383 return (READ_BIT(TIMx->
CCER, (
TIM_CCER_CC1P << SHIFT_TAB_CCxP[iChannel])) >> SHIFT_TAB_CCxP[iChannel]);
2417__STATIC_INLINE
void LL_TIM_OC_SetIdleState(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t IdleState)
2419 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2420 MODIFY_REG(TIMx->
CR2, (
TIM_CR2_OIS1 << SHIFT_TAB_OISx[iChannel]), IdleState << SHIFT_TAB_OISx[iChannel]);
2449__STATIC_INLINE uint32_t LL_TIM_OC_GetIdleState(
const TIM_TypeDef *TIMx, uint32_t Channel)
2451 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2452 return (READ_BIT(TIMx->
CR2, (
TIM_CR2_OIS1 << SHIFT_TAB_OISx[iChannel])) >> SHIFT_TAB_OISx[iChannel]);
2474__STATIC_INLINE
void LL_TIM_OC_EnableFast(
TIM_TypeDef *TIMx, uint32_t Channel)
2476 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2477 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2500__STATIC_INLINE
void LL_TIM_OC_DisableFast(
TIM_TypeDef *TIMx, uint32_t Channel)
2502 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2503 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2526__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledFast(
const TIM_TypeDef *TIMx, uint32_t Channel)
2528 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2529 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2531 return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL);
2552__STATIC_INLINE
void LL_TIM_OC_EnablePreload(
TIM_TypeDef *TIMx, uint32_t Channel)
2554 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2555 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2577__STATIC_INLINE
void LL_TIM_OC_DisablePreload(
TIM_TypeDef *TIMx, uint32_t Channel)
2579 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2580 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2602__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledPreload(
const TIM_TypeDef *TIMx, uint32_t Channel)
2604 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2605 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2607 return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL);
2631__STATIC_INLINE
void LL_TIM_OC_EnableClear(
TIM_TypeDef *TIMx, uint32_t Channel)
2633 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2634 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2658__STATIC_INLINE
void LL_TIM_OC_DisableClear(
TIM_TypeDef *TIMx, uint32_t Channel)
2660 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2661 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2687__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledClear(
const TIM_TypeDef *TIMx, uint32_t Channel)
2689 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2690 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2692 return ((READ_BIT(*pReg, bitfield) == bitfield) ? 1UL : 0UL);
2706__STATIC_INLINE
void LL_TIM_OC_SetDeadTime(
TIM_TypeDef *TIMx, uint32_t DeadTime)
2723__STATIC_INLINE
void LL_TIM_OC_SetCompareCH1(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2725 WRITE_REG(TIMx->
CCR1, CompareValue);
2740__STATIC_INLINE
void LL_TIM_OC_SetCompareCH2(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2742 WRITE_REG(TIMx->
CCR2, CompareValue);
2757__STATIC_INLINE
void LL_TIM_OC_SetCompareCH3(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2759 WRITE_REG(TIMx->
CCR3, CompareValue);
2774__STATIC_INLINE
void LL_TIM_OC_SetCompareCH4(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2776 WRITE_REG(TIMx->
CCR4, CompareValue);
2788__STATIC_INLINE
void LL_TIM_OC_SetCompareCH5(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2802__STATIC_INLINE
void LL_TIM_OC_SetCompareCH6(
TIM_TypeDef *TIMx, uint32_t CompareValue)
2804 WRITE_REG(TIMx->
CCR6, CompareValue);
2818__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH1(
const TIM_TypeDef *TIMx)
2820 return (uint32_t)(READ_REG(TIMx->
CCR1));
2834__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH2(
const TIM_TypeDef *TIMx)
2836 return (uint32_t)(READ_REG(TIMx->
CCR2));
2850__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH3(
const TIM_TypeDef *TIMx)
2852 return (uint32_t)(READ_REG(TIMx->
CCR3));
2866__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH4(
const TIM_TypeDef *TIMx)
2868 return (uint32_t)(READ_REG(TIMx->
CCR4));
2879__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH5(
const TIM_TypeDef *TIMx)
2892__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH6(
const TIM_TypeDef *TIMx)
2894 return (uint32_t)(READ_REG(TIMx->
CCR6));
2912__STATIC_INLINE
void LL_TIM_SetCH5CombinedChannels(
TIM_TypeDef *TIMx, uint32_t GroupCH5)
2960__STATIC_INLINE
void LL_TIM_IC_Config(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Configuration)
2962 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2963 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2966 << SHIFT_TAB_ICxx[iChannel]);
2989__STATIC_INLINE
void LL_TIM_IC_SetActiveInput(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICActiveInput)
2991 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
2992 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
2993 MODIFY_REG(*pReg, ((
TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel]), (ICActiveInput >> 16U) << SHIFT_TAB_ICxx[iChannel]);
3013__STATIC_INLINE uint32_t LL_TIM_IC_GetActiveInput(
const TIM_TypeDef *TIMx, uint32_t Channel)
3015 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3016 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3017 return ((READ_BIT(*pReg, ((
TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U);
3039__STATIC_INLINE
void LL_TIM_IC_SetPrescaler(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICPrescaler)
3041 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3042 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3043 MODIFY_REG(*pReg, ((
TIM_CCMR1_IC1PSC) << SHIFT_TAB_ICxx[iChannel]), (ICPrescaler >> 16U) << SHIFT_TAB_ICxx[iChannel]);
3064__STATIC_INLINE uint32_t LL_TIM_IC_GetPrescaler(
const TIM_TypeDef *TIMx, uint32_t Channel)
3066 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3067 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3068 return ((READ_BIT(*pReg, ((
TIM_CCMR1_IC1PSC) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U);
3102__STATIC_INLINE
void LL_TIM_IC_SetFilter(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICFilter)
3104 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3105 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3106 MODIFY_REG(*pReg, ((
TIM_CCMR1_IC1F) << SHIFT_TAB_ICxx[iChannel]), (ICFilter >> 16U) << SHIFT_TAB_ICxx[iChannel]);
3139__STATIC_INLINE uint32_t LL_TIM_IC_GetFilter(
const TIM_TypeDef *TIMx, uint32_t Channel)
3141 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3142 const __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
3143 return ((READ_BIT(*pReg, ((
TIM_CCMR1_IC1F) << SHIFT_TAB_ICxx[iChannel])) >> SHIFT_TAB_ICxx[iChannel]) << 16U);
3168__STATIC_INLINE
void LL_TIM_IC_SetPolarity(
TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ICPolarity)
3170 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3172 ICPolarity << SHIFT_TAB_CCxP[iChannel]);
3196__STATIC_INLINE uint32_t LL_TIM_IC_GetPolarity(
const TIM_TypeDef *TIMx, uint32_t Channel)
3198 uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
3200 SHIFT_TAB_CCxP[iChannel]);
3211__STATIC_INLINE
void LL_TIM_IC_EnableXORCombination(
TIM_TypeDef *TIMx)
3224__STATIC_INLINE
void LL_TIM_IC_DisableXORCombination(
TIM_TypeDef *TIMx)
3237__STATIC_INLINE uint32_t LL_TIM_IC_IsEnabledXORCombination(
const TIM_TypeDef *TIMx)
3253__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH1(
const TIM_TypeDef *TIMx)
3255 return (uint32_t)(READ_REG(TIMx->
CCR1));
3269__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH2(
const TIM_TypeDef *TIMx)
3271 return (uint32_t)(READ_REG(TIMx->
CCR2));
3285__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH3(
const TIM_TypeDef *TIMx)
3287 return (uint32_t)(READ_REG(TIMx->
CCR3));
3301__STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH4(
const TIM_TypeDef *TIMx)
3303 return (uint32_t)(READ_REG(TIMx->
CCR4));
3323__STATIC_INLINE
void LL_TIM_EnableExternalClock(
TIM_TypeDef *TIMx)
3336__STATIC_INLINE
void LL_TIM_DisableExternalClock(
TIM_TypeDef *TIMx)
3349__STATIC_INLINE uint32_t LL_TIM_IsEnabledExternalClock(
const TIM_TypeDef *TIMx)
3373__STATIC_INLINE
void LL_TIM_SetClockSource(
TIM_TypeDef *TIMx, uint32_t ClockSource)
3390__STATIC_INLINE
void LL_TIM_SetEncoderMode(
TIM_TypeDef *TIMx, uint32_t EncoderMode)
3420__STATIC_INLINE
void LL_TIM_SetTriggerOutput(
TIM_TypeDef *TIMx, uint32_t TimerSynchronization)
3450__STATIC_INLINE
void LL_TIM_SetTriggerOutput2(
TIM_TypeDef *TIMx, uint32_t ADCSynchronization)
3469__STATIC_INLINE
void LL_TIM_SetSlaveMode(
TIM_TypeDef *TIMx, uint32_t SlaveMode)
3503__STATIC_INLINE
void LL_TIM_SetTriggerInput(
TIM_TypeDef *TIMx, uint32_t TriggerInput)
3516__STATIC_INLINE
void LL_TIM_EnableMasterSlaveMode(
TIM_TypeDef *TIMx)
3529__STATIC_INLINE
void LL_TIM_DisableMasterSlaveMode(
TIM_TypeDef *TIMx)
3542__STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode(
const TIM_TypeDef *TIMx)
3582__STATIC_INLINE
void LL_TIM_ConfigETR(
TIM_TypeDef *TIMx, uint32_t ETRPolarity, uint32_t ETRPrescaler,
3651__STATIC_INLINE
void LL_TIM_SetETRSource(
TIM_TypeDef *TIMx, uint32_t ETRSource)
3653 MODIFY_REG(TIMx->
AF1, TIMx_AF1_ETRSEL, ETRSource);
3672__STATIC_INLINE
void LL_TIM_EnableBRK(
TIM_TypeDef *TIMx)
3685__STATIC_INLINE
void LL_TIM_DisableBRK(
TIM_TypeDef *TIMx)
3690#if defined(TIM_BDTR_BKBID)
3733__STATIC_INLINE
void LL_TIM_ConfigBRK(
TIM_TypeDef *TIMx, uint32_t BreakPolarity, uint32_t BreakFilter,
3734 uint32_t BreakAFMode)
3769__STATIC_INLINE
void LL_TIM_ConfigBRK(
TIM_TypeDef *TIMx, uint32_t BreakPolarity,
3770 uint32_t BreakFilter)
3776#if defined(TIM_BDTR_BKBID)
3787__STATIC_INLINE
void LL_TIM_DisarmBRK(
TIM_TypeDef *TIMx)
3801__STATIC_INLINE
void LL_TIM_EnableBRK2(
TIM_TypeDef *TIMx)
3814__STATIC_INLINE
void LL_TIM_DisableBRK2(
TIM_TypeDef *TIMx)
3819#if defined(TIM_BDTR_BKBID)
3862__STATIC_INLINE
void LL_TIM_ConfigBRK2(
TIM_TypeDef *TIMx, uint32_t Break2Polarity, uint32_t Break2Filter,
3863 uint32_t Break2AFMode)
3898__STATIC_INLINE
void LL_TIM_ConfigBRK2(
TIM_TypeDef *TIMx, uint32_t Break2Polarity, uint32_t Break2Filter)
3904#if defined(TIM_BDTR_BKBID)
3915__STATIC_INLINE
void LL_TIM_DisarmBRK2(
TIM_TypeDef *TIMx)
3936__STATIC_INLINE
void LL_TIM_SetOffStates(
TIM_TypeDef *TIMx, uint32_t OffStateIdle, uint32_t OffStateRun)
3949__STATIC_INLINE
void LL_TIM_EnableAutomaticOutput(
TIM_TypeDef *TIMx)
3962__STATIC_INLINE
void LL_TIM_DisableAutomaticOutput(
TIM_TypeDef *TIMx)
3975__STATIC_INLINE uint32_t LL_TIM_IsEnabledAutomaticOutput(
const TIM_TypeDef *TIMx)
3990__STATIC_INLINE
void LL_TIM_EnableAllOutputs(
TIM_TypeDef *TIMx)
4005__STATIC_INLINE
void LL_TIM_DisableAllOutputs(
TIM_TypeDef *TIMx)
4018__STATIC_INLINE uint32_t LL_TIM_IsEnabledAllOutputs(
const TIM_TypeDef *TIMx)
4023#if defined(TIM_BREAK_INPUT_SUPPORT)
4047__STATIC_INLINE
void LL_TIM_EnableBreakInputSource(
TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source)
4049 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
AF1) + BreakInput));
4050 SET_BIT(*pReg, Source);
4076__STATIC_INLINE
void LL_TIM_DisableBreakInputSource(
TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source)
4078 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
AF1) + BreakInput));
4079 CLEAR_BIT(*pReg, Source);
4105__STATIC_INLINE
void LL_TIM_SetBreakInputSourcePolarity(
TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source,
4108 __IO uint32_t *pReg = (
__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->
AF1) + BreakInput));
4109 MODIFY_REG(*pReg, (TIMx_AF1_BKINP << TIM_POSITION_BRK_SOURCE), (Polarity << TIM_POSITION_BRK_SOURCE));
4174__STATIC_INLINE
void LL_TIM_ConfigDMABurst(
TIM_TypeDef *TIMx, uint32_t DMABurstBaseAddress, uint32_t DMABurstLength)
4260__STATIC_INLINE
void LL_TIM_SetRemap(
TIM_TypeDef *TIMx, uint32_t Remap)
4279__STATIC_INLINE
void LL_TIM_ClearFlag_UPDATE(
TIM_TypeDef *TIMx)
4290__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_UPDATE(
const TIM_TypeDef *TIMx)
4301__STATIC_INLINE
void LL_TIM_ClearFlag_CC1(
TIM_TypeDef *TIMx)
4312__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC1(
const TIM_TypeDef *TIMx)
4323__STATIC_INLINE
void LL_TIM_ClearFlag_CC2(
TIM_TypeDef *TIMx)
4334__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC2(
const TIM_TypeDef *TIMx)
4345__STATIC_INLINE
void LL_TIM_ClearFlag_CC3(
TIM_TypeDef *TIMx)
4356__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC3(
const TIM_TypeDef *TIMx)
4367__STATIC_INLINE
void LL_TIM_ClearFlag_CC4(
TIM_TypeDef *TIMx)
4378__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC4(
const TIM_TypeDef *TIMx)
4389__STATIC_INLINE
void LL_TIM_ClearFlag_CC5(
TIM_TypeDef *TIMx)
4400__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC5(
const TIM_TypeDef *TIMx)
4411__STATIC_INLINE
void LL_TIM_ClearFlag_CC6(
TIM_TypeDef *TIMx)
4422__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC6(
const TIM_TypeDef *TIMx)
4433__STATIC_INLINE
void LL_TIM_ClearFlag_COM(
TIM_TypeDef *TIMx)
4444__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_COM(
const TIM_TypeDef *TIMx)
4455__STATIC_INLINE
void LL_TIM_ClearFlag_TRIG(
TIM_TypeDef *TIMx)
4466__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_TRIG(
const TIM_TypeDef *TIMx)
4477__STATIC_INLINE
void LL_TIM_ClearFlag_BRK(
TIM_TypeDef *TIMx)
4488__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_BRK(
const TIM_TypeDef *TIMx)
4499__STATIC_INLINE
void LL_TIM_ClearFlag_BRK2(
TIM_TypeDef *TIMx)
4510__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_BRK2(
const TIM_TypeDef *TIMx)
4521__STATIC_INLINE
void LL_TIM_ClearFlag_CC1OVR(
TIM_TypeDef *TIMx)
4533__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC1OVR(
const TIM_TypeDef *TIMx)
4544__STATIC_INLINE
void LL_TIM_ClearFlag_CC2OVR(
TIM_TypeDef *TIMx)
4556__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC2OVR(
const TIM_TypeDef *TIMx)
4567__STATIC_INLINE
void LL_TIM_ClearFlag_CC3OVR(
TIM_TypeDef *TIMx)
4579__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC3OVR(
const TIM_TypeDef *TIMx)
4590__STATIC_INLINE
void LL_TIM_ClearFlag_CC4OVR(
TIM_TypeDef *TIMx)
4602__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_CC4OVR(
const TIM_TypeDef *TIMx)
4613__STATIC_INLINE
void LL_TIM_ClearFlag_SYSBRK(
TIM_TypeDef *TIMx)
4624__STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_SYSBRK(
const TIM_TypeDef *TIMx)
4643__STATIC_INLINE
void LL_TIM_EnableIT_UPDATE(
TIM_TypeDef *TIMx)
4654__STATIC_INLINE
void LL_TIM_DisableIT_UPDATE(
TIM_TypeDef *TIMx)
4665__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_UPDATE(
const TIM_TypeDef *TIMx)
4676__STATIC_INLINE
void LL_TIM_EnableIT_CC1(
TIM_TypeDef *TIMx)
4687__STATIC_INLINE
void LL_TIM_DisableIT_CC1(
TIM_TypeDef *TIMx)
4698__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC1(
const TIM_TypeDef *TIMx)
4709__STATIC_INLINE
void LL_TIM_EnableIT_CC2(
TIM_TypeDef *TIMx)
4720__STATIC_INLINE
void LL_TIM_DisableIT_CC2(
TIM_TypeDef *TIMx)
4731__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC2(
const TIM_TypeDef *TIMx)
4742__STATIC_INLINE
void LL_TIM_EnableIT_CC3(
TIM_TypeDef *TIMx)
4753__STATIC_INLINE
void LL_TIM_DisableIT_CC3(
TIM_TypeDef *TIMx)
4764__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC3(
const TIM_TypeDef *TIMx)
4775__STATIC_INLINE
void LL_TIM_EnableIT_CC4(
TIM_TypeDef *TIMx)
4786__STATIC_INLINE
void LL_TIM_DisableIT_CC4(
TIM_TypeDef *TIMx)
4797__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_CC4(
const TIM_TypeDef *TIMx)
4808__STATIC_INLINE
void LL_TIM_EnableIT_COM(
TIM_TypeDef *TIMx)
4819__STATIC_INLINE
void LL_TIM_DisableIT_COM(
TIM_TypeDef *TIMx)
4830__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_COM(
const TIM_TypeDef *TIMx)
4841__STATIC_INLINE
void LL_TIM_EnableIT_TRIG(
TIM_TypeDef *TIMx)
4852__STATIC_INLINE
void LL_TIM_DisableIT_TRIG(
TIM_TypeDef *TIMx)
4863__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_TRIG(
const TIM_TypeDef *TIMx)
4874__STATIC_INLINE
void LL_TIM_EnableIT_BRK(
TIM_TypeDef *TIMx)
4885__STATIC_INLINE
void LL_TIM_DisableIT_BRK(
TIM_TypeDef *TIMx)
4896__STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_BRK(
const TIM_TypeDef *TIMx)
4915__STATIC_INLINE
void LL_TIM_EnableDMAReq_UPDATE(
TIM_TypeDef *TIMx)
4926__STATIC_INLINE
void LL_TIM_DisableDMAReq_UPDATE(
TIM_TypeDef *TIMx)
4937__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_UPDATE(
const TIM_TypeDef *TIMx)
4948__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC1(
TIM_TypeDef *TIMx)
4959__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC1(
TIM_TypeDef *TIMx)
4970__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC1(
const TIM_TypeDef *TIMx)
4981__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC2(
TIM_TypeDef *TIMx)
4992__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC2(
TIM_TypeDef *TIMx)
5003__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC2(
const TIM_TypeDef *TIMx)
5014__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC3(
TIM_TypeDef *TIMx)
5025__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC3(
TIM_TypeDef *TIMx)
5036__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC3(
const TIM_TypeDef *TIMx)
5047__STATIC_INLINE
void LL_TIM_EnableDMAReq_CC4(
TIM_TypeDef *TIMx)
5058__STATIC_INLINE
void LL_TIM_DisableDMAReq_CC4(
TIM_TypeDef *TIMx)
5069__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_CC4(
const TIM_TypeDef *TIMx)
5080__STATIC_INLINE
void LL_TIM_EnableDMAReq_COM(
TIM_TypeDef *TIMx)
5091__STATIC_INLINE
void LL_TIM_DisableDMAReq_COM(
TIM_TypeDef *TIMx)
5102__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_COM(
const TIM_TypeDef *TIMx)
5113__STATIC_INLINE
void LL_TIM_EnableDMAReq_TRIG(
TIM_TypeDef *TIMx)
5124__STATIC_INLINE
void LL_TIM_DisableDMAReq_TRIG(
TIM_TypeDef *TIMx)
5135__STATIC_INLINE uint32_t LL_TIM_IsEnabledDMAReq_TRIG(
const TIM_TypeDef *TIMx)
5154__STATIC_INLINE
void LL_TIM_GenerateEvent_UPDATE(
TIM_TypeDef *TIMx)
5165__STATIC_INLINE
void LL_TIM_GenerateEvent_CC1(
TIM_TypeDef *TIMx)
5176__STATIC_INLINE
void LL_TIM_GenerateEvent_CC2(
TIM_TypeDef *TIMx)
5187__STATIC_INLINE
void LL_TIM_GenerateEvent_CC3(
TIM_TypeDef *TIMx)
5198__STATIC_INLINE
void LL_TIM_GenerateEvent_CC4(
TIM_TypeDef *TIMx)
5209__STATIC_INLINE
void LL_TIM_GenerateEvent_COM(
TIM_TypeDef *TIMx)
5220__STATIC_INLINE
void LL_TIM_GenerateEvent_TRIG(
TIM_TypeDef *TIMx)
5231__STATIC_INLINE
void LL_TIM_GenerateEvent_BRK(
TIM_TypeDef *TIMx)
5242__STATIC_INLINE
void LL_TIM_GenerateEvent_BRK2(
TIM_TypeDef *TIMx)
5251#if defined(USE_FULL_LL_DRIVER) || defined(__rtems__)
5257ErrorStatus LL_TIM_DeInit(
const TIM_TypeDef *TIMx);
5258void LL_TIM_StructInit(LL_TIM_InitTypeDef *TIM_InitStruct);
5259ErrorStatus LL_TIM_Init(
TIM_TypeDef *TIMx,
const LL_TIM_InitTypeDef *TIM_InitStruct);
5260void LL_TIM_OC_StructInit(LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct);
5261ErrorStatus LL_TIM_OC_Init(
TIM_TypeDef *TIMx, uint32_t Channel,
const LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct);
5262void LL_TIM_IC_StructInit(LL_TIM_IC_InitTypeDef *TIM_ICInitStruct);
5263ErrorStatus LL_TIM_IC_Init(
TIM_TypeDef *TIMx, uint32_t Channel,
const LL_TIM_IC_InitTypeDef *TIM_IC_InitStruct);
5264void LL_TIM_ENCODER_StructInit(LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct);
5265ErrorStatus LL_TIM_ENCODER_Init(
TIM_TypeDef *TIMx,
const LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct);
5266void LL_TIM_HALLSENSOR_StructInit(LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct);
5267ErrorStatus LL_TIM_HALLSENSOR_Init(
TIM_TypeDef *TIMx,
const LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct);
5268void LL_TIM_BDTR_StructInit(LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct);
5269ErrorStatus LL_TIM_BDTR_Init(
TIM_TypeDef *TIMx,
const LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct);
#define __IO
Definition: core_cm4.h:239
#define TIM_EGR_CC3G
Definition: stm32h723xx.h:19457
#define TIM_CR1_URS
Definition: stm32h723xx.h:19220
#define TIM_EGR_BG
Definition: stm32h723xx.h:19469
#define TIM_EGR_CC1G
Definition: stm32h723xx.h:19451
#define TIM_CCER_CC1P
Definition: stm32h723xx.h:19643
#define TIM_SMCR_ETPS
Definition: stm32h723xx.h:19337
#define TIM_DIER_CC3DE
Definition: stm32h723xx.h:19384
#define TIM_EGR_UG
Definition: stm32h723xx.h:19448
#define TIM_CCMR1_OC1PE
Definition: stm32h723xx.h:19487
#define TIM_DIER_CC1IE
Definition: stm32h723xx.h:19354
#define TIM_EGR_CC4G
Definition: stm32h723xx.h:19460
#define TIM_DIER_BIE
Definition: stm32h723xx.h:19372
#define TIM_SR_CC5IF
Definition: stm32h723xx.h:19437
#define TIM_SR_CC2IF
Definition: stm32h723xx.h:19404
#define TIM_BDTR_MOE
Definition: stm32h723xx.h:19792
#define TIM_SMCR_ETP
Definition: stm32h723xx.h:19346
#define TIM_EGR_TG
Definition: stm32h723xx.h:19466
#define TIM_BDTR_BKDSRM
Definition: stm32h723xx.h:19809
#define TIM_CR2_OIS1
Definition: stm32h723xx.h:19271
#define TIM_BDTR_BKP
Definition: stm32h723xx.h:19786
#define TIM_SMCR_ECE
Definition: stm32h723xx.h:19343
#define TIM_CR1_CMS
Definition: stm32h723xx.h:19230
#define TIM_SR_CC2OF
Definition: stm32h723xx.h:19428
#define TIM_CCER_CC1NP
Definition: stm32h723xx.h:19649
#define TIM_EGR_B2G
Definition: stm32h723xx.h:19472
#define TIM_SR_CC1IF
Definition: stm32h723xx.h:19401
#define TIM_CR1_ARPE
Definition: stm32h723xx.h:19236
#define TIM_DIER_CC3IE
Definition: stm32h723xx.h:19360
#define TIM_BDTR_BK2E
Definition: stm32h723xx.h:19803
#define TIM_TISEL_TI1SEL
Definition: stm32h723xx.h:19939
#define TIM_SMCR_MSM
Definition: stm32h723xx.h:19325
#define TIM_EGR_CC2G
Definition: stm32h723xx.h:19454
#define TIM_CCR5_CCR5
Definition: stm32h723xx.h:19740
#define TIM_BDTR_BKBID
Definition: stm32h723xx.h:19815
#define TIM_DIER_CC2DE
Definition: stm32h723xx.h:19381
#define TIM_BDTR_AOE
Definition: stm32h723xx.h:19789
#define TIM_DIER_TDE
Definition: stm32h723xx.h:19393
#define TIM_DIER_UIE
Definition: stm32h723xx.h:19351
#define TIM_CCR5_GC5C2
Definition: stm32h723xx.h:19746
#define TIM_DIER_CC4IE
Definition: stm32h723xx.h:19363
#define TIM_CR1_OPM
Definition: stm32h723xx.h:19223
#define TIM_SR_BIF
Definition: stm32h723xx.h:19419
#define TIM_CCMR1_OC1M
Definition: stm32h723xx.h:19491
#define TIM_BDTR_BKE
Definition: stm32h723xx.h:19783
#define TIM_DIER_CC2IE
Definition: stm32h723xx.h:19357
#define TIM_BDTR_BK2DSRM
Definition: stm32h723xx.h:19812
#define TIM_DIER_COMDE
Definition: stm32h723xx.h:19390
#define TIM_TISEL_TI3SEL
Definition: stm32h723xx.h:19955
#define TIM_SR_TIF
Definition: stm32h723xx.h:19416
#define TIM_BDTR_LOCK
Definition: stm32h723xx.h:19771
#define TIM_TISEL_TI4SEL
Definition: stm32h723xx.h:19963
#define TIM_SR_CC1OF
Definition: stm32h723xx.h:19425
#define TIM_SR_CC4OF
Definition: stm32h723xx.h:19434
#define TIM_SMCR_TS
Definition: stm32h723xx.h:19316
#define TIM_CCMR1_OC1CE
Definition: stm32h723xx.h:19499
#define TIM_CNT_UIFCPY
Definition: stm32h723xx.h:19701
#define TIM_SR_COMIF
Definition: stm32h723xx.h:19413
#define TIM_CR1_CEN
Definition: stm32h723xx.h:19214
#define TIM_BDTR_BK2P
Definition: stm32h723xx.h:19806
#define TIM_CCMR1_CC1S
Definition: stm32h723xx.h:19478
#define TIM_CR1_UDIS
Definition: stm32h723xx.h:19217
#define TIM_DIER_TIE
Definition: stm32h723xx.h:19369
#define TIM_CR2_MMS
Definition: stm32h723xx.h:19261
#define TIM_CCR5_GC5C3
Definition: stm32h723xx.h:19749
#define TIM_DIER_CC4DE
Definition: stm32h723xx.h:19387
#define TIM_CR2_CCPC
Definition: stm32h723xx.h:19251
#define TIM_CCMR1_IC1F
Definition: stm32h723xx.h:19536
#define TIM_BDTR_OSSI
Definition: stm32h723xx.h:19777
#define TIM_BDTR_BK2BID
Definition: stm32h723xx.h:19818
#define TIM_CCMR1_IC1PSC
Definition: stm32h723xx.h:19530
#define TIM_CCMR1_OC1FE
Definition: stm32h723xx.h:19484
#define TIM_DCR_DBL
Definition: stm32h723xx.h:19832
#define TIM_DIER_UDE
Definition: stm32h723xx.h:19375
#define TIM_BDTR_DTG
Definition: stm32h723xx.h:19759
#define TIM_DCR_DBA
Definition: stm32h723xx.h:19823
#define TIM_SR_UIF
Definition: stm32h723xx.h:19398
#define TIM_CR1_CKD
Definition: stm32h723xx.h:19240
#define TIM_SR_CC4IF
Definition: stm32h723xx.h:19410
#define TIM_BDTR_BK2F
Definition: stm32h723xx.h:19799
#define TIM_CR1_DIR
Definition: stm32h723xx.h:19226
#define TIM_CR2_TI1S
Definition: stm32h723xx.h:19268
#define TIM_SR_CC6IF
Definition: stm32h723xx.h:19440
#define TIM_SR_CC3IF
Definition: stm32h723xx.h:19407
#define TIM_EGR_COMG
Definition: stm32h723xx.h:19463
#define TIM_CCR5_GC5C1
Definition: stm32h723xx.h:19743
#define TIM_CR2_CCDS
Definition: stm32h723xx.h:19257
#define TIM_DIER_COMIE
Definition: stm32h723xx.h:19366
#define TIM_DIER_CC1DE
Definition: stm32h723xx.h:19378
#define TIM_CR2_MMS2
Definition: stm32h723xx.h:19299
#define TIM_BDTR_BKF
Definition: stm32h723xx.h:19796
#define TIM_SMCR_ETF
Definition: stm32h723xx.h:19329
#define TIM_SR_SBIF
Definition: stm32h723xx.h:19443
#define TIM_SMCR_SMS
Definition: stm32h723xx.h:19308
#define TIM_SR_B2IF
Definition: stm32h723xx.h:19422
#define TIM_CR2_CCUS
Definition: stm32h723xx.h:19254
#define TIM_CR1_UIFREMAP
Definition: stm32h723xx.h:19246
#define TIM_SR_CC3OF
Definition: stm32h723xx.h:19431
#define TIM_BDTR_OSSR
Definition: stm32h723xx.h:19780
#define TIM_TISEL_TI2SEL
Definition: stm32h723xx.h:19947
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