brazos-trapezoidal
Macros
PWMDriver_prm.h File Reference

Header file for PWMDriver_prm.h.c. More...

#include "includes.h"
Include dependency graph for PWMDriver_prm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USE_TIM0
 
  • Defines the PWM timer
More...
 
#define PWM_TIM_SEL   eTim0
 
#define TIM   TIM0
 
#define PWM_CP_TIMER   CPWM0_CFG_TIM_SEL_TIM0
 
#define TIM_IRQ   TIM0_IRQn
 
#define TIM_IRQ_PRIOR   3
 
#define PWM_TIM_DIV   TIM_CFG_CLK_DIV_MUL1
 
  • Defines the PWM timer divider
More...
 
#define PWM_ADC_START_DELAY   140
 
  • PWM Pin configuration,
More...
 
#define PWM_HIGH_CHANNELS_ACTIVE_LEVEL   1
 
#define PWM_LOW_CHANNELS_ACTIVE_LEVEL   1
 
#define PWM_SEL_INTRNL_SHUTDOWN   1
 
#define PIN_OF_HIGHERS_PWM_IDLE_STATE   0 /* Upper side state when peripheral is disconnected from the pin */
 
#define PIN_OF_LOWERS_PWM_IDLE_STATE   0 /* Low side state when peripheral is disconnected from the pin */
 
#define SD_PIN_TYPE_DEF   OUTPUT_PUSHPULL
 
#define SD_PIN_INIT_STATE   1
 
#define PWM_TRANSMIT_AT_CREST   (1)
 
#define PWM_MTU_FREQUENCY   (40000000)
 
#define PWM_SD_PULSE_WIDTH_BASE250US   12
 
#define PWM_SHUTDOWN_ACTIVE_POLARITY   0
 
#define PWM_DIAG_TOTAL_SAMPLES_NR   25
 
#define PWM_DIAG_SAMPLES_4_DECISION   15
 
#define PWMU_HI   PIN_PR3
 
#define PWMU_LO   PIN_PR7
 
#define PWMV_HI   PIN_PR2
 
#define PWMV_LO   PIN_PR6
 
#define PWMW_HI   PIN_PR4
 
#define PWMW_LO   PIN_PR1
 
#define GD_EN   PIN_PR5
 
#define PWMU_LO_SET   PIN_PR7
 
#define PWMU_LO_CLR   ~PIN_PR7
 
#define PWMU_HI_SET   PIN_PR3
 
#define PWMU_HI_CLR   ~PIN_PR3
 
#define PWMV_LO_SET   PIN_PR6
 
#define PWMV_LO_CLR   ~PIN_PR6
 
#define PWMV_HI_SET   PIN_PR2
 
#define PWMV_HI_CLR   ~PIN_PR2
 
#define PWMW_LO_SET   PIN_PR1
 
#define PWMW_LO_CLR   ~PIN_PR1
 
#define PWMW_HI_SET   PIN_PR4
 
#define PWMW_HI_CLR   ~PIN_PR4
 
#define PWMU_HI_XBAR_CONFIG_PWM   XBAR_CTL_CFG_3
 
#define PWMU_LO_XBAR_CONFIG_PWM   XBAR_CTL_CFG_2
 
#define PWMV_HI_XBAR_CONFIG_PWM   XBAR_CTL_CFG_3
 
#define PWMV_LO_XBAR_CONFIG_PWM   XBAR_CTL_CFG_1
 
#define PWMW_HI_XBAR_CONFIG_PWM   XBAR_CTL_CFG_3
 
#define PWMW_LO_XBAR_CONFIG_PWM   XBAR_CTL_CFG_4
 
#define PWMU_HI_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO
 
#define PWMU_LO_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO
 
#define PWMV_HI_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO
 
#define PWMV_LO_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO
 
#define PWMW_HI_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO
 
#define PWMW_LO_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO
 
#define PWMW_GD_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO
 
#define PR_CFG_UVW_STATE_HI_DL_FL
 
#define PR_CFG_UVW_STATE_DH_LO_FL
 
#define PR_CFG_UVW_STATE_DH_FL_LO
 
#define PR_CFG_UVW_STATE_HI_FL_DL
 
#define PR_CFG_UVW_STATE_FL_HI_DL
 
#define PR_CFG_UVW_STATE_FL_DH_LO
 
#define PR_CFG_UVW_STATE_LO_DH_FL
 
#define PR_CFG_UVW_STATE_DL_HI_FL
 
#define PR_CFG_UVW_STATE_DL_FL_HI
 
#define PR_CFG_UVW_STATE_LO_FL_DH
 
#define PR_CFG_UVW_STATE_FL_LO_DH
 
#define PR_CFG_UVW_STATE_FL_DL_HI
 
#define PR_CFG_UVW_STATE_FL_FL_FL
 
#define PR_CFG_UVW_STATE_LO_LO_LO
 
#define GPIO_UVW_STATE_HI_DL_FL()
 
#define GPIO_UVW_STATE_DH_LO_FL()
 
#define GPIO_UVW_STATE_DH_FL_LO()
 
#define GPIO_UVW_STATE_HI_FL_DL()
 
#define GPIO_UVW_STATE_FL_HI_DL()
 
#define GPIO_UVW_STATE_FL_DH_LO()
 
#define GPIO_UVW_STATE_LO_DH_FL()
 
#define GPIO_UVW_STATE_DL_HI_FL()
 
#define GPIO_UVW_STATE_DL_FL_HI()
 
#define GPIO_UVW_STATE_LO_FL_DH()
 
#define GPIO_UVW_STATE_FL_LO_DH()
 
#define GPIO_UVW_STATE_FL_DL_HI()
 
#define GPIO_UVW_STATE_FL_FL_FL()
 
#define GPIO_UVW_STATE_LO_LO_LO()
 
#define TIMER_PIN
 
#define PWMU_HI_XBAR_POS   12
 
#define PWMU_LO_XBAR_POS   28
 
#define PWMV_HI_XBAR_POS   8
 
#define PWMV_LO_XBAR_POS   24
 
#define PWMW_HI_XBAR_POS   16
 
#define PWMW_LO_XBAR_POS   4
 
#define PWMW_GD_XBAR_POS   20
 
#define BUF_A   CPWM3->DATA_b.VAL_THRESHOLD
 
#define BUF_B   CPWM2->DATA_b.VAL_THRESHOLD
 
#define BUF_C   CPWM1->DATA_b.VAL_THRESHOLD
 
#define SRMCPWM__LOADALLPWMVALUES(pwm_a, pwm_b, pwm_c)   { BUF_A = (pwm_a); BUF_B = (pwm_b); BUF_C = (pwm_c);}
 
#define PWM__GETMAXPWM()   (TIM->PER)
 
#define PWM__GET_LOWERS_ON_PWM()   (TIM->PER)
 
#define PWM__LOADPWM_A(value)   { BUF_A = (value);}
 
#define PWM__LOADPWM_B(value)   { BUF_B = (value);}
 
#define PWM__LOADPWM_C(value)   { BUF_C = (value);}
 
#define PWM__GET_PWM_A()   ( BUF_A )
 
#define PWM__GET_PWM_B()   ( BUF_B )
 
#define PWM__GET_PWM_C()   ( BUF_C )
 
#define PWM_OUTPUT_OFF()   hw_tim_write_mode(TIM, TIM_CFG_MOD_NONE)
 
#define PWM_OUTPUT_ON()   hw_tim_write_mode(TIM, TIM_CFG_MOD_DIV_TRI)
 
#define PWM_TIMER_START()   hw_tim_write_mode(TIM, TIM_CFG_MOD_DIV_TRI)
 
#define PWM_TIMER_STOP()   hw_tim_write_mode(TIM, TIM_CFG_MOD_NONE)
 
#define PWM0_INTI_VALUE   0
 
  • PWM Initial value configuration,
More...
 
#define PWM1_INTI_VALUE   0
 
#define PWM2_INTI_VALUE   0
 
#define PWM3_INTI_VALUE   0
 
#define PWM_SHUTDOW_ENABLE   0
 
  • PWM Shutdown configuration,
More...
 
#define PWM_SHUTDOW_MASK
 
#define PWM_SHUTDOW_TRIGGER
 
#define PWM_SHUTDOW_SEL
 
#define PWM_SHUTDOW_LOW_VAL
 
#define PWM_SHUTDOW_HIGH_VAL
 
#define PWM_SHUTDOW_RESTART
 
#define PWM_SHUTDOW_INT_EN
 

Detailed Description

Header file for PWMDriver_prm.h.c.

Definition in file PWMDriver_prm.h.

Macro Definition Documentation

◆ BUF_A

#define BUF_A   CPWM3->DATA_b.VAL_THRESHOLD
  • CF2 *‍/

Definition at line 368 of file PWMDriver_prm.h.

◆ BUF_B

#define BUF_B   CPWM2->DATA_b.VAL_THRESHOLD

Definition at line 369 of file PWMDriver_prm.h.

◆ BUF_C

#define BUF_C   CPWM1->DATA_b.VAL_THRESHOLD

Definition at line 370 of file PWMDriver_prm.h.

◆ GD_EN

#define GD_EN   PIN_PR5

Definition at line 123 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_DH_FL_LO

#define GPIO_UVW_STATE_DH_FL_LO ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMW_LO_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMW_LO_SET|GD_EN),OUTPUT)

Definition at line 292 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_DH_LO_FL

#define GPIO_UVW_STATE_DH_LO_FL ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMV_LO_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMV_LO_SET|GD_EN),OUTPUT)

Definition at line 288 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_DL_FL_HI

#define GPIO_UVW_STATE_DL_FL_HI ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMW_HI_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMW_HI_SET|GD_EN),OUTPUT)

Definition at line 316 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_DL_HI_FL

#define GPIO_UVW_STATE_DL_HI_FL ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMV_HI_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMV_HI_SET|GD_EN),OUTPUT)

Definition at line 312 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_FL_DH_LO

#define GPIO_UVW_STATE_FL_DH_LO ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMW_LO_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMW_LO_SET|GD_EN),OUTPUT)

Definition at line 304 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_FL_DL_HI

#define GPIO_UVW_STATE_FL_DL_HI ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMW_HI_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMW_HI_SET|GD_EN),OUTPUT)

Definition at line 328 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_FL_FL_FL

#define GPIO_UVW_STATE_FL_FL_FL ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),OUTPUT)

Definition at line 332 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_FL_HI_DL

#define GPIO_UVW_STATE_FL_HI_DL ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMV_HI_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMV_HI_SET|GD_EN),OUTPUT)

Definition at line 300 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_FL_LO_DH

#define GPIO_UVW_STATE_FL_LO_DH ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMV_LO_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMV_LO_SET|GD_EN),OUTPUT)

Definition at line 324 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_HI_DL_FL

#define GPIO_UVW_STATE_HI_DL_FL ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMU_HI_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMU_HI_SET|GD_EN),OUTPUT)

Definition at line 284 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_HI_FL_DL

#define GPIO_UVW_STATE_HI_FL_DL ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMU_HI_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMU_HI_SET|GD_EN),OUTPUT)

Definition at line 296 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_LO_DH_FL

#define GPIO_UVW_STATE_LO_DH_FL ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMU_LO_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMU_LO_SET|GD_EN),OUTPUT)

Definition at line 308 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_LO_FL_DH

#define GPIO_UVW_STATE_LO_FL_DH ( )
Value:
gpio_clear(PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET);\
gpio_set(PWMU_LO_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),INPUT);\
gpio_control_cfg_dir((PWMU_LO_SET|GD_EN),OUTPUT)

Definition at line 320 of file PWMDriver_prm.h.

◆ GPIO_UVW_STATE_LO_LO_LO

#define GPIO_UVW_STATE_LO_LO_LO ( )
Value:
gpio_clear(PWMU_HI_SET|PWMV_HI_SET|PWMW_HI_SET);\
gpio_set(PWMU_LO_SET|PWMV_LO_SET|PWMW_LO_SET|GD_EN);\
gpio_control_cfg_dir((PWMU_HI_SET|PWMU_LO_SET|PWMV_HI_SET|PWMV_LO_SET|PWMW_HI_SET|PWMW_LO_SET),OUTPUT)

Definition at line 334 of file PWMDriver_prm.h.

◆ PIN_OF_HIGHERS_PWM_IDLE_STATE

#define PIN_OF_HIGHERS_PWM_IDLE_STATE   0 /* Upper side state when peripheral is disconnected from the pin */

Definition at line 95 of file PWMDriver_prm.h.

◆ PIN_OF_LOWERS_PWM_IDLE_STATE

#define PIN_OF_LOWERS_PWM_IDLE_STATE   0 /* Low side state when peripheral is disconnected from the pin */

Definition at line 96 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_DH_FL_LO

#define PR_CFG_UVW_STATE_DH_FL_LO
Value:
((PWMU_HI_XBAR_CONFIG_PWM<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 169 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_DH_LO_FL

#define PR_CFG_UVW_STATE_DH_LO_FL
Value:
((PWMU_HI_XBAR_CONFIG_PWM <<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 161 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_DL_FL_HI

#define PR_CFG_UVW_STATE_DL_FL_HI
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_PWM<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 217 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_DL_HI_FL

#define PR_CFG_UVW_STATE_DL_HI_FL
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_PWM<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 209 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_FL_DH_LO

#define PR_CFG_UVW_STATE_FL_DH_LO
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_PWM <<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 193 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_FL_DL_HI

#define PR_CFG_UVW_STATE_FL_DL_HI
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_PWM <<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 241 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_FL_FL_FL

#define PR_CFG_UVW_STATE_FL_FL_FL
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 249 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_FL_HI_DL

#define PR_CFG_UVW_STATE_FL_HI_DL
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_PWM <<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 185 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_FL_LO_DH

#define PR_CFG_UVW_STATE_FL_LO_DH
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_PWM<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 233 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_HI_DL_FL

#define PR_CFG_UVW_STATE_HI_DL_FL
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_PWM <<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 153 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_HI_FL_DL

#define PR_CFG_UVW_STATE_HI_FL_DL
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_PWM <<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 177 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_LO_DH_FL

#define PR_CFG_UVW_STATE_LO_DH_FL
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_PWM <<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 201 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_LO_FL_DH

#define PR_CFG_UVW_STATE_LO_FL_DH
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_PWM<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 225 of file PWMDriver_prm.h.

◆ PR_CFG_UVW_STATE_LO_LO_LO

#define PR_CFG_UVW_STATE_LO_LO_LO
Value:
((PWMU_HI_XBAR_CONFIG_GPIO<<PWMU_HI_XBAR_POS) | \
(PWMU_LO_XBAR_CONFIG_GPIO<<PWMU_LO_XBAR_POS) | \
(PWMV_HI_XBAR_CONFIG_GPIO<<PWMV_HI_XBAR_POS) | \
(PWMV_LO_XBAR_CONFIG_GPIO<<PWMV_LO_XBAR_POS) | \
(PWMW_HI_XBAR_CONFIG_GPIO<<PWMW_HI_XBAR_POS) | \
(PWMW_LO_XBAR_CONFIG_GPIO<<PWMW_LO_XBAR_POS) | \
(PWMW_GD_XBAR_CONFIG_GPIO<<PWMW_GD_XBAR_POS))

Definition at line 257 of file PWMDriver_prm.h.

◆ PWM0_INTI_VALUE

#define PWM0_INTI_VALUE   0

  • PWM Initial value configuration,

  • Parameters
    -PWM0_INTI_VALUE
    Note
    -

Definition at line 400 of file PWMDriver_prm.h.

◆ PWM1_INTI_VALUE

#define PWM1_INTI_VALUE   0

Definition at line 401 of file PWMDriver_prm.h.

◆ PWM2_INTI_VALUE

#define PWM2_INTI_VALUE   0

Definition at line 402 of file PWMDriver_prm.h.

◆ PWM3_INTI_VALUE

#define PWM3_INTI_VALUE   0

Definition at line 403 of file PWMDriver_prm.h.

◆ PWM__GET_LOWERS_ON_PWM

#define PWM__GET_LOWERS_ON_PWM ( )    (TIM->PER)

Definition at line 376 of file PWMDriver_prm.h.

◆ PWM__GET_PWM_A

#define PWM__GET_PWM_A ( )    ( BUF_A )

Definition at line 382 of file PWMDriver_prm.h.

◆ PWM__GET_PWM_B

#define PWM__GET_PWM_B ( )    ( BUF_B )

Definition at line 383 of file PWMDriver_prm.h.

◆ PWM__GET_PWM_C

#define PWM__GET_PWM_C ( )    ( BUF_C )

Definition at line 384 of file PWMDriver_prm.h.

◆ PWM__GETMAXPWM

#define PWM__GETMAXPWM ( )    (TIM->PER)

Definition at line 375 of file PWMDriver_prm.h.

◆ PWM__LOADPWM_A

#define PWM__LOADPWM_A (   value)    { BUF_A = (value);}

Definition at line 378 of file PWMDriver_prm.h.

◆ PWM__LOADPWM_B

#define PWM__LOADPWM_B (   value)    { BUF_B = (value);}

Definition at line 379 of file PWMDriver_prm.h.

◆ PWM__LOADPWM_C

#define PWM__LOADPWM_C (   value)    { BUF_C = (value);}

Definition at line 380 of file PWMDriver_prm.h.

◆ PWM_ADC_START_DELAY

#define PWM_ADC_START_DELAY   140

  • PWM Pin configuration,

  • Parameters
    -PWM0_HI, PWM0_LO, PWM1_HI, PWM1_LO, PWM2_HI, PWM2_LO, TIMER_PIN
    Note
    -

Definition at line 88 of file PWMDriver_prm.h.

◆ PWM_CP_TIMER

#define PWM_CP_TIMER   CPWM0_CFG_TIM_SEL_TIM0

Definition at line 40 of file PWMDriver_prm.h.

◆ PWM_DIAG_SAMPLES_4_DECISION

#define PWM_DIAG_SAMPLES_4_DECISION   15

Definition at line 110 of file PWMDriver_prm.h.

◆ PWM_DIAG_TOTAL_SAMPLES_NR

#define PWM_DIAG_TOTAL_SAMPLES_NR   25

Definition at line 109 of file PWMDriver_prm.h.

◆ PWM_HIGH_CHANNELS_ACTIVE_LEVEL

#define PWM_HIGH_CHANNELS_ACTIVE_LEVEL   1

Definition at line 90 of file PWMDriver_prm.h.

◆ PWM_LOW_CHANNELS_ACTIVE_LEVEL

#define PWM_LOW_CHANNELS_ACTIVE_LEVEL   1

Definition at line 91 of file PWMDriver_prm.h.

◆ PWM_MTU_FREQUENCY

#define PWM_MTU_FREQUENCY   (40000000)

Definition at line 102 of file PWMDriver_prm.h.

◆ PWM_OUTPUT_OFF

#define PWM_OUTPUT_OFF ( )    hw_tim_write_mode(TIM, TIM_CFG_MOD_NONE)

Definition at line 386 of file PWMDriver_prm.h.

◆ PWM_OUTPUT_ON

#define PWM_OUTPUT_ON ( )    hw_tim_write_mode(TIM, TIM_CFG_MOD_DIV_TRI)

Definition at line 387 of file PWMDriver_prm.h.

◆ PWM_SD_PULSE_WIDTH_BASE250US

#define PWM_SD_PULSE_WIDTH_BASE250US   12

Definition at line 105 of file PWMDriver_prm.h.

◆ PWM_SEL_INTRNL_SHUTDOWN

#define PWM_SEL_INTRNL_SHUTDOWN   1

Definition at line 93 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_ENABLE

#define PWM_SHUTDOW_ENABLE   0

  • PWM Shutdown configuration,

  • Parameters
    -PWM_SHUTDOW_MASK Define number of clock cycle in starting phase of PWM to mask shutdown input 0x00 no mask 0x01 1 cycle mask 0x02 2 cycle mask −−− −−−− 0xFF 255 cycle mask
    • PWM_SHUTDOW_TRIGGER PWM Shutdown trigger sel 0x0 = Low Level sensitive 0x1 = High Level sensitive 0x2 = Negative edge sensitive 0x3 = Positive edge sensitive
    • PWM_SHUTDOW_SEL PWM Asynchronous Shutdown signal source selection } 0x0 = Ext1 0x1 = Ext2 0x2 = COMP IN[1] 0x3 = COMP IN[0]
    • PWM_SHUTDOW_RESTART Control PWM restart mode from shutdown 0 = PWM will restart when the PWM_SHUTDOWN bit is cleared by writing a 1 1 = PWM will restart automatically upon the next PWM cycle. The STS register will automatically clear.
    • PWM_SHUTDOW_LOW_VAL Programmable shutdown value for PWM Low level
    • PWM_SHUTDOW_HIGH_VAL Programmable shutdown value for PWM High level
    • PWM_SHUTDOW_ENABLE PWM Shutdown mode enabled 0 = Disable 1 = Enable
    Note
    -

Definition at line 446 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_HIGH_VAL

#define PWM_SHUTDOW_HIGH_VAL

Definition at line 451 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_INT_EN

#define PWM_SHUTDOW_INT_EN

Definition at line 453 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_LOW_VAL

#define PWM_SHUTDOW_LOW_VAL

Definition at line 450 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_MASK

#define PWM_SHUTDOW_MASK

Definition at line 447 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_RESTART

#define PWM_SHUTDOW_RESTART

Definition at line 452 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_SEL

#define PWM_SHUTDOW_SEL

Definition at line 449 of file PWMDriver_prm.h.

◆ PWM_SHUTDOW_TRIGGER

#define PWM_SHUTDOW_TRIGGER

Definition at line 448 of file PWMDriver_prm.h.

◆ PWM_SHUTDOWN_ACTIVE_POLARITY

#define PWM_SHUTDOWN_ACTIVE_POLARITY   0

Definition at line 107 of file PWMDriver_prm.h.

◆ PWM_TIM_DIV

#define PWM_TIM_DIV   TIM_CFG_CLK_DIV_MUL1

  • Defines the PWM timer divider

  • Parameters
    -PWM_TIM_DIV
    • TIM_CFG_CLK_DIV_MUL2 !!If HSOSC 40MHz selected, this does not work
    • TIM_CFG_CLK_DIV_MUL1
    • TIM_CFG_CLK_DIV_DIV2
    • TIM_CFG_CLK_DIV_DIV4
    • TIM_CFG_CLK_DIV_DIV8
    • TIM_CFG_CLK_DIV_DIV16
    • TIM_CFG_CLK_DIV_DIV32
    • TIM_CFG_CLK_DIV_DIV64
    Note
    - Sysclock being used as Timer clock

Definition at line 75 of file PWMDriver_prm.h.

◆ PWM_TIM_SEL

#define PWM_TIM_SEL   eTim0

Definition at line 38 of file PWMDriver_prm.h.

◆ PWM_TIMER_START

#define PWM_TIMER_START ( )    hw_tim_write_mode(TIM, TIM_CFG_MOD_DIV_TRI)

Definition at line 388 of file PWMDriver_prm.h.

◆ PWM_TIMER_STOP

#define PWM_TIMER_STOP ( )    hw_tim_write_mode(TIM, TIM_CFG_MOD_NONE)

Definition at line 389 of file PWMDriver_prm.h.

◆ PWM_TRANSMIT_AT_CREST

#define PWM_TRANSMIT_AT_CREST   (1)

Definition at line 100 of file PWMDriver_prm.h.

◆ PWMU_HI

#define PWMU_HI   PIN_PR3

Definition at line 114 of file PWMDriver_prm.h.

◆ PWMU_HI_CLR

#define PWMU_HI_CLR   ~PIN_PR3

Definition at line 128 of file PWMDriver_prm.h.

◆ PWMU_HI_SET

#define PWMU_HI_SET   PIN_PR3

Definition at line 127 of file PWMDriver_prm.h.

◆ PWMU_HI_XBAR_CONFIG_GPIO

#define PWMU_HI_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO

Definition at line 145 of file PWMDriver_prm.h.

◆ PWMU_HI_XBAR_CONFIG_PWM

#define PWMU_HI_XBAR_CONFIG_PWM   XBAR_CTL_CFG_3

Definition at line 139 of file PWMDriver_prm.h.

◆ PWMU_HI_XBAR_POS

#define PWMU_HI_XBAR_POS   12

Definition at line 341 of file PWMDriver_prm.h.

◆ PWMU_LO

#define PWMU_LO   PIN_PR7

Definition at line 115 of file PWMDriver_prm.h.

◆ PWMU_LO_CLR

#define PWMU_LO_CLR   ~PIN_PR7

Definition at line 126 of file PWMDriver_prm.h.

◆ PWMU_LO_SET

#define PWMU_LO_SET   PIN_PR7

Definition at line 125 of file PWMDriver_prm.h.

◆ PWMU_LO_XBAR_CONFIG_GPIO

#define PWMU_LO_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO

Definition at line 146 of file PWMDriver_prm.h.

◆ PWMU_LO_XBAR_CONFIG_PWM

#define PWMU_LO_XBAR_CONFIG_PWM   XBAR_CTL_CFG_2

Definition at line 140 of file PWMDriver_prm.h.

◆ PWMU_LO_XBAR_POS

#define PWMU_LO_XBAR_POS   28

Definition at line 342 of file PWMDriver_prm.h.

◆ PWMV_HI

#define PWMV_HI   PIN_PR2

Definition at line 117 of file PWMDriver_prm.h.

◆ PWMV_HI_CLR

#define PWMV_HI_CLR   ~PIN_PR2

Definition at line 132 of file PWMDriver_prm.h.

◆ PWMV_HI_SET

#define PWMV_HI_SET   PIN_PR2

Definition at line 131 of file PWMDriver_prm.h.

◆ PWMV_HI_XBAR_CONFIG_GPIO

#define PWMV_HI_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO

Definition at line 147 of file PWMDriver_prm.h.

◆ PWMV_HI_XBAR_CONFIG_PWM

#define PWMV_HI_XBAR_CONFIG_PWM   XBAR_CTL_CFG_3

Definition at line 141 of file PWMDriver_prm.h.

◆ PWMV_HI_XBAR_POS

#define PWMV_HI_XBAR_POS   8

Definition at line 344 of file PWMDriver_prm.h.

◆ PWMV_LO

#define PWMV_LO   PIN_PR6

Definition at line 118 of file PWMDriver_prm.h.

◆ PWMV_LO_CLR

#define PWMV_LO_CLR   ~PIN_PR6

Definition at line 130 of file PWMDriver_prm.h.

◆ PWMV_LO_SET

#define PWMV_LO_SET   PIN_PR6

Definition at line 129 of file PWMDriver_prm.h.

◆ PWMV_LO_XBAR_CONFIG_GPIO

#define PWMV_LO_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO

Definition at line 148 of file PWMDriver_prm.h.

◆ PWMV_LO_XBAR_CONFIG_PWM

#define PWMV_LO_XBAR_CONFIG_PWM   XBAR_CTL_CFG_1

Definition at line 142 of file PWMDriver_prm.h.

◆ PWMV_LO_XBAR_POS

#define PWMV_LO_XBAR_POS   24

Definition at line 345 of file PWMDriver_prm.h.

◆ PWMW_GD_XBAR_CONFIG_GPIO

#define PWMW_GD_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO

Definition at line 151 of file PWMDriver_prm.h.

◆ PWMW_GD_XBAR_POS

#define PWMW_GD_XBAR_POS   20

Definition at line 350 of file PWMDriver_prm.h.

◆ PWMW_HI

#define PWMW_HI   PIN_PR4

Definition at line 120 of file PWMDriver_prm.h.

◆ PWMW_HI_CLR

#define PWMW_HI_CLR   ~PIN_PR4

Definition at line 136 of file PWMDriver_prm.h.

◆ PWMW_HI_SET

#define PWMW_HI_SET   PIN_PR4

Definition at line 135 of file PWMDriver_prm.h.

◆ PWMW_HI_XBAR_CONFIG_GPIO

#define PWMW_HI_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO

Definition at line 149 of file PWMDriver_prm.h.

◆ PWMW_HI_XBAR_CONFIG_PWM

#define PWMW_HI_XBAR_CONFIG_PWM   XBAR_CTL_CFG_3

Definition at line 143 of file PWMDriver_prm.h.

◆ PWMW_HI_XBAR_POS

#define PWMW_HI_XBAR_POS   16

Definition at line 347 of file PWMDriver_prm.h.

◆ PWMW_LO

#define PWMW_LO   PIN_PR1

Definition at line 121 of file PWMDriver_prm.h.

◆ PWMW_LO_CLR

#define PWMW_LO_CLR   ~PIN_PR1

Definition at line 134 of file PWMDriver_prm.h.

◆ PWMW_LO_SET

#define PWMW_LO_SET   PIN_PR1

Definition at line 133 of file PWMDriver_prm.h.

◆ PWMW_LO_XBAR_CONFIG_GPIO

#define PWMW_LO_XBAR_CONFIG_GPIO   XBAR_CTL_CFG_GPIO

Definition at line 150 of file PWMDriver_prm.h.

◆ PWMW_LO_XBAR_CONFIG_PWM

#define PWMW_LO_XBAR_CONFIG_PWM   XBAR_CTL_CFG_4

Definition at line 144 of file PWMDriver_prm.h.

◆ PWMW_LO_XBAR_POS

#define PWMW_LO_XBAR_POS   4

Definition at line 348 of file PWMDriver_prm.h.

◆ SD_PIN_INIT_STATE

#define SD_PIN_INIT_STATE   1

Definition at line 98 of file PWMDriver_prm.h.

◆ SD_PIN_TYPE_DEF

#define SD_PIN_TYPE_DEF   OUTPUT_PUSHPULL

Definition at line 97 of file PWMDriver_prm.h.

◆ SRMCPWM__LOADALLPWMVALUES

#define SRMCPWM__LOADALLPWMVALUES (   pwm_a,
  pwm_b,
  pwm_c 
)    { BUF_A = (pwm_a); BUF_B = (pwm_b); BUF_C = (pwm_c);}

Definition at line 373 of file PWMDriver_prm.h.

◆ TIM

#define TIM   TIM0

Definition at line 39 of file PWMDriver_prm.h.

◆ TIM_IRQ

#define TIM_IRQ   TIM0_IRQn

Definition at line 41 of file PWMDriver_prm.h.

◆ TIM_IRQ_PRIOR

#define TIM_IRQ_PRIOR   3

Definition at line 42 of file PWMDriver_prm.h.

◆ TIMER_PIN

#define TIMER_PIN

Definition at line 339 of file PWMDriver_prm.h.

◆ USE_TIM0

#define USE_TIM0

  • Defines the PWM timer


-----------------------------— Theta Power Systems - CONFIDENTIAL --------------------------------------—

  • Defines which timer will be used for the PWM output.
    Parameters
    -PWM_TIM_SEL eTim0 - GENERAL PURPOSE TIMER 0 eTim1 - GENERAL PURPOSE TIMER 1 eTim2 - GENERAL PURPOSE TIMER 2
    Note
    - 16-bit general purpose, using PWM0, 2 and 3

Definition at line 33 of file PWMDriver_prm.h.