X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.c;h=9691b8f272cdacae08c38f3bc3f7b745a3da8f5c;hp=1616fdb63e5719f2ddac4682607614fff0c08db2;hb=ac6944cc82aecea8d6153ca0e5b1eba8612136b7;hpb=a87a0712f7166d3418a7b522b44ffbce97a93d50 diff --git a/src/ftdi.c b/src/ftdi.c index 1616fdb..9691b8f 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -1091,6 +1091,16 @@ static int ftdi_convert_baudrate(int baudrate, struct ftdi_context *ftdi, } /** + * @brief Wrapper function to export ftdi_convert_baudrate() to the unit test + * Do not use, it's only for the unit test framework + **/ +int convert_baudrate_UT_export(int baudrate, struct ftdi_context *ftdi, + unsigned short *value, unsigned short *index) +{ + return ftdi_convert_baudrate(baudrate, ftdi, value, index); +} + +/** Sets the chip baud rate \param ftdi pointer to ftdi_context