You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
252 B
C

#include "p_i2c.h"
void p_i2c_init(void)
{
i2c_m_sync_enable(&I2C_0);
}
int p_i2c_write(const uint8_t* const data, uint16_t data_len)
{
io_write(&I2C_0.io, data, data_len);
return 0;
}
int p_i2c_read(uint8_t* data, uint16_t len)
{
return 0;
}