This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| void | init_serial_0 (void) |
| void | init_serial_1 (void) |
| int | putchar (int in_char) |
| char | getchar (void) |
| char | getchar_nb (void) |
| int | flush_uart0 (void) |
| int | putchar_gps (int in_char) |
| char | getchar_gps (void) |
| char | getchar_gps_nb (void) |
| int | flush_uart1 (void) |
|
|
Definition at line 126 of file serial.c. 00126 {
00127 int ret_val=0;
00128 if (!(IE1&UTXIE0)) {
00129 ret_val=1;
00130 IE1|=UTXIE0; // Turn on the TX IRQ
00131 IFG1|=UTXIFG0; // Set the Interrupt flag to start the TX
00132 }
00133 return (ret_val);
00134 }
|
|
|
Definition at line 169 of file serial.c. 00169 {
00170 int ret_val=0;
00171 if (!(IE2&UTXIE1)) {
00172 ret_val=1;
00173 IE2|=UTXIE1; // Turn on the TX IRQ
00174 IFG2|=UTXIFG1; // Set the Interrupt flag to start the TX
00175 }
00176 return (ret_val);
00177 }
|
|
|
Definition at line 111 of file serial.c. References uart0_rx_q. 00111 {
00112 char ret_val = 0;
00113 while ((ret_val=dequeue(&uart0_rx_q))==0);
00114 return ret_val;
00115 }
|
|
|
Definition at line 154 of file serial.c. References uart1_rx_q. 00154 {
00155 char ret_val = 0;
00156 while ((ret_val=dequeue(&uart1_rx_q))==0);
00157 return ret_val;
00158 }
|
|
|
Definition at line 160 of file serial.c. References uart1_rx_q. 00160 {
00161 return (dequeue(&uart1_rx_q));
00162 }
|
|
|
Definition at line 117 of file serial.c. References uart0_rx_q. 00117 {
00118 return (dequeue(&uart0_rx_q));
00119 }
|
|
|
Definition at line 56 of file serial.c. References uart0_rx_q, and uart0_tx_q. Referenced by init_bsp(). 00056 {
00057 int temp;
00058
00059 init_queue(&uart0_rx_q);
00060 init_queue(&uart0_tx_q);
00061
00062 // 115200 baud (Connected to Host)
00063 UCTL0 = CHAR + SWRST;
00064 UTCTL0 = SSEL1 + SSEL0;
00065 UBR00=0x45;
00066 UBR10=0x00;
00067 UMCTL0=0xAA;
00068 ME1 = 0xC0;
00069 UCTL0 = CHAR;
00070 temp=RXBUF0; // Flush the RX buffer
00071 temp=RXBUF0;
00072 IE1|=URXIE0;
00073 }
|
|
|
Definition at line 75 of file serial.c. References uart1_rx_q, and uart1_tx_q. Referenced by init_bsp(). 00075 {
00076 int temp;
00077
00078 init_queue(&uart1_rx_q);
00079 init_queue(&uart1_tx_q);
00080
00081 // 19200 Baud (GPS Receiver Channel)
00082 UCTL1 = CHAR + SWRST;
00083 UTCTL1 = SSEL1 + SSEL0;
00084 UBR01=0xA0;
00085 UBR11=0x01;
00086 UMCTL1=0x5B;
00087 ME2 = 0x30;
00088 UCTL1 = CHAR;
00089 temp=RXBUF1; // Flush the RX buffer
00090 temp=RXBUF1;
00091 IE2|=URXIE1; // Turn on the RX interrupt
00092 }
|
|
|
Definition at line 121 of file serial.c. References uart0_tx_q. 00121 {
00122 enqueue(&uart0_tx_q,in_char);
00123 return (0);
00124 }
|
|
|
Definition at line 164 of file serial.c. References uart1_tx_q. 00164 {
00165 enqueue(&uart1_tx_q,in_char);
00166 return (0);
00167 }
|
1.3.9.1