FreeCalypso > hg > freecalypso-tools
diff loadtools/labaud.c @ 250:8c011177adb9
loadtools reworked to use factored-out libserial
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 21 Sep 2017 23:07:01 +0000 |
parents | e7502631a0f9 |
children |
line wrap: on
line diff
--- a/loadtools/labaud.c Thu Sep 21 21:49:07 2017 +0000 +++ b/loadtools/labaud.c Thu Sep 21 23:07:01 2017 +0000 @@ -5,9 +5,8 @@ #include <stdio.h> #include <stdlib.h> -#include <termios.h> #include <unistd.h> -#include "baudrate.h" +#include "../libserial/baudrate.h" extern int target_fd; extern struct baudrate *current_baud_rate; @@ -26,7 +25,7 @@ tpinterf_make_cmd(argv); if (tpinterf_send_cmd() < 0) return(-1); - switch_baud_rate(newbr); + set_serial_baudrate(newbr); usleep(150000); write(target_fd, &U, 1); return tpinterf_pass_output(1);