NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
timer_stm32f30x.c File Reference
#include "stm32f30x.h"
Include dependency graph for timer_stm32f30x.c:

Macros

#define CCMR_OFFSET   ((uint16_t)0x0018)
 Selects the TIM Output Compare Mode. More...
 
#define CCMR_OC13M_MASK   ((uint32_t)0xFFFEFF8F)
 
#define CCMR_OC24M_MASK   ((uint32_t)0xFEFF8FFF)
 

Macro Definition Documentation

#define CCMR_OC13M_MASK   ((uint32_t)0xFFFEFF8F)
#define CCMR_OC24M_MASK   ((uint32_t)0xFEFF8FFF)
#define CCMR_OFFSET   ((uint16_t)0x0018)

Selects the TIM Output Compare Mode.

Note
This function does NOT disable the selected channel before changing the Output Compare Mode. If needed, user has to enable this channel using TIM_CCxCmd() and TIM_CCxNCmd() functions.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
  • TIM_Channel_4: TIM Channel 4
TIM_OCModespecifies the TIM Output Compare Mode. This parameter can be one of the following values:
  • TIM_OCMode_Timing
  • TIM_OCMode_Active
  • TIM_OCMode_Toggle
  • TIM_OCMode_PWM1
  • TIM_OCMode_PWM2
  • TIM_ForcedAction_Active
  • TIM_ForcedAction_InActive
  • TIM_OCMode_Retrigerrable_OPM1
  • TIM_OCMode_Retrigerrable_OPM2
  • TIM_OCMode_Combined_PWM1
  • TIM_OCMode_Combined_PWM2
  • TIM_OCMode_Asymmetric_PWM1
  • TIM_OCMode_Asymmetric_PWM2
Return values
None