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

转载于:https://www.cnblogs.com/dannykong/p/10844765.html

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐