diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-18 12:14:01 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-18 12:14:01 +0000 |
commit | bb5086b83e098ea9839c4d44b486dacdd11da8d3 (patch) | |
tree | e45cb1496cb2378bce9a09e108c0c3fef159ea12 /src/jtag/jtag.h | |
parent | 7b4428df971378bfc4d762595cdb0e205626eaa9 (diff) |
Jonas Horberg [jhorberg@sauer-danfoss.com]
Change jtag_rclk behaviour so it can be called before the interface init function
git-svn-id: svn://svn.berlios.de/openocd/trunk@2590 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r-- | src/jtag/jtag.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index 3c6c5ce2..37a90b19 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -252,13 +252,16 @@ int jtag_get_speed_readable(int *speed); * @returns ERROR_OK during configuration or on success, or an error * code returned from the interface @c speed callback. */ -int jtag_set_speed(int speed); +int jtag_config_speed(int speed); /// Attempt to configure the interface for the specified KHz. int jtag_config_khz(unsigned khz); -/// Set the clock speed of the JTAG interface in KHz. -void jtag_set_speed_khz(unsigned speed); +/** + * Attempt to enable RTCK/RCLK. If that fails, fallback to the + * specified frequency. + */ +int jtag_config_rclk(unsigned fallback_speed_khz); /// Retreives the clock speed of the JTAG interface in KHz. unsigned jtag_get_speed_khz(void); |