avr-equeue

changeset 2:9b7983ee2a89 tip

changed the baud rate to 38400
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Jul 2014 02:42:47 +0300
parents 9cb1db5d0e7c
children
files equeue.c serial.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/equeue.c	Sun Jul 13 12:18:14 2014 +0300
     1.2 +++ b/equeue.c	Tue Jul 15 02:42:47 2014 +0300
     1.3 @@ -40,7 +40,7 @@
     1.4  int com_issue_pending, com_cust_pending;
     1.5  int report_inputs;
     1.6  
     1.7 -#define MAX_INPUT_SIZE	256
     1.8 +#define MAX_INPUT_SIZE	128
     1.9  char input[MAX_INPUT_SIZE];
    1.10  int inp_cidx;
    1.11  
     2.1 --- a/serial.c	Sun Jul 13 12:18:14 2014 +0300
     2.2 +++ b/serial.c	Tue Jul 15 02:42:47 2014 +0300
     2.3 @@ -12,7 +12,7 @@
     2.4  #include <avr/interrupt.h>
     2.5  #include <avr/power.h>
     2.6  
     2.7 -#define BAUD		9600
     2.8 +#define BAUD		38400
     2.9  #define UBRR_VAL	(F_CLK / 16 / BAUD - 1)
    2.10  
    2.11  static int uart_send_char(char c, FILE *fp);