Home
last modified time | relevance | path

Searched refs:uart_device (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/components/py_engine/modules/driver/
A Duart.c53 uart_dev_t *uart_device = NULL; in obj_open() local
88 if (NULL == uart_device) { in obj_open()
119 uart_dev_t *uart_device = NULL; in obj_close() local
132 if (NULL == uart_device) { in obj_close()
154 uart_dev_t *uart_device = NULL; in obj_read() local
168 if (NULL == uart_device) { in obj_read()
198 uart_dev_t *uart_device = NULL; in obj_write() local
211 if (NULL == uart_device) { in obj_write()
240 uart_dev_t *uart_device = NULL; in obj_setBaudRate() local
253 if (NULL == uart_device) { in obj_setBaudRate()
[all …]
A Dboard_mgr.c193 static void board_set_uart_default(uart_dev_t *uart_device) in board_set_uart_default() argument
195 if (NULL == uart_device) { in board_set_uart_default()
198 uart_device->port = 0; in board_set_uart_default()
199 uart_device->priv = NULL; in board_set_uart_default()
200 uart_device->config.baud_rate = 115200; in board_set_uart_default()
201 uart_device->config.data_width = DATA_WIDTH_8BIT; in board_set_uart_default()
202 uart_device->config.flow_control = FLOW_CONTROL_DISABLED; in board_set_uart_default()
203 uart_device->config.parity = NO_PARITY; in board_set_uart_default()
204 uart_device->config.stop_bits = STOP_BITS_1; in board_set_uart_default()
205 uart_device->config.mode = MODE_TX_RX; in board_set_uart_default()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/uart/
A Dmodule_uart.c151 uart_dev_t *uart_device = NULL; in native_uart_open() local
164 if (NULL == uart_device) { in native_uart_open()
178 g_uart_devices[uart_device->port] = uart_device; in native_uart_open()
193 uart_dev_t *uart_device = NULL; in native_uart_close() local
201 if (NULL == uart_device) { in native_uart_close()
226 uart_dev_t *uart_device = NULL; in native_uart_write() local
234 if (NULL == uart_device) { in native_uart_write()
269 uart_dev_t *uart_device = NULL; in native_uart_read() local
277 if (NULL == uart_device) { in native_uart_read()
303 uart_dev_t *uart_device = NULL; in native_uart_on() local
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/uart/
A Dmodule_uart.c169 uart_dev_t *uart_device = NULL; in native_uart_open() local
187 if (NULL == uart_device) { in native_uart_open()
209 g_uart_devices[uart_device->port] = uart_device; in native_uart_open()
231 uart_dev_t *uart_device = NULL; in native_uart_close() local
240 if (NULL == uart_device) { in native_uart_close()
265 uart_dev_t *uart_device = NULL; in native_uart_write() local
292 if (NULL == uart_device) { in native_uart_write()
329 uart_dev_t *uart_device = NULL; in native_uart_read() local
339 if (NULL == uart_device) { in native_uart_read()
380 uart_dev_t *uart_device = NULL; in native_uart_on() local
[all …]
/AliOS-Things-master/components/amp/services/board_mgr/
A Dboard_mgr.c216 static void board_set_uart_default(uart_dev_t *uart_device) in board_set_uart_default() argument
218 if (NULL == uart_device) in board_set_uart_default()
222 uart_device->port = 0; in board_set_uart_default()
223 uart_device->priv = NULL; in board_set_uart_default()
224 uart_device->config.baud_rate = 115200; in board_set_uart_default()
225 uart_device->config.data_width = DATA_WIDTH_8BIT; in board_set_uart_default()
226 uart_device->config.flow_control = FLOW_CONTROL_DISABLED; in board_set_uart_default()
227 uart_device->config.parity = NO_PARITY; in board_set_uart_default()
228 uart_device->config.stop_bits = STOP_BITS_1; in board_set_uart_default()
229 uart_device->config.mode = MODE_TX_RX; in board_set_uart_default()

Completed in 12 milliseconds