Home | History | Annotate | Download | only in adaptation

Lines Matching refs:uart

128     struct tUART_CONFIG  uart;
133 uart.m_iParity = USERIAL_PARITY_EVEN;
135 uart.m_iParity = USERIAL_PARITY_ODD;
137 uart.m_iParity = USERIAL_PARITY_NONE;
140 uart.m_iParity = USERIAL_PARITY_NONE;
145 uart.m_iStopbits = USERIAL_STOPBITS_1;
147 uart.m_iStopbits = USERIAL_STOPBITS_2;
149 uart.m_iStopbits = USERIAL_STOPBITS_1_5;
154 uart.m_iStopbits = USERIAL_STOPBITS_1;
156 uart.m_iStopbits = USERIAL_STOPBITS_2;
159 uart.m_iStopbits = USERIAL_STOPBITS_1;
164 uart.m_iDatabits = ( 1 << ( num + 1 ) );
167 uart.m_iDatabits = USERIAL_DATABITS_8;
171 if ( num == 300 ) uart.m_iBaudrate = USERIAL_BAUD_300;
172 else if ( num == 600 ) uart.m_iBaudrate = USERIAL_BAUD_600;
173 else if ( num == 1200 ) uart.m_iBaudrate = USERIAL_BAUD_1200;
174 else if ( num == 2400 ) uart.m_iBaudrate = USERIAL_BAUD_2400;
175 else if ( num == 9600 ) uart.m_iBaudrate = USERIAL_BAUD_9600;
176 else if ( num == 19200 ) uart.m_iBaudrate = USERIAL_BAUD_19200;
177 else if ( num == 57600 ) uart.m_iBaudrate = USERIAL_BAUD_57600;
178 else if ( num == 115200 ) uart.m_iBaudrate = USERIAL_BAUD_115200;
179 else if ( num == 230400 ) uart.m_iBaudrate = USERIAL_BAUD_230400;
180 else if ( num == 460800 ) uart.m_iBaudrate = USERIAL_BAUD_460800;
181 else if ( num == 921600 ) uart.m_iBaudrate = USERIAL_BAUD_921600;
186 uart.m_iBaudrate = USERIAL_BAUD_AUTO;
189 uart.m_iBaudrate = USERIAL_BAUD_115200;
192 cfg.fmt = uart.m_iDatabits | uart.m_iParity | uart.m_iStopbits;
193 cfg.baud = uart.m_iBaudrate;
195 ALOGD ("%s: uart config=0x%04x, %d\n", __func__, cfg.fmt, cfg.baud);