| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros
TIMER PWM Exported Constants
Standard Driver » TIMER PWM Driver

## Macros
#define | TPWM_CH0
#define | TPWM_CH1
#define | TPWM_UP_COUNT
#define | TPWM_DOWN_COUNT
#define | TPWM_UP_DOWN_COUNT
#define | TPWM_AUTO_RELOAD_MODE
#define | TPWM_ONE_SHOT_MODE
#define | TPWM_OUTPUT_TOGGLE
#define | TPWM_OUTPUT_NOTHING
#define | TPWM_OUTPUT_LOW
#define | TPWM_OUTPUT_HIGH
#define | TPWM_TRIGGER_ADC_AT_ZERO_POINT
#define | TPWM_TRIGGER_ADC_AT_PERIOD_POINT
#define | TPWM_TRIGGER_ADC_AT_ZERO_OR_PERIOD_POINT
#define | TPWM_TRIGGER_ADC_AT_COMPARE_UP_COUNT_POINT
#define | TPWM_TRIGGER_ADC_AT_COMPARE_DOWN_COUNT_POINT
#define | TPWM_BRAKE_SOURCE_EDGE_ACMP0
#define | TPWM_BRAKE_SOURCE_EDGE_ACMP1
#define | TPWM_BRAKE_SOURCE_EDGE_BKPIN
#define | TPWM_BRAKE_SOURCE_EDGE_SYS_CSS
#define | TPWM_BRAKE_SOURCE_EDGE_SYS_BOD
#define | TPWM_BRAKE_SOURCE_EDGE_SYS_COR
#define | TPWM_BRAKE_SOURCE_EDGE_SYS_RAM
#define | TPWM_BRAKE_SOURCE_LEVEL_ACMP0
#define | TPWM_BRAKE_SOURCE_LEVEL_ACMP1
#define | TPWM_BRAKE_SOURCE_LEVEL_BKPIN
#define | TPWM_BRAKE_SOURCE_LEVEL_SYS_CSS
#define | TPWM_BRAKE_SOURCE_LEVEL_SYS_BOD
#define | TPWM_BRAKE_SOURCE_LEVEL_SYS_COR
#define | TPWM_BRAKE_SOURCE_LEVEL_SYS_RAM
#define | TPWM_BRAKE_EDGE
#define | TPWM_BRAKE_LEVEL
#define | TPWM_LOAD_MODE_PERIOD
#define | TPWM_LOAD_MODE_IMMEDIATE
#define | TPWM_LOAD_MODE_CENTER
#define | TPWM_BKP_DBCLK_PCLK_DIV_1
#define | TPWM_BKP_DBCLK_PCLK_DIV_2
#define | TPWM_BKP_DBCLK_PCLK_DIV_4
#define | TPWM_BKP_DBCLK_PCLK_DIV_8
#define | TPWM_BKP_DBCLK_PCLK_DIV_16
#define | TPWM_BKP_DBCLK_PCLK_DIV_32
#define | TPWM_BKP_DBCLK_PCLK_DIV_64
#define | TPWM_BKP_DBCLK_PCLK_DIV_128
#define | TPWM_TM_BRAKE0
#define | TPWM_TM_BRAKE1
#define | TPWM_TM_BRAKE2
#define | TPWM_TM_BRAKE3
#define | TPWM_CNTR_CLKSRC_TMR_CLK
#define | TPWM_CNTR_CLKSRC_TIMER0_INT
#define | TPWM_CNTR_CLKSRC_TIMER1_INT
#define | TPWM_CNTR_CLKSRC_TIMER2_INT
#define | TPWM_CNTR_CLKSRC_TIMER3_INT
#define | TPWM_CNTR_SYNC_DISABLE
#define | TPWM_CNTR_SYNC_START_BY_TIMER0
#define | TPWM_CNTR_SYNC_CLEAR_BY_TIMER0
#define | TPWM_CNTR_SYNC_START_BY_TIMER2
#define | TPWM_CNTR_SYNC_CLEAR_BY_TIMER2

## Detailed Description

## Macro Definition Documentation

## ◆ TPWM_AUTO_RELOAD_MODE

#define TPWM_AUTO_RELOAD_MODE

Auto-reload mode

Definition at line 45 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_1

#define TPWM_BKP_DBCLK_PCLK_DIV_1

De-bounce clock is PCLK divide by 1

Definition at line 98 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_128

#define TPWM_BKP_DBCLK_PCLK_DIV_128

De-bounce clock is PCLK divide by 128

Definition at line 105 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_16

#define TPWM_BKP_DBCLK_PCLK_DIV_16

De-bounce clock is PCLK divide by 16

Definition at line 102 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_2

#define TPWM_BKP_DBCLK_PCLK_DIV_2

De-bounce clock is PCLK divide by 2

Definition at line 99 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_32

#define TPWM_BKP_DBCLK_PCLK_DIV_32

De-bounce clock is PCLK divide by 32

Definition at line 103 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_4

#define TPWM_BKP_DBCLK_PCLK_DIV_4

De-bounce clock is PCLK divide by 4

Definition at line 100 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_64

#define TPWM_BKP_DBCLK_PCLK_DIV_64

De-bounce clock is PCLK divide by 64

Definition at line 104 of file timer_pwm.h.

## ◆ TPWM_BKP_DBCLK_PCLK_DIV_8

#define TPWM_BKP_DBCLK_PCLK_DIV_8

De-bounce clock is PCLK divide by 8

Definition at line 101 of file timer_pwm.h.

## ◆ TPWM_BRAKE_EDGE

#define TPWM_BRAKE_EDGE

Edge-detect fault brake

Definition at line 85 of file timer_pwm.h.

## ◆ TPWM_BRAKE_LEVEL

#define TPWM_BRAKE_LEVEL

Level-detect fault brake

Definition at line 86 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_EDGE_ACMP0

#define TPWM_BRAKE_SOURCE_EDGE_ACMP0

Comparator 0 as edge-detect fault brake source

Definition at line 68 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_EDGE_ACMP1

#define TPWM_BRAKE_SOURCE_EDGE_ACMP1

Comparator 1 as edge-detect fault brake source

Definition at line 69 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_EDGE_BKPIN

#define TPWM_BRAKE_SOURCE_EDGE_BKPIN

Brake pin as edge-detect fault brake source

Definition at line 70 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_EDGE_SYS_BOD

#define TPWM_BRAKE_SOURCE_EDGE_SYS_BOD

System fail condition: brown-out detection as edge-detect fault brake source

Definition at line 72 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_EDGE_SYS_COR

#define TPWM_BRAKE_SOURCE_EDGE_SYS_COR

System fail condition: core lockup detection as edge-detect fault brake source

Definition at line 73 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_EDGE_SYS_CSS

#define TPWM_BRAKE_SOURCE_EDGE_SYS_CSS

System fail condition: clock security system detection as edge-detect fault brake source

Definition at line 71 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_EDGE_SYS_RAM

#define TPWM_BRAKE_SOURCE_EDGE_SYS_RAM

System fail condition: SRAM parity error detection as edge-detect fault brake source

Definition at line 74 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_LEVEL_ACMP0

#define TPWM_BRAKE_SOURCE_LEVEL_ACMP0

Comparator 0 as level-detect fault brake source

Definition at line 77 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_LEVEL_ACMP1

#define TPWM_BRAKE_SOURCE_LEVEL_ACMP1

Comparator 1 as level-detect fault brake source

Definition at line 78 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_LEVEL_BKPIN

#define TPWM_BRAKE_SOURCE_LEVEL_BKPIN

Brake pin as level-detect fault brake source

Definition at line 79 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_LEVEL_SYS_BOD

#define TPWM_BRAKE_SOURCE_LEVEL_SYS_BOD

System fail condition: brown-out detection as level-detect fault brake source

Definition at line 81 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_LEVEL_SYS_COR

#define TPWM_BRAKE_SOURCE_LEVEL_SYS_COR

System fail condition: core lockup detection as level-detect fault brake source

Definition at line 82 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_LEVEL_SYS_CSS

#define TPWM_BRAKE_SOURCE_LEVEL_SYS_CSS

System fail condition: clock security system detection as level-detect fault brake source

Definition at line 80 of file timer_pwm.h.

## ◆ TPWM_BRAKE_SOURCE_LEVEL_SYS_RAM

#define TPWM_BRAKE_SOURCE_LEVEL_SYS_RAM

System fail condition: SRAM parity error detection as level-detect fault brake source

Definition at line 83 of file timer_pwm.h.

## ◆ TPWM_CH0

#define TPWM_CH0

Indicate PWMx_CH0

Definition at line 32 of file timer_pwm.h.

## ◆ TPWM_CH1

#define TPWM_CH1

Indicate PWMx_CH1

Definition at line 33 of file timer_pwm.h.

## ◆ TPWM_CNTR_CLKSRC_TIMER0_INT

#define TPWM_CNTR_CLKSRC_TIMER0_INT

Timer PWM Clock source selects to TIMER0 interrupt event

Definition at line 119 of file timer_pwm.h.

## ◆ TPWM_CNTR_CLKSRC_TIMER1_INT

#define TPWM_CNTR_CLKSRC_TIMER1_INT

Timer PWM Clock source selects to TIMER1 interrupt event

Definition at line 120 of file timer_pwm.h.

## ◆ TPWM_CNTR_CLKSRC_TIMER2_INT

#define TPWM_CNTR_CLKSRC_TIMER2_INT

Timer PWM Clock source selects to TIMER2 interrupt event

Definition at line 121 of file timer_pwm.h.

## ◆ TPWM_CNTR_CLKSRC_TIMER3_INT

#define TPWM_CNTR_CLKSRC_TIMER3_INT

Timer PWM Clock source selects to TIMER3 interrupt event

Definition at line 122 of file timer_pwm.h.

## ◆ TPWM_CNTR_CLKSRC_TMR_CLK

#define TPWM_CNTR_CLKSRC_TMR_CLK

Timer PWM Clock source selects to TMR_CLK

Definition at line 118 of file timer_pwm.h.

## ◆ TPWM_CNTR_SYNC_CLEAR_BY_TIMER0

#define TPWM_CNTR_SYNC_CLEAR_BY_TIMER0

PWM counter synchronous clear by TIMER0 PWM

Definition at line 129 of file timer_pwm.h.

## ◆ TPWM_CNTR_SYNC_CLEAR_BY_TIMER2

#define TPWM_CNTR_SYNC_CLEAR_BY_TIMER2

PWM counter synchronous clear by TIMER2 PWM

Definition at line 131 of file timer_pwm.h.

## ◆ TPWM_CNTR_SYNC_DISABLE

#define TPWM_CNTR_SYNC_DISABLE

Disable TIMER PWM synchronous function

Definition at line 127 of file timer_pwm.h.

## ◆ TPWM_CNTR_SYNC_START_BY_TIMER0

#define TPWM_CNTR_SYNC_START_BY_TIMER0

PWM counter synchronous start by TIMER0 PWM

Definition at line 128 of file timer_pwm.h.

## ◆ TPWM_CNTR_SYNC_START_BY_TIMER2

#define TPWM_CNTR_SYNC_START_BY_TIMER2

PWM counter synchronous start by TIMER2 PWM

Definition at line 130 of file timer_pwm.h.

## ◆ TPWM_DOWN_COUNT

#define TPWM_DOWN_COUNT

Down count type

Definition at line 39 of file timer_pwm.h.

## ◆ TPWM_LOAD_MODE_CENTER

#define TPWM_LOAD_MODE_CENTER

Timer PWM center load mode

Definition at line 93 of file timer_pwm.h.

## ◆ TPWM_LOAD_MODE_IMMEDIATE

#define TPWM_LOAD_MODE_IMMEDIATE

Timer PWM immediately load mode

Definition at line 92 of file timer_pwm.h.

## ◆ TPWM_LOAD_MODE_PERIOD

#define TPWM_LOAD_MODE_PERIOD

Timer PWM period load mode

Definition at line 91 of file timer_pwm.h.

## ◆ TPWM_ONE_SHOT_MODE

#define TPWM_ONE_SHOT_MODE

One-shot mode

Definition at line 46 of file timer_pwm.h.

## ◆ TPWM_OUTPUT_HIGH

#define TPWM_OUTPUT_HIGH

Timer PWM output high

Definition at line 54 of file timer_pwm.h.

## ◆ TPWM_OUTPUT_LOW

#define TPWM_OUTPUT_LOW

Timer PWM output low

Definition at line 53 of file timer_pwm.h.

## ◆ TPWM_OUTPUT_NOTHING

#define TPWM_OUTPUT_NOTHING

Timer PWM output nothing

Definition at line 52 of file timer_pwm.h.

## ◆ TPWM_OUTPUT_TOGGLE

#define TPWM_OUTPUT_TOGGLE

Timer PWM output toggle

Definition at line 51 of file timer_pwm.h.

## ◆ TPWM_TM_BRAKE0

#define TPWM_TM_BRAKE0

Brake pin source comes from TM_BRAKE0

Definition at line 110 of file timer_pwm.h.

## ◆ TPWM_TM_BRAKE1

#define TPWM_TM_BRAKE1

Brake pin source comes from TM_BRAKE1

Definition at line 111 of file timer_pwm.h.

## ◆ TPWM_TM_BRAKE2

#define TPWM_TM_BRAKE2

Brake pin source comes from TM_BRAKE2

Definition at line 112 of file timer_pwm.h.

## ◆ TPWM_TM_BRAKE3

#define TPWM_TM_BRAKE3

Brake pin source comes from TM_BRAKE3

Definition at line 113 of file timer_pwm.h.

## ◆ TPWM_TRIGGER_ADC_AT_COMPARE_DOWN_COUNT_POINT

#define TPWM_TRIGGER_ADC_AT_COMPARE_DOWN_COUNT_POINT

Timer PWM trigger ADC while counter down count compare point event occurred

Definition at line 63 of file timer_pwm.h.

## ◆ TPWM_TRIGGER_ADC_AT_COMPARE_UP_COUNT_POINT

#define TPWM_TRIGGER_ADC_AT_COMPARE_UP_COUNT_POINT

Timer PWM trigger ADC while counter up count compare point event occurred

Definition at line 62 of file timer_pwm.h.

## ◆ TPWM_TRIGGER_ADC_AT_PERIOD_POINT

#define TPWM_TRIGGER_ADC_AT_PERIOD_POINT

Timer PWM trigger ADC while counter period point event occurred

Definition at line 60 of file timer_pwm.h.

## ◆ TPWM_TRIGGER_ADC_AT_ZERO_OR_PERIOD_POINT

#define TPWM_TRIGGER_ADC_AT_ZERO_OR_PERIOD_POINT

Timer PWM trigger ADC while counter zero or period point event occurred

Definition at line 61 of file timer_pwm.h.

## ◆ TPWM_TRIGGER_ADC_AT_ZERO_POINT

#define TPWM_TRIGGER_ADC_AT_ZERO_POINT

Timer PWM trigger ADC while counter zero point event occurred

Definition at line 59 of file timer_pwm.h.

## ◆ TPWM_UP_COUNT

#define TPWM_UP_COUNT

Up count type

Definition at line 38 of file timer_pwm.h.

## ◆ TPWM_UP_DOWN_COUNT

#define TPWM_UP_DOWN_COUNT

Up-Down count type

Definition at line 40 of file timer_pwm.h.