Random hacking
[fw/altos] / ccdbg.h
diff --git a/ccdbg.h b/ccdbg.h
index 32283c0d8e09527c74f6df6814555d3538c34d67..2085cbe05098def39ea9ce2407cf4f08bb9730f9 100644 (file)
--- a/ccdbg.h
+++ b/ccdbg.h
@@ -37,7 +37,7 @@
 #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;
@@ -80,6 +80,9 @@ struct ccdbg {
 #define CC_GET_CHIP_ID         0x68
 
 /* ccdbg-command.c */
+void
+ccdbg_debug_mode(struct ccdbg *dbg);
+
 void
 ccdbg_reset(struct ccdbg *dbg);
 
@@ -89,10 +92,16 @@ ccdbg_read_status(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);