summaryrefslogtreecommitdiffstats
path: root/app/serial.c
blob: cabe7f2102e846ee4189875a39367bb7e8b9d8e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "project.h"

void
serial_poll (void)
{
  uint8_t v;

  if (!ring_read_byte (&rx2_ring, &v))
    {
      modem_byte (v);
//console_tx(&v,1);
    }

  if (!ring_read_byte (&rx1_ring, &v))
    {

      if (v == '@')
        {
          toggle_fake_hook ();
        }
      else if (v == '#')
        {
          toggle_fake_hook ();
	  dialstr_digit(1);
	  dialstr_digit(2);
	  dialstr_digit(0);
        }
      else
        {

          usart2_queue (v);
        }
    }



}