Rtos code cntains bug possible incompatability with I2C

Fork of mbed-rtos by mbed official

unknown revision '2ad9b936dd37'