#pragma once

// convenience header to pick table or bit-by-bit impl
// this is not best way, longer term can add a feature macro to pick

#if BOARD_MSC == 3
    #if defined(PART_TM4C1290NCPDT)
        #include "table/crc-32c.h"
    #elif defined(PART_TM4C123GH6PM)
        #include "bit/crc-32c.h"
    #else
        #error "Unknown part"
    #endif
#elif BOARD_MPHOX == 1
    #if defined(PART_TM4C1290NCPDT)
        #include "table/crc-32c.h"
    #elif defined(PART_TM4C123GH6PM)
        #include "bit/crc-32c.h"
    #else
        #warning "MPHOX issue with table CRC -- Unknown part - using bit/crc-32c.h!!"
        #include "bit/crc-32c.h"
    #endif
#elif BOARD_NANOFET >= 1
    #warning NANOFET issue with table CRC - using bit/crc-32c.h!!
    #include "bit/crc-32c.h"
#elif BOARD_MFET >= 1
    #warning MFET issue with table CRC - using bit/crc-32c.h!!
    #include "bit/crc-32c.h"
#else
    #error "Unknown board"
#endif
