2009-04-27 19:35:31 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2009 by Simon Qian *
|
|
|
|
* SimonQian@SimonQian.com *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the *
|
|
|
|
* Free Software Foundation, Inc., *
|
2013-06-02 19:32:36 +00:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
|
2009-04-27 19:35:31 +00:00
|
|
|
***************************************************************************/
|
2012-02-05 12:03:04 +00:00
|
|
|
|
2009-04-27 19:35:31 +00:00
|
|
|
#ifndef AVRT_H
|
|
|
|
#define AVRT_H
|
|
|
|
|
2009-12-03 12:14:31 +00:00
|
|
|
#include <jtag/jtag.h>
|
2009-05-11 04:56:37 +00:00
|
|
|
|
2012-02-05 12:03:04 +00:00
|
|
|
struct mcu_jtag {
|
2009-11-13 11:19:35 +00:00
|
|
|
struct jtag_tap *tap;
|
2009-11-13 16:41:49 +00:00
|
|
|
};
|
2009-04-27 19:35:31 +00:00
|
|
|
|
2012-02-05 12:03:04 +00:00
|
|
|
struct avr_common {
|
2009-11-13 16:41:49 +00:00
|
|
|
struct mcu_jtag jtag_info;
|
2009-11-13 16:41:52 +00:00
|
|
|
};
|
2009-04-27 19:35:31 +00:00
|
|
|
|
2010-06-20 04:52:07 +00:00
|
|
|
int mcu_execute_queue(void);
|
|
|
|
int avr_jtag_sendinstr(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out);
|
|
|
|
int avr_jtag_senddat(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out,
|
|
|
|
int len);
|
|
|
|
|
2009-04-27 19:35:31 +00:00
|
|
|
#endif /* AVRT_H */
|