This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define TRISTAR_IIC_BUS 0 | |
#define CBTL1610_R 0x35 | |
#define CBTL1610_W 0x34 | |
void (*task_sleep)(uint64_t delay) = TARGET_BASEADDR + 0x1FFDC; | |
int (*iic_read)(int iic, uint8_t address, const void *send_data, size_t send_len, void *data, size_t len, uint8_t fmt) = TARGET_BASEADDR + 0xA008; | |
int (*iic_write)(int iic, uint8_t address, const void *data, size_t len) = TARGET_BASEADDR + 0xA168; | |
int (*tristar_write)(uint8_t reg, uint8_t value) = TARGET_BASEADDR + 0xD644; | |
int (*tristar_read)(uint8_t reg, uint8_t *data) = TARGET_BASEADDR + 0xD604; |