hosted: Add is_jtag to the info structure

Needed for different frequency setting procedures on some platforms.
This commit is contained in:
Uwe Bonnes 2020-11-29 12:04:57 +01:00
parent 28a966a3e6
commit de26ba6f73
2 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ typedef struct bmp_info_s {
char manufacturer[128];
char product[128];
char version[128];
bool is_jtag;
#if HOSTED_BMP_ONLY != 1
libusb_context *libusb_ctx;
struct ftdi_context *ftdic;

View File

@ -123,6 +123,7 @@ void platform_init(int argc, char **argv)
int platform_adiv5_swdp_scan(void)
{
info.is_jtag = false;
switch (info.bmp_type) {
case BMP_TYPE_BMP:
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)
{
info.is_jtag = true;
switch (info.bmp_type) {
case BMP_TYPE_BMP:
case BMP_TYPE_LIBFTDI: