|
@ -33,7 +33,6 @@ void StepMotorCtrlModule::initialize(int moduleid, IStepperMotor* stepM, ZGPIO i |
|
|
m_cfg = m_factory_config; |
|
|
m_cfg = m_factory_config; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
active_cfg(); |
|
|
active_cfg(); |
|
|
|
|
|
|
|
|
#if 0
|
|
|
#if 0
|
|
@ -760,7 +759,7 @@ int32_t StepMotorCtrlModule::module_xxx_reg(int32_t param_id, bool read, int32_t |
|
|
PROCESS_REG(kreg_stepmotor_ihold, REG_GET(m_param.ihold), REG_SET(m_param.ihold)); |
|
|
PROCESS_REG(kreg_stepmotor_ihold, REG_GET(m_param.ihold), REG_SET(m_param.ihold)); |
|
|
PROCESS_REG(kreg_stepmotor_irun, REG_GET(m_param.irun), REG_SET(m_param.irun)); |
|
|
PROCESS_REG(kreg_stepmotor_irun, REG_GET(m_param.irun), REG_SET(m_param.irun)); |
|
|
PROCESS_REG(kreg_stepmotor_iholddelay, REG_GET(m_param.iholddelay), REG_SET(m_param.iholddelay)); |
|
|
PROCESS_REG(kreg_stepmotor_iholddelay, REG_GET(m_param.iholddelay), REG_SET(m_param.iholddelay)); |
|
|
|
|
|
|
|
|
|
|
|
PROCESS_REG(kreg_module_input_state, module_readio(&val), ACTION_NONE); |
|
|
default: |
|
|
default: |
|
|
return err::kmodule_not_find_config_index; |
|
|
return err::kmodule_not_find_config_index; |
|
|
break; |
|
|
break; |
|
|