def GetSpiClockParameter(args):
    assert (args.spi_clock in SPI_CLOCK_LIST), ('Unsupported SPI clock speed %d MHz' % args.spi_clock)
    return SPI_CLOCK_LIST.index(args.spi_clock)
def GetSpiClockParameter(args):
    assert (args.spi_clock in SPI_CLOCK_LIST), ('Unsupported SPI clock speed %d MHz' % args.spi_clock)
    return SPI_CLOCK_LIST.index(args.spi_clock)