make twi library for M2, including m_twi.c and m_twi.h