Simple "hello world" style program for X-NUCLEO-IKS01A1 MEMS Inertial

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 X_NUCLEO_IKS01A1 mbed

Fork of HelloWorld_IKS01A1 by ST

Embed: (wiki syntax)

« Back to documentation index

Clocks management functions

Clocks management functions
[TIM_Private_Functions]

Clocks management functions. More...

Functions

void TIM_InternalClockConfig (TIM_TypeDef *TIMx)
 Configures the TIMx internal Clock.
void TIM_ITRxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource)
 Configures the TIMx Internal Trigger as External Clock.
void TIM_TIxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_TIxExternalCLKSource, uint16_t TIM_ICPolarity, uint16_t ICFilter)
 Configures the TIMx Trigger as External Clock.
void TIM_ETRClockMode1Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter)
 Configures the External clock Mode1.
void TIM_ETRClockMode2Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter)
 Configures the External clock Mode2.

Detailed Description

Clocks management functions.

 ===============================================================================
                         Clocks management functions
 ===============================================================================  


Function Documentation

void TIM_ETRClockMode1Config ( TIM_TypeDef *  TIMx,
uint16_t  TIM_ExtTRGPrescaler,
uint16_t  TIM_ExtTRGPolarity,
uint16_t  ExtTRGFilter 
)

Configures the External clock Mode1.

Parameters:
TIMx,:where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescaler,:The external Trigger Prescaler. This parameter can be one of the following values:

  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarity,:The external Trigger Polarity. This parameter can be one of the following values:

  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilter,:External Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values:
None

Definition at line 2764 of file stm32f4xx_tim.c.

void TIM_ETRClockMode2Config ( TIM_TypeDef *  TIMx,
uint16_t  TIM_ExtTRGPrescaler,
uint16_t  TIM_ExtTRGPolarity,
uint16_t  ExtTRGFilter 
)

Configures the External clock Mode2.

Parameters:
TIMx,:where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescaler,:The external Trigger Prescaler. This parameter can be one of the following values:

  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarity,:The external Trigger Polarity. This parameter can be one of the following values:

  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilter,:External Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values:
None

Definition at line 2811 of file stm32f4xx_tim.c.

void TIM_InternalClockConfig ( TIM_TypeDef *  TIMx )

Configures the TIMx internal Clock.

Parameters:
TIMx,:where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
Return values:
None

Definition at line 2673 of file stm32f4xx_tim.c.

void TIM_ITRxExternalClockConfig ( TIM_TypeDef *  TIMx,
uint16_t  TIM_InputTriggerSource 
)

Configures the TIMx Internal Trigger as External Clock.

Parameters:
TIMx,:where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_InputTriggerSource,:Trigger source. This parameter can be one of the following values:

  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
Return values:
None

Definition at line 2694 of file stm32f4xx_tim.c.

void TIM_TIxExternalClockConfig ( TIM_TypeDef *  TIMx,
uint16_t  TIM_TIxExternalCLKSource,
uint16_t  TIM_ICPolarity,
uint16_t  ICFilter 
)

Configures the TIMx Trigger as External Clock.

Parameters:
TIMx,:where x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 to select the TIM peripheral.
TIM_TIxExternalCLKSource,:Trigger source. This parameter can be one of the following values:

  • TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector
  • TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1
  • TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2
TIM_ICPolarity,:specifies the TIx Polarity. This parameter can be one of the following values:

  • TIM_ICPolarity_Rising
  • TIM_ICPolarity_Falling
ICFilter,:specifies the filter value. This parameter must be a value between 0x0 and 0xF.
Return values:
None

Definition at line 2724 of file stm32f4xx_tim.c.