You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pinmux_config.rs
    path of file: ./repos/tock/chips/earlgrey/src
    
    the code of the file until where you have to start completion: // Licensed under the Apache License, Version 2.0 or the MIT License.
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Copyright Tock Contributors 2022.

//! Chip sepcific pinmux Configurations

use crate::pinmux::{SelectInput, SelectOutput};
use crate::registers::top_earlgrey::{
    MuxedPads, PinmuxInsel, PinmuxOutsel, PinmuxPeripheralIn, NUM_MIO_PADS,
};

/// Number of input se
    
    fn setup() {
        // setup pinmux input
        for index in 0..INPUT_NUM {
            if let Ok(peripheral) = PinmuxPeripheralIn::try_from(index as u32) {
                peripheral.connect_input(Self::INPUT[index]);
            }
        }
        // setup pinmux output
        for index in 0..OUTPUT_NUM {
            if let Ok(pad) = MuxedPads::try_from(index as u32) {
                pad.connect_output(Self::OUTPUT[index]);
            }
        }
    }