summaryrefslogtreecommitdiff
path: root/ccdbg.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-11-28 22:57:07 -0800
committerKeith Packard <keithp@keithp.com>2008-11-28 22:57:07 -0800
commit39801e6e9fb9388072ee414a447f74095a6ac960 (patch)
treef777ceba4c832a0bdc1a811c39109e5710a36729 /ccdbg.h
parent01cb2799875e086ee6096627c058ee235bbc33d5 (diff)
Random hacking
Diffstat (limited to 'ccdbg.h')
-rw-r--r--ccdbg.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ccdbg.h b/ccdbg.h
index 32283c0d..2085cbe0 100644
--- 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;
@@ -81,6 +81,9 @@ struct ccdbg {
/* ccdbg-command.c */
void
+ccdbg_debug_mode(struct ccdbg *dbg);
+
+void
ccdbg_reset(struct ccdbg *dbg);
uint8_t
@@ -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);