void red_extension_exit(void) { int i; for (i = 0; i < EXTENSION_NUM_MAX; i++) { switch (_red_extension_type[i]) { case EXTENSION_TYPE_RS485: red_rs485_extension_exit(); break; case EXTENSION_TYPE_ETHERNET: red_ethernet_extension_exit(); break; default: break; // Nothing to do here } _red_extension_type[i] = EXTENSION_TYPE_NONE; } }
void red_extension_exit(void) { int i; log_debug("Shutting down RED Brick Extension subsystem"); for (i = 0; i < EXTENSION_NUM_MAX; i++) { switch (_red_extension_type[i]) { case EXTENSION_TYPE_RS485: red_rs485_extension_exit(); break; case EXTENSION_TYPE_ETHERNET: red_ethernet_extension_exit(); break; default: break; // Nothing to do here } _red_extension_type[i] = EXTENSION_TYPE_NONE; } }