Copy of feature_clock_mode.c to begin dev