sam4s flash: fix PLLA frequency calculation if diva > 1
[openocd.git] / src / jtag / minidummy / jtag_minidriver.h
blobef6a50a1d6659d8207fed15557c39fa8722f5146
1 /***************************************************************************
2 * Copyright (C) 2007-2008 by Øyvind Harboe *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
18 ***************************************************************************/
20 static inline void interface_jtag_add_dr_out_core(struct jtag_tap *targettap,
21 int num_fields,
22 const int *num_bits,
23 const uint32_t *value,
24 enum tap_state end_state)
26 /* synchronously do the operation here */
29 static inline void interface_jtag_add_dr_out(struct jtag_tap *targettap,
30 int num_fields,
31 const int *num_bits,
32 const uint32_t *value,
33 enum tap_state end_state)
35 /* synchronously do the operation here */
38 #define interface_jtag_add_callback(callback, in) callback(in)
40 #define interface_jtag_add_callback4(callback, in, data1, data2, data3) \
41 jtag_set_error(callback(in, data1, data2, data3))