#define CC_RESET_N CP2101_GPIO_MASK(2)
/* painfully slow for now */
-#define CC_CLOCK_US (1000 * 1000)
+#define CC_CLOCK_US (1 * 1000)
struct ccdbg {
int fd;
#define CC_GET_CHIP_ID 0x68
/* ccdbg-command.c */
+void
+ccdbg_debug_mode(struct ccdbg *dbg);
+
void
ccdbg_reset(struct ccdbg *dbg);
uint8_t
ccdbg_rd_config(struct ccdbg *dbg);
+uint16_t
+ccdbg_get_chip_id(struct ccdbg *dbg);
+
/* ccdbg-io.c */
void
ccdbg_quarter_clock(struct ccdbg *dbg);
+void
+ccdbg_half_clock(struct ccdbg *dbg);
+
struct ccdbg *
ccdbg_open(char *file);