Home
last modified time | relevance | path

Searched refs:uart_id (Results 1 – 6 of 6) sorted by relevance

/AliOS-Things-master/hardware/chip/haas1000/hal/
A Duart.c98 if (uart_ctx[uart_id].rxbuf_in == uart_ctx[uart_id].rxbuf_out) { in _get_uart_ringbuf_freesize()
100 } else if (uart_ctx[uart_id].rxbuf_in > uart_ctx[uart_id].rxbuf_out) { in _get_uart_ringbuf_freesize()
101 … size = uart_ctx[uart_id].rxring_size - uart_ctx[uart_id].rxbuf_in + uart_ctx[uart_id].rxbuf_out; in _get_uart_ringbuf_freesize()
103 size = uart_ctx[uart_id].rxbuf_out - uart_ctx[uart_id].rxbuf_in; in _get_uart_ringbuf_freesize()
129 if (uart_id > HAL_UART_ID_2 || uart_ctx[uart_id].init_flag == 0) { in _uart_ringbuffer_push()
150 …uart_ctx[uart_id].rxbuf_in = (uart_ctx[uart_id].rxbuf_in + write_size) % uart_ctx[uart_id].rxring_… in _uart_ringbuffer_push()
163 if (uart_id > HAL_UART_ID_2 || uart_ctx[uart_id].init_flag == 0) { in _uart_ringbuffer_pop()
176 spilt_len = uart_ctx[uart_id].rxring_size - uart_ctx[uart_id].rxbuf_out; in _uart_ringbuffer_pop()
184 …uart_ctx[uart_id].rxbuf_out = (uart_ctx[uart_id].rxbuf_out + read_size) % uart_ctx[uart_id].rxring… in _uart_ringbuffer_pop()
429 uint8_t uart_id; in hal_uart_send() local
[all …]
/AliOS-Things-master/components/py_engine/tests/wipy/
A Duart.py30 for uart_id in uart_id_range:
31 uart = UART(uart_id, 38400)
33 uart.init(57600, 8, None, 1, pins=uart_pins[uart_id][0])
34 uart.init(baudrate=9600, stop=2, parity=UART.EVEN, pins=uart_pins[uart_id][1])
35 uart.init(baudrate=115200, parity=UART.ODD, stop=0, pins=uart_pins[uart_id][0])
156 for uart_id in uart_id_range:
157 uart = UART(uart_id, 1000000)
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Duart.c427 int hal_uart_rx_sem_take(int uart_id, int timeout) in hal_uart_rx_sem_take() argument
431 if (uart_id != 0) in hal_uart_rx_sem_take()
437 int hal_uart_rx_sem_give(int uart_id) in hal_uart_rx_sem_give() argument
439 if (uart_id != 0) in hal_uart_rx_sem_give()
/AliOS-Things-master/hardware/chip/haas1000/csi/
A Duart.c30 static void hal_set_uart_iomux(uint32_t uart_id) in hal_set_uart_iomux() argument
32 if (uart_id == HAL_UART_ID_0) in hal_set_uart_iomux()
34 else if (uart_id == HAL_UART_ID_1) in hal_set_uart_iomux()
/AliOS-Things-master/components/py_engine/modules/driver/
A Dboard_mgr.c309 char *uart_id = strdup(id); in board_parse_uart() local
311 ret = board_add_new_item(MODULE_UART, uart_id, new_uart); in board_parse_uart()
312 LOGD(LOG_TAG, "*** add item: %s", uart_id); in board_parse_uart()
316 if (NULL != uart_id) { in board_parse_uart()
317 aos_free(uart_id); in board_parse_uart()
318 uart_id = NULL; in board_parse_uart()
/AliOS-Things-master/components/amp/services/board_mgr/
A Dboard_mgr.c345 char *uart_id = strdup(id); in board_parse_uart() local
347 ret = board_add_new_item(MODULE_UART, uart_id, new_uart); in board_parse_uart()
348 amp_debug(MOD_STR, "*** add item: %s", uart_id); in board_parse_uart()
353 if (NULL != uart_id) in board_parse_uart()
355 amp_free(uart_id); in board_parse_uart()
356 uart_id = NULL; in board_parse_uart()

Completed in 11 milliseconds