Wrote C66x port of C interface