Lines Matching refs:uart
127 struct tUART_CONFIG uart; in HaiInitializeLibrary() local
132 uart.m_iParity = USERIAL_PARITY_EVEN; in HaiInitializeLibrary()
134 uart.m_iParity = USERIAL_PARITY_ODD; in HaiInitializeLibrary()
136 uart.m_iParity = USERIAL_PARITY_NONE; in HaiInitializeLibrary()
139 uart.m_iParity = USERIAL_PARITY_NONE; in HaiInitializeLibrary()
144 uart.m_iStopbits = USERIAL_STOPBITS_1; in HaiInitializeLibrary()
146 uart.m_iStopbits = USERIAL_STOPBITS_2; in HaiInitializeLibrary()
148 uart.m_iStopbits = USERIAL_STOPBITS_1_5; in HaiInitializeLibrary()
153 uart.m_iStopbits = USERIAL_STOPBITS_1; in HaiInitializeLibrary()
155 uart.m_iStopbits = USERIAL_STOPBITS_2; in HaiInitializeLibrary()
158 uart.m_iStopbits = USERIAL_STOPBITS_1; in HaiInitializeLibrary()
163 uart.m_iDatabits = ( 1 << ( num + 1 ) ); in HaiInitializeLibrary()
166 uart.m_iDatabits = USERIAL_DATABITS_8; in HaiInitializeLibrary()
170 if ( num == 300 ) uart.m_iBaudrate = USERIAL_BAUD_300; in HaiInitializeLibrary()
171 else if ( num == 600 ) uart.m_iBaudrate = USERIAL_BAUD_600; in HaiInitializeLibrary()
172 else if ( num == 1200 ) uart.m_iBaudrate = USERIAL_BAUD_1200; in HaiInitializeLibrary()
173 else if ( num == 2400 ) uart.m_iBaudrate = USERIAL_BAUD_2400; in HaiInitializeLibrary()
174 else if ( num == 9600 ) uart.m_iBaudrate = USERIAL_BAUD_9600; in HaiInitializeLibrary()
175 else if ( num == 19200 ) uart.m_iBaudrate = USERIAL_BAUD_19200; in HaiInitializeLibrary()
176 else if ( num == 57600 ) uart.m_iBaudrate = USERIAL_BAUD_57600; in HaiInitializeLibrary()
177 else if ( num == 115200 ) uart.m_iBaudrate = USERIAL_BAUD_115200; in HaiInitializeLibrary()
178 else if ( num == 230400 ) uart.m_iBaudrate = USERIAL_BAUD_230400; in HaiInitializeLibrary()
179 else if ( num == 460800 ) uart.m_iBaudrate = USERIAL_BAUD_460800; in HaiInitializeLibrary()
180 else if ( num == 921600 ) uart.m_iBaudrate = USERIAL_BAUD_921600; in HaiInitializeLibrary()
185 uart.m_iBaudrate = USERIAL_BAUD_AUTO; in HaiInitializeLibrary()
188 uart.m_iBaudrate = USERIAL_BAUD_115200; in HaiInitializeLibrary()
191 cfg.fmt = uart.m_iDatabits | uart.m_iParity | uart.m_iStopbits; in HaiInitializeLibrary()
192 cfg.baud = uart.m_iBaudrate; in HaiInitializeLibrary()