#include "global.h" void OutputPinConfig(void); void InputPinConfig(void); byte_bits_t io_inputs_M_old[(INPUT_BITS_NUMBER + 7) >> 3]; //IO输入配置 void InputPinConfig(void) { unsigned short ch; int ch_num = START_ADDR_INPUT + INPUT_BITS_NUMBER; memcpy(io_inputs_M_old,&middle_coils[(START_ADDR_INPUT + 7) >> 3], ((INPUT_BITS_NUMBER + 7) >> 3)); for(ch=START_ADDR_INPUT; ch>3); for(ch=START_ADDR_OUTPUT; ch