* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
+
+/**
+ * @file
+ * Holds driver for PRESTO programmer from ASIX.
+ * http://tools.asix.net/prg_presto.htm
+ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "windows.h"
#endif
-#include "interface.h"
-#include "time_support.h"
+#include <jtag/interface.h>
+#include <helper/time_support.h>
#include "bitq.h"
/* -------------------------------------------------------------------------- */
-static int presto_jtag_khz(int khz, int *jtag_speed)
+static int presto_adapter_khz(int khz, int *jtag_speed)
{
if (khz < 0)
{
static const struct command_registration presto_command_handlers[] = {
{
.name = "presto_serial",
- .handler = &presto_handle_serial_command,
+ .handler = presto_handle_serial_command,
.mode = COMMAND_CONFIG,
- .help = "configure serial port",
- .usage = "<devname>",
+ .help = "Configure USB serial number of Presto device.",
+ .usage = "serial_string",
},
COMMAND_REGISTRATION_DONE
};
}
LOG_INFO("PRESTO open, serial number '%s'", presto->serial);
- /* use JTAG speed setting from configuration file */
- presto_jtag_speed(jtag_get_speed());
-
bitq_interface = &presto_bitq;
return ERROR_OK;
}
}
struct jtag_interface presto_interface = {
- .name = "presto",
-
- .commands = presto_command_handlers,
-
- .execute_queue = &bitq_execute_queue,
- .speed = &presto_jtag_speed,
- .khz = &presto_jtag_khz,
- .speed_div = &presto_jtag_speed_div,
-
- .init = &presto_jtag_init,
- .quit = &presto_jtag_quit,
- };
+ .name = "presto",
+ .commands = presto_command_handlers,
+
+ .execute_queue = bitq_execute_queue,
+ .speed = presto_jtag_speed,
+ .khz = presto_adapter_khz,
+ .speed_div = presto_jtag_speed_div,
+ .init = presto_jtag_init,
+ .quit = presto_jtag_quit,
+};