|
|
@ -68,6 +68,18 @@ void PipetteModuleV2::initialize(int32_t id, config_t *config, hardward_config_t |
|
|
|
m_zm->getGState(); // 读取状态,清空下复位标识
|
|
|
|
module_active_cfg(); |
|
|
|
|
|
|
|
static ZGPIO PietteGunIO1; |
|
|
|
PietteGunIO1.initAsInput(PB1, ZGPIO::kMode_pullup, ZGPIO::kIRQ_noIrq, true); // lld输入高
|
|
|
|
|
|
|
|
m_smtp2.pump_set_io1_mode(2); // lld输入高
|
|
|
|
m_smtp2.pump_set_io1_state(0); |
|
|
|
osDelay(100); |
|
|
|
ZLOGI(TAG, "read io1 state:%d", PietteGunIO1.getState()); |
|
|
|
|
|
|
|
m_smtp2.pump_set_io1_state(1); // lld输入高
|
|
|
|
osDelay(100); |
|
|
|
ZLOGI(TAG, "read io1 state:%d", PietteGunIO1.getState()); |
|
|
|
m_smtp2.pump_set_io1_mode(0); // lld输入高
|
|
|
|
// m_smtp2.dumpparam();
|
|
|
|
} |
|
|
|
|
|
|
@ -131,8 +143,6 @@ int32_t PipetteModuleV2::module_active_cfg() { |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define XXX_STATE_REG(statekey, action) PROCESS_REG(statekey, action, ACTION_NONE)
|
|
|
|
|
|
|
|
int32_t PipetteModuleV2::module_set_reg(int32_t regindex, int32_t val) { |
|
|
|