diff --git a/src/platforms/hosted/ftdi_bmp.h b/src/platforms/hosted/ftdi_bmp.h index 931b1aa..4ce9090 100644 --- a/src/platforms/hosted/ftdi_bmp.h +++ b/src/platforms/hosted/ftdi_bmp.h @@ -114,6 +114,8 @@ void libftdi_jtagtap_tdi_tdo_seq( bool libftdi_swd_possible(bool *do_mpsse, bool *direct_bb_swd) {return false;}; void libftdi_max_frequency_set(uint32_t freq) {}; uint32_t libftdi_max_frequency_get(void) {return 0;}; +void libftdi_srst_set_val(bool assert){}; +bool libftdi_srst_get_val(void) { return false}; # pragma GCC diagnostic pop #else #include @@ -134,6 +136,8 @@ void libftdi_jtagtap_tdi_tdo_seq( bool libftdi_swd_possible(bool *do_mpsse, bool *direct_bb_swd); void libftdi_max_frequency_set(uint32_t freq); uint32_t libftdi_max_frequency_get(void); +void libftdi_srst_set_val(bool assert); +bool libftdi_srst_get_val(void); #endif #define MPSSE_SK 1 diff --git a/src/platforms/hosted/platform.c b/src/platforms/hosted/platform.c index a408fde..df657d5 100644 --- a/src/platforms/hosted/platform.c +++ b/src/platforms/hosted/platform.c @@ -299,6 +299,8 @@ void platform_srst_set_val(bool assert) return remote_srst_set_val(assert); case BMP_TYPE_JLINK: return jlink_srst_set_val(&info, assert); + case BMP_TYPE_LIBFTDI: + return libftdi_srst_set_val(assert); default: break; } @@ -313,6 +315,8 @@ bool platform_srst_get_val(void) return stlink_srst_get_val(); case BMP_TYPE_JLINK: return jlink_srst_get_val(&info); + case BMP_TYPE_LIBFTDI: + return libftdi_srst_get_val(); default: break; }