DragonProbe/bsp/default/i2c_tinyusb.c

37 lines
766 B
C
Raw Normal View History

2021-06-28 23:03:02 +00:00
// vim: set et:
#include "i2ctinyusb.h"
2021-06-28 23:03:02 +00:00
__attribute__((__const__)) enum ki2c_funcs i2ctu_get_func(void) { return 0; }
void i2ctu_init(void) { }
uint32_t i2ctu_set_freq(uint32_t freq, uint32_t us) {
2021-06-28 23:03:02 +00:00
(void)freq;
(void)us;
2021-06-28 23:03:02 +00:00
return 0;
}
2021-06-28 23:03:02 +00:00
enum itu_status i2ctu_write(enum ki2c_flags flags, enum itu_command startstopflags, uint16_t addr,
const uint8_t* buf, size_t len) {
(void)flags;
(void)startstopflags;
(void)addr;
(void)buf;
(void)len;
2021-06-28 23:03:02 +00:00
return ITU_STATUS_ADDR_NAK;
}
2021-06-28 23:03:02 +00:00
enum itu_status i2ctu_read(enum ki2c_flags flags, enum itu_command startstopflags, uint16_t addr,
uint8_t* buf, size_t len) {
(void)flags;
(void)startstopflags;
(void)addr;
(void)buf;
(void)len;
return ITU_STATUS_ADDR_NAK;
}