X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Fftdi.c;h=9691b8f272cdacae08c38f3bc3f7b745a3da8f5c;hb=ac6944cc82aecea8d6153ca0e5b1eba8612136b7;hp=1616fdb63e5719f2ddac4682607614fff0c08db2;hpb=44f41f11993945b0129741e39cef96d9f9cf10b6;p=libftdi 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