hosted: Add is_jtag to the info structure
Needed for different frequency setting procedures on some platforms.
This commit is contained in:
parent
28a966a3e6
commit
de26ba6f73
@ -31,6 +31,7 @@ typedef struct bmp_info_s {
|
|||||||
char manufacturer[128];
|
char manufacturer[128];
|
||||||
char product[128];
|
char product[128];
|
||||||
char version[128];
|
char version[128];
|
||||||
|
bool is_jtag;
|
||||||
#if HOSTED_BMP_ONLY != 1
|
#if HOSTED_BMP_ONLY != 1
|
||||||
libusb_context *libusb_ctx;
|
libusb_context *libusb_ctx;
|
||||||
struct ftdi_context *ftdic;
|
struct ftdi_context *ftdic;
|
||||||
|
@ -123,6 +123,7 @@ void platform_init(int argc, char **argv)
|
|||||||
|
|
||||||
int platform_adiv5_swdp_scan(void)
|
int platform_adiv5_swdp_scan(void)
|
||||||
{
|
{
|
||||||
|
info.is_jtag = false;
|
||||||
switch (info.bmp_type) {
|
switch (info.bmp_type) {
|
||||||
case BMP_TYPE_BMP:
|
case BMP_TYPE_BMP:
|
||||||
case BMP_TYPE_LIBFTDI:
|
case BMP_TYPE_LIBFTDI:
|
||||||
@ -187,6 +188,7 @@ void platform_add_jtag_dev(int i, const jtag_dev_t *jtag_dev)
|
|||||||
|
|
||||||
int platform_jtag_scan(const uint8_t *lrlens)
|
int platform_jtag_scan(const uint8_t *lrlens)
|
||||||
{
|
{
|
||||||
|
info.is_jtag = true;
|
||||||
switch (info.bmp_type) {
|
switch (info.bmp_type) {
|
||||||
case BMP_TYPE_BMP:
|
case BMP_TYPE_BMP:
|
||||||
case BMP_TYPE_LIBFTDI:
|
case BMP_TYPE_LIBFTDI:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user