Home
last modified time | relevance | path

Searched refs:serial (Results 1 – 25 of 34) sorted by relevance

12

/components/drivers/serial/
A Dbypass.c45 serial->bypass->pipe = rt_ringbuffer_create(serial->config.rx_bufsz); in rt_serial_bypass_init()
47 serial->bypass->pipe = rt_ringbuffer_create(serial->config.bufsz); in rt_serial_bypass_init()
106 if (!serial->bypass) in rt_bypass_upper_register()
190 if (serial->bypass && serial->bypass->lower_h) in _lower_work()
226 _lower_work(serial); in rt_lower_work()
231 if (!serial->bypass) in rt_bypass_lower_register()
238 rt_work_init(&serial->bypass->work, rt_lower_work, (void*)serial); in rt_bypass_lower_register()
251 if (serial->bypass && serial->bypass->lower_h) in rt_bypass_work_straight()
305 if (!serial->bypass || !serial->bypass->upper_h) in rt_bypass_upper_unregister()
312 if (!serial->bypass || !serial->bypass->lower_h) in rt_bypass_lower_unregister()
[all …]
A Ddev_serial.c250 ch = serial->ops->getc(serial); in _serial_poll_rx()
279 serial->ops->putc(serial, '\r'); in _serial_poll_tx()
282 if(serial->ops->putc(serial, *data) < 0) { in _serial_poll_tx()
380 if (serial->ops->putc(serial, '\r') == -1) in _serial_int_tx()
387 while (serial->ops->putc(serial, *(char*)data) == -1) in _serial_int_tx()
635 result = serial->ops->configure(serial, &serial->config); in rt_serial_init()
1029 ch = serial->ops->getc(serial); in _tc_flush()
1226 serial->ops->configure(serial, &config); in rt_serial_control()
1348 ret = serial->ops->control(serial, cmd, args); in rt_serial_control()
1431 ch = serial->ops->getc(serial); in rt_hw_serial_isr()
[all …]
A Ddev_serial_v2.c397 getc_element = serial->ops->getc(serial); in _serial_poll_rx()
449 serial->ops->putc(serial, '\r'); in _serial_poll_tx()
599 send_size = serial->ops->transmit(serial, in _serial_fifo_tx_blocking_nbuf()
692 transmit_size = serial->ops->transmit(serial, in _serial_fifo_tx_blocking_buf()
934 control_result = serial->ops->control(serial, in rt_serial_tx_enable()
1053 serial->ops->control(serial, in rt_serial_rx_disable()
1062 serial->ops->control(serial, in rt_serial_rx_disable()
1101 serial->ops->control(serial, in rt_serial_tx_disable()
1110 serial->ops->control(serial, in rt_serial_tx_disable()
1141 result = serial->ops->configure(serial, &serial->config); in rt_serial_init()
[all …]
A Dserial_tty.c74 RT_UNUSED(serial); in alloc_device_name()
146 struct rt_serial_device *serial; in _serial_tty_set_speed() local
150 serial = softc->parent; in _serial_tty_set_speed()
202 struct rt_serial_device *serial; in serial_tty_open() local
207 serial = softc->parent; in serial_tty_open()
229 struct rt_serial_device *serial; in serial_tty_close() local
231 serial = softc->parent; in serial_tty_close()
261 struct rt_serial_device *serial; in serial_tty_param() local
264 serial = softc->parent; in serial_tty_param()
295 if (serial->rx_notify.dev) in rt_hw_serial_register_tty()
[all …]
A DKconfig28 bool "Enable serial DMA mode"
36 bool "Using serial bypass"
/components/drivers/usb/cherryusb/platform/rtthread/
A Dusbd_serial.c55 return serial; in usbd_serial_alloc()
84 usbd_ep_start_read(serial->busid, serial->out_ep, in usbd_serial_open()
86 usbd_get_ep_mps(serial->busid, serial->out_ep)); in usbd_serial_open()
138 usbd_ep_start_write(serial->busid, serial->in_ep, align_buf, size); in usbd_serial_write()
199 rt_ringbuffer_init(&serial->rx_rb, serial->rx_rb_buffer, sizeof(serial->rx_rb_buffer)); in usbd_serial_register()
212 usbd_ep_start_read(serial->busid, serial->out_ep, in usbd_cdc_acm_bulk_out()
214 usbd_get_ep_mps(serial->busid, serial->out_ep)); in usbd_cdc_acm_bulk_out()
217 serial->parent.rx_indicate(&serial->parent, nbytes); in usbd_cdc_acm_bulk_out()
234 if ((serial->in_ep == ep) && serial->tx_done) { in usbd_cdc_acm_bulk_in()
257 if (serial == NULL) { in usbd_cdc_acm_serial_init()
[all …]
A Dusbh_serial.c66 return serial; in usbh_serial_alloc()
80 rt_free(serial); in usbh_serial_free()
97 return serial; in usbh_serial_cdc_acm_alloc()
111 rt_free(serial); in usbh_serial_cdc_acm_free()
122 switch (serial->type) { in usbh_serial_open()
596 rt_ringbuffer_init(&serial->rx_rb, serial->rx_rb_buffer, sizeof(serial->rx_rb_buffer)); in usbh_serial_register()
627 serial->parent.rx_indicate(&serial->parent, nbytes); in usbh_cdc_acm_callback()
689 serial->parent.rx_indicate(&serial->parent, nbytes); in usbh_ftdi_callback()
749 serial->parent.rx_indicate(&serial->parent, nbytes); in usbh_ch34x_callback()
809 serial->parent.rx_indicate(&serial->parent, nbytes); in usbh_cp210x_callback()
[all …]
/components/drivers/include/drivers/
A Dserial_bypass.h16 typedef rt_err_t(*bypass_function_t)(struct rt_serial_device* serial, char buf, void* data);
60 void rt_bypass_work_straight(struct rt_serial_device* serial);
61 void rt_bypass_putchar(struct rt_serial_device* serial, rt_uint8_t ch);
62 rt_size_t rt_bypass_getchar(struct rt_serial_device* serial, rt_uint8_t* ch);
64 rt_err_t rt_bypass_upper_unregister(struct rt_serial_device* serial, rt_uint8_t level);
65 rt_err_t rt_bypass_lower_unregister(struct rt_serial_device* serial, rt_uint8_t level);
67 rt_err_t rt_bypass_upper_register(struct rt_serial_device* serial, const char* name, rt_uint8_t lev…
68 rt_err_t rt_bypass_lower_register(struct rt_serial_device* serial, const char* name, rt_uint8_t lev…
A Ddev_serial.h276 rt_err_t (*configure)(struct rt_serial_device *serial, struct serial_configure *cfg);
277 rt_err_t (*control)(struct rt_serial_device *serial, int cmd, void *arg);
279 int (*putc)(struct rt_serial_device *serial, char c);
280 int (*getc)(struct rt_serial_device *serial);
282 …rt_ssize_t (*dma_transmit)(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int d…
291 void rt_hw_serial_isr(struct rt_serial_device *serial, int event);
305 rt_err_t rt_hw_serial_register(struct rt_serial_device *serial,
318 rt_err_t rt_hw_serial_register_tty(struct rt_serial_device *serial);
A Ddev_serial_v2.h354 rt_err_t (*configure)(struct rt_serial_device *serial,
357 rt_err_t (*control)(struct rt_serial_device *serial,
361 int (*putc)(struct rt_serial_device *serial, char c);
362 int (*getc)(struct rt_serial_device *serial);
364 rt_ssize_t (*transmit)(struct rt_serial_device *serial,
376 void rt_hw_serial_isr(struct rt_serial_device *serial, int event);
378 rt_err_t rt_hw_serial_control_isr(struct rt_serial_device *serial, int cmd, void *args);
392 rt_err_t rt_hw_serial_register(struct rt_serial_device *serial,
405 rt_err_t rt_hw_serial_register_tty(struct rt_serial_device *serial);
/components/legacy/usb/usbdevice/class/
A Dcdc_vcom.c77 struct rt_serial_device serial; member
93 struct rt_serial_device * serial; member
506 data->serial.serial_rx = &data->rx_ringbuffer; in _function_enable()
684 func = (struct ufunction*)serial->parent.user_data; in _vcom_control()
703 static int _vcom_getc(struct rt_serial_device *serial) in _vcom_getc() argument
773 RT_ASSERT(serial != RT_NULL); in _vcom_tx()
830 RT_ASSERT(serial != RT_NULL); in _vcom_putc()
975 data->serial.ops = &usb_vcom_ops; in rt_usb_vcom_init()
976 data->serial.serial_rx = RT_NULL; in rt_usb_vcom_init()
977 data->serial.config = config; in rt_usb_vcom_init()
[all …]
/components/net/at/src/
A Dat_base_cmd.c80 struct rt_serial_device *serial = (struct rt_serial_device *)at_get_server()->device; in at_uart_query() local
82 at_server_printfln("AT+UART=%d,%d,%d,%d,%d", serial->config.baud_rate, serial->config.data_bits, in at_uart_query()
83 serial->config.stop_bits, serial->config.parity, 1); in at_uart_query()
/components/net/lwip/lwip-2.0.3/doc/
A Dppp.txt20 * PPP over serial using HDLC-like framing, such as wired dialup modems
40 Supported compression or miscellaneous protocols, for serial links only:
189 * PPPoS serial output callback
192 * data, buffer to write to serial port
206 * output_cb, PPPoS serial output callback
381 Received data on serial port should be sent to lwIP using the pppos_input()
390 your rx serial interrupt.
509 your own serial rx thread
526 * PPPoS does not use the SIO API anymore, as such it now requires a serial
/components/net/lwip/lwip-2.1.2/doc/
A Dppp.txt20 * PPP over serial using HDLC-like framing, such as wired dialup modems
40 Supported compression or miscellaneous protocols, for serial links only:
189 * PPPoS serial output callback
192 * data, buffer to write to serial port
206 * output_cb, PPPoS serial output callback
381 Received data on serial port should be sent to lwIP using the pppos_input()
390 your rx serial interrupt.
509 your own serial rx thread
526 * PPPoS does not use the SIO API anymore, as such it now requires a serial
/components/net/lwip/lwip-2.1.2/src/netif/
A DFILES17 protocol. It requires a sio (serial I/O) module to work.
/components/drivers/
A DKconfig6 rsource "serial/Kconfig"
/components/drivers/usb/cherryusb/
A DSConscript19 path += [cwd + '/class/vendor/serial']
292 src += Glob('class/vendor/serial/usbh_ftdi.c')
294 src += Glob('class/vendor/serial/usbh_ch34x.c')
296 src += Glob('class/vendor/serial/usbh_cp210x.c')
298 src += Glob('class/vendor/serial/usbh_pl2303.c')
A Dcherryusb.cmake51 ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial
238 list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial/usbh_ch34x.c)
241 list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial/usbh_cp210x.c)
244 list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial/usbh_ftdi.c)
247 list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial/usbh_pl2303.c)
/components/drivers/ofw/
A Dofw.c320 rt_device_t serial = rt_device_find(RT_CONSOLE_DEVICE_NAME); in rt_ofw_console_setup() local
322 if (serial) in rt_ofw_console_setup()
324 ofw_name = rt_ofw_node_full_name(serial->ofw_node); in rt_ofw_console_setup()
/components/net/lwip/lwip-2.0.3/src/netif/
A DFILES18 protocol. It requires a sio (serial I/O) module to work.
/components/drivers/usb/cherryusb/port/pusb2/
A DREADME.md51 …- 2. [Simulating as a virtual serial port on a standalone system](https://gitee.com/phytium_embedd…
53 …- 4. [Simulating as a virtual serial port on FreeRTOS](https://gitee.com/phytium_embedded/phytium-…
/components/net/lwip/lwip-1.4.1/src/netif/
A DFILES23 protocol. It requires a sio (serial I/O) module to work.
/components/legacy/usb/usbhost/class/
A Dadk.c31 const char* serial) in rt_usbh_adk_set_string() argument
38 _adk_serial = serial; in rt_usbh_adk_set_string()
/components/legacy/usb/
A DKconfig123 string "serial number of virtual com"
126 int "serial number length of virtual com"
/components/drivers/spi/sfud/
A DREADME.md48 |[M25P40](https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25p/m2…
49 |[M25P80](https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25p/m2…
50 |[M25P32](https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/m25p/m2…

Completed in 35 milliseconds

12