brazos-trapezoidal
SRMCPwm_mm_config.h
Go to the documentation of this file.
1
11#ifndef DRIVERS_SIM_SRMCPWM_MM_CONFIG_H_
12#define DRIVERS_SIM_SRMCPWM_MM_CONFIG_H_
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17 /*-------------------------------------------------------------*/
18 /* Includes and dependencies */
19 /*-------------------------------------------------------------*/
20
21 /*-------------------------------------------------------------*/
22 /* Typedefs enums & structs */
23 /*-------------------------------------------------------------*/
24
25 /*-------------------------------------------------------------*/
26 /* Macros and definitions */
27 /*-------------------------------------------------------------*/
28#if NUMBER_OF_MOTORS == 2
29#define PWM_INITIALIZE_FUNCTIONS {SRMCPwm__Initialize, SRMCPwm__Initialize2}
30#define PWM_LOWERON_FUNCTIONS {SRMCPwm__TurnOnLowSideGates, SRMCPwm__TurnOnLowSideGates2}
31#define PWM_LOADALL_FUNCTIONS {SRMCPwm__LoadAllPwmValues,SRMCPwm__LoadAllPwmValues2}
32#define PWM_DISABLE_FUNCTIONS {SRMCPwm__DisablePwmOutput, SRMCPwm__DisablePwmOutput2}
33#define PWM_ENABLE_FUNCTIONS {SRMCPwm__EnablePwmOutput, SRMCPwm__EnablePwmOutput2}
34#define PWM_GETMAXPWM_FUNCTIONS {SRMCPwm__GetMaxPwm, SRMCPwm__GetMaxPwm2}
35#else
36#define PWM_INITIALIZE_FUNCTIONS {SRMCPwm__Initialize}
37#define PWM_LOWERON_FUNCTIONS {SRMCPwm__TurnOnLowSideGates}
38#define PWM_LOADALL_FUNCTIONS {SRMCPwm__LoadAllPwmValues}
39#define PWM_DISABLE_FUNCTIONS {SRMCPwm__DisablePwmOutput}
40#define PWM_ENABLE_FUNCTIONS {SRMCPwm__EnablePwmOutput}
41#define PWM_GETMAXPWM_FUNCTIONS {SRMCPwm__GetMaxPwm}
42#endif
43 /*-------------------------------------------------------------*/
44 /* Functions prototypes */
45 /*-------------------------------------------------------------*/
46
47 /*-------------------------------------------------------------*/
48 /* Inline Functions */
49 /*-------------------------------------------------------------*/
50#ifdef __cplusplus
51 }
52#endif // C
53#endif /* DRIVERS_SIM_SRMCPWM_MM_CONFIG_H_ */