Topic: HardwareSoftwareInterface
1. This code is Enable/Disable pwm control
(void)SCI_Call_Bsw_SetDigitalOutput( MOTOR_A_ACTIVE_UC, STD_HIGH);
2. #define MOTOR_A_ACTIVE_UC E_BSW_DO_Motor_A_1_active
3. Sci_IoHwAbMapping.cfg:
DIGITAL_OUTPUT_CFG ( E_BSW_DO_Motor_A_1_active , BSWIF_DO_MOTOR_A_1_ACTIVE )
4. Bswif.c
{BSWIF_DO_MOTOR_A_1_ACTIVE, SIGNAL_PORT_B_PIN_0 },
5. Signal_cfg.h
#define SIGNAL_PORT_B_PIN_0 PORT_B_PIN_0 /* TX CAN for hkmc */
6. port.h
#define PORT_B_PIN_0 16
SafetyObserver:
SCI_Call_Bsw_GetDigitalOutput(E_BSW_DO_Motor_A_1_active,&ms_Sob_RequiredPorts.b_SpindleMotorActive)
#define MOTOR_A_DIRECTION_UC E_BSW_DO_Motor_A_2_active
{BSWIF_DO_MOTOR_A_2_ACTIVE, SIGNAL_PORT_E_PIN_8 },
Motor_A_2_active_uC TP185
所有评论(0)