Home
last modified time | relevance | path

Searched full:uart (Results 1 – 25 of 77) sorted by relevance

1234

/nrf52832-nimble/rt-thread/libcpu/arm/s3c24x0/
H A Dserial.c27 struct serial_device* uart = (struct serial_device*) dev->user_data; in rt_serial_init() local
34 rt_memset(uart->int_rx->rx_buffer, 0, in rt_serial_init()
35 sizeof(uart->int_rx->rx_buffer)); in rt_serial_init()
36 uart->int_rx->read_index = uart->int_rx->save_index = 0; in rt_serial_init()
41 rt_memset(uart->int_tx->tx_buffer, 0, in rt_serial_init()
42 sizeof(uart->int_tx->tx_buffer)); in rt_serial_init()
43 uart->int_tx->write_index = uart->int_tx->save_index = 0; in rt_serial_init()
53 static void rt_serial_savechar(struct serial_device* uart, char ch) in rt_serial_savechar() argument
60 uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; in rt_serial_savechar()
61 uart->int_rx->save_index ++; in rt_serial_savechar()
[all …]
H A Ds3c24x0.h139 // UART
140 #define U0BASE (*(volatile unsigned *)0x50000000) //UART 0 Line control
141 #define ULCON0 (*(volatile unsigned *)0x50000000) //UART 0 Line control
142 #define UCON0 (*(volatile unsigned *)0x50000004) //UART 0 Control
143 #define UFCON0 (*(volatile unsigned *)0x50000008) //UART 0 FIFO control
144 #define UMCON0 (*(volatile unsigned *)0x5000000c) //UART 0 Modem control
145 #define USTAT0 (*(volatile unsigned *)0x50000010) //UART 0 Tx/Rx status
146 #define URXB0 (*(volatile unsigned *)0x50000014) //UART 0 Rx error status
147 #define UFSTAT0 (*(volatile unsigned *)0x50000018) //UART 0 FIFO status
148 #define UMSTAT0 (*(volatile unsigned *)0x5000001c) //UART 0 Modem status
[all …]
/nrf52832-nimble/rt-thread/libcpu/arm/sep4020/
H A Dserial.c27 struct serial_device* uart = (struct serial_device*) dev->user_data; in rt_serial_init() local
34 rt_memset(uart->int_rx->rx_buffer, 0, in rt_serial_init()
35 sizeof(uart->int_rx->rx_buffer)); in rt_serial_init()
36 uart->int_rx->read_index = uart->int_rx->save_index = 0; in rt_serial_init()
41 rt_memset(uart->int_tx->tx_buffer, 0, in rt_serial_init()
42 sizeof(uart->int_tx->tx_buffer)); in rt_serial_init()
43 uart->int_tx->write_index = uart->int_tx->save_index = 0; in rt_serial_init()
53 static void rt_serial_savechar(struct serial_device* uart, char ch) in rt_serial_savechar() argument
60 uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; in rt_serial_savechar()
61 uart->int_rx->save_index ++; in rt_serial_savechar()
[all …]
/nrf52832-nimble/rt-thread/libcpu/blackfin/bf53x/
H A Dserial.c32 struct serial_device* uart = (struct serial_device*) dev->user_data; in rt_serial_init() local
39 rt_memset(uart->int_rx->rx_buffer, 0, in rt_serial_init()
40 sizeof(uart->int_rx->rx_buffer)); in rt_serial_init()
41 uart->int_rx->read_index = uart->int_rx->save_index = 0; in rt_serial_init()
46 rt_memset(uart->int_tx->tx_buffer, 0, in rt_serial_init()
47 sizeof(uart->int_tx->tx_buffer)); in rt_serial_init()
48 uart->int_tx->write_index = uart->int_tx->save_index = 0; in rt_serial_init()
58 static void rt_serial_savechar(struct serial_device* uart, char ch) in rt_serial_savechar() argument
65 uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; in rt_serial_savechar()
66 uart->int_rx->save_index ++; in rt_serial_savechar()
[all …]
/nrf52832-nimble/rt-thread/libcpu/unicore32/sep6200/
H A Dserial.c39 struct serial_device* uart = (struct serial_device*) dev->user_data; in rt_serial_init() local
46 rt_memset(uart->int_rx->rx_buffer, 0, in rt_serial_init()
47 sizeof(uart->int_rx->rx_buffer)); in rt_serial_init()
48 uart->int_rx->read_index = uart->int_rx->save_index = 0; in rt_serial_init()
53 rt_memset(uart->int_tx->tx_buffer, 0, in rt_serial_init()
54 sizeof(uart->int_tx->tx_buffer)); in rt_serial_init()
55 uart->int_tx->write_index = uart->int_tx->save_index = 0; in rt_serial_init()
65 static void rt_serial_savechar(struct serial_device* uart, char ch) in rt_serial_savechar() argument
72 uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; in rt_serial_savechar()
73 uart->int_rx->save_index ++; in rt_serial_savechar()
[all …]
/nrf52832-nimble/rt-thread/libcpu/avr32/uc3/
H A Dserial.c25 struct avr32_serial_device uart = variable
39 struct avr32_serial_device* uart = (struct avr32_serial_device*) dev->user_data; in rt_serial_init() local
45 rt_memset(uart->int_rx->rx_buffer, 0, sizeof(uart->int_rx->rx_buffer)); in rt_serial_init()
46 uart->int_rx->read_index = 0; in rt_serial_init()
47 uart->int_rx->save_index = 0; in rt_serial_init()
70 struct avr32_serial_device* uart; in rt_serial_read() local
74 uart = (struct avr32_serial_device*)dev->user_data; in rt_serial_read()
86 if (uart->int_rx->read_index != uart->int_rx->save_index) in rt_serial_read()
89 *ptr++ = uart->int_rx->rx_buffer[uart->int_rx->read_index]; in rt_serial_read()
93 uart->int_rx->read_index ++; in rt_serial_read()
[all …]
/nrf52832-nimble/drivers/
H A Ddrv_uart.c26 nrfx_uart_t uart; member
33 .uart = {.p_reg = NRF_UART0, .drv_inst_idx = 0},
46 .uart = NRF_DRV_UART_INSTANCE(0),
93 nrf_uart_disable(instance->uart.p_reg); in _uart_cfg()
130 nrf_uart_baudrate_set(instance->uart.p_reg, config.baudrate); in _uart_cfg()
131 nrf_uart_configure(instance->uart.p_reg, config.parity, config.hwfc); in _uart_cfg()
132 nrf_uart_txrx_pins_set(instance->uart.p_reg, config.pseltxd, config.pselrxd); in _uart_cfg()
136 nrf_uart_hwfc_pins_set(instance->uart.p_reg, config.pselrts, config.pselcts); in _uart_cfg()
139 nrf_uart_event_clear(instance->uart.p_reg, NRF_UART_EVENT_TXDRDY); in _uart_cfg()
140 nrf_uart_event_clear(instance->uart.p_reg, NRF_UART_EVENT_RXDRDY); in _uart_cfg()
[all …]
/nrf52832-nimble/nordic/nrfx/drivers/include/
H A Dnrfx_uart.h43 * @defgroup nrfx_uart UART driver
46 * @brief UART peripheral driver.
50 * @brief UART driver instance data structure.
54 NRF_UART_Type * p_reg; ///< Pointer to a structure with UART registers.
66 * @brief Macro for creating a UART driver instance.
75 * @brief Types of UART driver events.
81 NRFX_UART_EVT_ERROR, ///< Error reported by UART peripheral.
85 * @brief Structure for UART configuration.
101 * @brief UART default configuration.
117 * @brief Structure for UART transfer completion event.
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/transport/uart/
H A Dsyscfg.yml49 description: 'The uart to use for the HCI uart interface'
52 description: 'The baud rate of the HCI uart interface'
55 description: 'Number of data bits used for HCI uart interface'
58 description: 'Number of stop bits used for HCI uart interface'
61 description: 'Parity used for HCI uart interface'
64 description: 'Flow control used for HCI uart interface'
68 Sysinit stage for the UART BLE transport.
/nrf52832-nimble/nordic/nrfx/hal/
H A Dnrf_uart.h42 * @defgroup nrf_uart_hal UART HAL
45 * @brief Hardware access layer for managing the UART peripheral.
52 * @brief UART tasks.
61 … NRF_UART_TASK_SUSPEND = offsetof(NRF_UART_Type, TASKS_SUSPEND), /**< Task for suspending UART. */
67 * @brief UART events.
83 * @brief UART interrupts.
99 * @brief Baudrates supported by UART.
125 * @brief Types of UART error masks.
137 * @brief Types of UART parity modes.
147 * @brief Types of UART flow control modes.
[all …]
H A Dnrf_uarte.h57 NRF_UARTE_TASK_STARTRX = offsetof(NRF_UARTE_Type, TASKS_STARTRX), ///< Start UART receiver.
58 NRF_UARTE_TASK_STOPRX = offsetof(NRF_UARTE_Type, TASKS_STOPRX), ///< Stop UART receiver.
59 NRF_UARTE_TASK_STARTTX = offsetof(NRF_UARTE_Type, TASKS_STARTTX), ///< Start UART transmitter.
60 NRF_UARTE_TASK_STOPTX = offsetof(NRF_UARTE_Type, TASKS_STOPTX), ///< Stop UART transmitter.
/nrf52832-nimble/rt-thread/components/net/at/src/
H A Dat_base_cmd.c82 at_server_printfln("AT+UART=%d,%d,%d,%d,%d", serial->config.baud_rate, serial->config.data_bits, in at_uart_query()
100 at_server_printfln("UART baudrate : %d", baudrate); in at_uart_setup()
101 at_server_printfln("UART databits : %d", databits); in at_uart_setup()
102 at_server_printfln("UART stopbits : %d", stopbits); in at_uart_setup()
103 at_server_printfln("UART parity : %d", parity); in at_uart_setup()
104 at_server_printfln("UART control : %d", flow_control); in at_uart_setup()
119 AT_CMD_EXPORT("AT+UART", "=<baudrate>,<databits>,<stopbits>,<parity>,<flow_control>", RT_NULL, at_u…
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/src/
H A Dble_monitor.c25 #error "Cannot enable monitor over UART and RTT at the same time!"
34 #include "uart/uart.h"
45 struct uart_dev *uart; variable
106 uart_start_tx(uart); in monitor_uart_queue_char()
129 uart_start_tx(uart); in monitor_write()
308 uart = (struct uart_dev *)os_dev_open(MYNEWT_VAL(BLE_MONITOR_UART_DEV), in ble_monitor_init()
310 if (!uart) { in ble_monitor_init()
/nrf52832-nimble/rt-thread/libcpu/ppc/ppc405/include/
H A Dconfig.h20 * UART
28 * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
29 * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
30 * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
/nrf52832-nimble/packages/NimBLE-latest/nimble/transport/uart/src/
H A Dble_hci_uart.c40 #include "transport/uart/ble_hci_uart.h"
47 * The UART HCI transport doesn't use event buffer priorities. All incoming
121 * A packet to be sent over the UART. This can be a command, an event, or ACL
157 * Structure for transmitting ACL packets over UART
167 /*** State of data received over UART. */
174 /*** State of data transmitted over UART. */
181 STAILQ_HEAD(, ble_hci_uart_pkt) tx_pkts; /* Packet queue to send to UART */
392 * HCI uart sync lost.
484 * HCI uart sync loss.
1070 * Resets the HCI UART transport to a clean state. Frees all buffers and
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/services/bleuart/src/
H A Dble_svc_uart.c50 /* ble uart attr read handle */
53 /* ble uart attr write handle */
59 /* ble uart console */
94 /* Service: uart */
199 rt_kprintf("======== Welcome to enter bluetooth uart mode ========\n"); in bleuart_uart_proc()
321 /* back uart console old indicate callback */ in bleuart_init()
/nrf52832-nimble/nordic/nrfx/
H A DCHANGELOG.md122 …ransfer lengths to 'size_t' in drivers: SPI, SPIM, SPIS, TWI, TWIM, TWIS, UART, UARTE. Introduced …
123 - Updated HALs: COMP, NVMC, UART, UARTE, USBD.
138 … RTC, SAADC, SPI, SPIM, SPIS, ARM(R) SysTick, TEMP, TIMER, TWI, TWIM, TWIS, UART, UARTE, USBD, WDT.
139 …, QSPI, RNG, RTC, SAADC, SPI, SPIM, SPIS, ARM(R) SysTick, TIMER, TWI, TWIM, TWIS, UART, UARTE, WDT.
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/services/bleuart/
H A Dsyscfg.yml22 The size of the largest line that can be received over the UART
27 Sysinit stage for the BLE UART service.
H A Dpkg.yml21 pkg.description: BLE uart service.
27 - uart
/nrf52832-nimble/packages/NimBLE-latest/apps/blehci/
H A Dpkg.yml20 pkg.description: BLE controller application exposing HCI over UART
30 - nimble/transport/uart
/nrf52832-nimble/rt-thread/libcpu/ppc/ppc405/
H A Dserial.c70 /* Enable "RX Data Available" Interrupt on UART */ in rt_serial_open()
72 /* Setup UART FIFO: RX trigger level: 1 byte, Enable FIFO */ in rt_serial_open()
75 /* init UART rx interrupt */ in rt_serial_open()
90 /* mask UART rx interrupt */ in rt_serial_close()
/nrf52832-nimble/rt-thread/libcpu/xilinx/microblaze/
H A Dserial.c66 /* get uart status register */ in rt_hw_serial_isr()
122 /* enable UART rx interrupt */ in rt_serial_open()
125 /* install UART handler */ in rt_serial_open()
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/
H A Dsyscfg.yml49 description: Enables monitor interface over UART
52 description: Monitor interface UART device
55 description: Baudrate for monitor interface UART
59 Monitor interface ringbuffer size for UART.
/nrf52832-nimble/packages/NimBLE-latest/nimble/transport/socket/src/
H A Dble_hci_socket.c90 * The UART HCI transport doesn't use event buffer priorities. All incoming
751 * Resets the HCI UART transport to a clean state. Frees all buffers and
752 * reconfigures the UART.
764 /* Reopen the UART. */ in ble_hci_trans_reset()
820 * Initializes the UART HCI transport module.
/nrf52832-nimble/rt-thread/
H A DChangeLog.md50 * Add the LPC54114-lite BSP, including GPIO, I2C, SDCard, SPI, SPI Flash, UART driver;
51 * Add Nuvoton-M487 BSP, including UART, EMAC driver; (Bluebear 233)
52 * Add Kendryte K210 BSP with RISC-V64 dual-core SMP BSP, including UART driver, also verified with …
53 * Add RV32M1 VEGA BSP, including GPIO, I2C, SDCard, UART and other drivers;
55 * Fix UART DMA settings issue in STM32F10x/STM32F40x BSP; (zhouchuanfu)
90 * Add SWM320 BSP of Synwit.cn, including GPIO, HW Timer, I2C, Watchdog, PWM, RTC, SPI, UART, etc.; …
93 …re ARC EM Starter Kit, bsp/synopsys/emsk_em9d, EM9D core, including GPIO, UART and other drivers; …
148 * Update Apollo2 BSP with ADC, GPIO, I2C, PDM, SPI, UART and other drivers; (Haleyl)
156 * Improve stm32f10x-HAL BSP with I2C, IWG, PWM, RTC and other drivers, improve UART driver; (XuanZe)

1234