Topic: HardwareSoftwareInterface

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄