Hi weiqi ran
Could you clarify more detailed your issue? are you merging a freertos project with the i2c_pal drivers? how are you doing this and what files are you changing?
The i2c_pal project and the lpi2c_drivers were created using the osif abstraction, not the freertos, so you would need to do all those changes in the driver.
Best regards
Jorge Alcala