Home
last modified time | relevance | path

Searched full:parity (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/Zephyr-latest/dts/bindings/serial/
Duart-controller.yaml17 parity:
20 Configures the parity of the adapter. Enumeration id 0 for none, 1 for odd
21 and 2 for even parity. Default to none if not specified.
/Zephyr-latest/tests/drivers/uart/uart_errors/
DREADME.txt3 certain bytes with parity enabled when receiver is configured without parity.
/Zephyr-latest/drivers/serial/
Duart_b91.c30 /* Parity type */
202 uint8_t bwpc, uint8_t parity, uint8_t stop_bit) in uart_b91_init() argument
209 /* config parity */ in uart_b91_init()
210 if (parity) { in uart_b91_init()
211 /* enable parity function */ in uart_b91_init()
214 if (parity == UART_PARITY_EVEN) { in uart_b91_init()
215 /* enable even parity */ in uart_b91_init()
217 } else if (parity == UART_PARITY_ODD) { in uart_b91_init()
218 /* enable odd parity */ in uart_b91_init()
222 uart->ctrl1 &= (~FLD_UART_PARITY_ENABLE); /* disable parity function */ in uart_b91_init()
[all …]
Duart_numicro.c82 static inline uint32_t uart_numicro_convert_parity(enum uart_config_parity parity) in uart_numicro_convert_parity() argument
84 switch (parity) { in uart_numicro_convert_parity()
106 uint32_t parity; in uart_numicro_configure() local
126 parity = uart_numicro_convert_parity(cfg->parity); in uart_numicro_configure()
128 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, in uart_numicro_configure()
Dusart_gd32.c29 uint32_t parity; member
59 uint32_t parity; in usart_gd32_init() local
69 * append word length to 9BIT if parity bit enabled. in usart_gd32_init()
71 switch (cfg->parity) { in usart_gd32_init()
73 parity = USART_PM_NONE; in usart_gd32_init()
77 parity = USART_PM_ODD; in usart_gd32_init()
81 parity = USART_PM_EVEN; in usart_gd32_init()
94 usart_parity_config(cfg->reg, parity); in usart_gd32_init()
338 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
Duart_si32_usart.c22 uint8_t parity; member
251 enum SI32_USART_A_PARITY_Enum parity = SI32_USART_A_PARITY_ODD; in usart_si32_init() local
263 switch (config->parity) { in usart_si32_init()
268 parity = SI32_USART_A_PARITY_ODD; in usart_si32_init()
272 parity = SI32_USART_A_PARITY_EVEN; in usart_si32_init()
276 parity = SI32_USART_A_PARITY_SET; in usart_si32_init()
280 parity = SI32_USART_A_PARITY_CLEAR; in usart_si32_init()
312 SI32_USART_A_select_tx_parity(config->usart, parity); in usart_si32_init()
329 SI32_USART_A_select_rx_parity(config->usart, parity); in usart_si32_init()
381 .parity = DT_INST_ENUM_IDX_OR(index, parity, UART_CFG_PARITY_NONE), \
Duart_cdns.h101 #define CDNS_PARTITY_MAP(parity) \ argument
102 (parity == UART_CFG_PARITY_NONE) ? NO_PARITY_VAL \
103 : (parity == UART_CFG_PARITY_ODD) ? ODD_PARITY_VAL \
104 : (parity == UART_CFG_PARITY_MARK) ? MARK_PARITY_VAL \
105 : (parity == UART_CFG_PARITY_SPACE) ? SPACE_PARITY_VAL \
134 uint8_t parity; member
Duart_wch_usart.c20 uint8_t parity; member
46 switch (config->parity) { in usart_wch_init()
131 .parity = DT_INST_ENUM_IDX_OR(idx, parity, UART_CFG_PARITY_NONE), \
Duart_xlnx_ps.c89 #define XUARTPS_MR_PARITY_NONE 0x00000020U /**< No parity mode */
90 #define XUARTPS_MR_PARITY_MARK 0x00000018U /**< Mark parity mode */
91 #define XUARTPS_MR_PARITY_SPACE 0x00000010U /**< Space parity mode */
92 #define XUARTPS_MR_PARITY_ODD 0x00000008U /**< Odd parity mode */
93 #define XUARTPS_MR_PARITY_EVEN 0x00000000U /**< Even parity mode */
94 #define XUARTPS_MR_PARITY_SHIFT 3U /**< Parity setting shift */
95 #define XUARTPS_MR_PARITY_MASK 0x00000038U /**< Parity mask */
110 #define XUARTPS_IXR_PARITY 0x00000080U /**< Parity error interrupt */
155 uint32_t parity; member
303 /* Set initial character length / start/stop bit / parity configuration */ in uart_xlnx_ps_init()
[all …]
Duart_native_tty_bottom.c94 * @brief Set parity setting in the termios structure
97 * @param parity
100 enum native_tty_bottom_parity parity) in native_tty_baud_parity_set() argument
102 switch (parity) { in native_tty_baud_parity_set()
115 /* Parity options mark and space are not supported on this driver. */ in native_tty_baud_parity_set()
116 ERROR("Could not set parity.\n"); in native_tty_baud_parity_set()
212 native_tty_baud_parity_set(&ter, cfg->parity); in native_tty_configure_bottom()
Duart_pl011_registers.h67 #define PL011_RSR_ECR_PE BIT(1) /* parity error */
76 #define PL011_LCRH_PEN BIT(1) /* enable parity */
77 #define PL011_LCRH_EPS BIT(2) /* select even parity */
82 #define PL011_LCRH_SPS BIT(7) /* stick parity bit */
133 #define PL011_IMSC_PEIM BIT(8) /* parity error interrupt mask */
Duart_renesas_rz_scif.c108 switch (uart_config->parity) { in uart_rz_scif_apply_config()
110 fsp_cfg->parity = UART_PARITY_OFF; in uart_rz_scif_apply_config()
113 fsp_cfg->parity = UART_PARITY_ODD; in uart_rz_scif_apply_config()
116 fsp_cfg->parity = UART_PARITY_EVEN; in uart_rz_scif_apply_config()
282 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
Duart_max32.c97 * Set parity in api_configure()
99 if (data->conf.parity != uart_cfg->parity) { in api_configure()
102 switch (uart_cfg->parity) { in api_configure()
135 data->conf.parity = uart_cfg->parity; in api_configure()
442 .uart_conf.parity = DT_INST_ENUM_IDX_OR(_num, parity, UART_CFG_PARITY_NONE), \
Duart_stm32.c222 uint32_t parity) in uart_stm32_set_parity() argument
226 LL_USART_SetParity(config->usart, parity); in uart_stm32_set_parity()
302 static inline uint32_t uart_stm32_cfg2ll_parity(enum uart_config_parity parity) in uart_stm32_cfg2ll_parity() argument
304 switch (parity) { in uart_stm32_cfg2ll_parity()
315 static inline enum uart_config_parity uart_stm32_ll2cfg_parity(uint32_t parity) in uart_stm32_ll2cfg_parity() argument
317 switch (parity) { in uart_stm32_ll2cfg_parity()
485 const uint32_t parity = uart_stm32_cfg2ll_parity(cfg->parity); in uart_stm32_parameters_set() local
488 cfg->parity); in uart_stm32_parameters_set()
501 parity, in uart_stm32_parameters_set()
507 if (parity != uart_stm32_get_parity(dev)) { in uart_stm32_parameters_set()
[all …]
Duart_ifx_cat1.c55 .parity = CY_SCB_UART_PARITY_NONE,
85 static cyhal_uart_parity_t _convert_uart_parity_z_to_cyhal(enum uart_config_parity parity) in _convert_uart_parity_z_to_cyhal() argument
89 switch (parity) { in _convert_uart_parity_z_to_cyhal()
216 .parity = _convert_uart_parity_z_to_cyhal(cfg->parity) in ifx_cat1_uart_configure()
222 /* Configure parity, data and stop bits */ in ifx_cat1_uart_configure()
519 .dt_cfg.parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
Duart_lpc11u6x.c113 switch (cfg->parity) { in lpc11u6x_uart0_configure()
177 data->parity = cfg->parity; in lpc11u6x_uart0_configure()
188 cfg->parity = data->parity; in lpc11u6x_uart0_config_get()
357 /* Configure baudrate, parity and stop bits */ in lpc11u6x_uart0_init()
363 data->parity = UART_CFG_PARITY_NONE; in lpc11u6x_uart0_init()
521 switch (cfg->parity) { in lpc11u6x_uartx_configure()
589 /* Set parity, data bits, stop bits and re-enable UART interface */ in lpc11u6x_uartx_configure()
593 data->parity = cfg->parity; in lpc11u6x_uartx_configure()
607 cfg->parity = data->parity; in lpc11u6x_uartx_config_get()
791 /* Configure baudrate, parity and stop bits */ in lpc11u6x_uartx_init()
[all …]
Duart_numaker.c125 static inline uint32_t uart_numaker_convert_parity(enum uart_config_parity parity) in uart_numaker_convert_parity() argument
127 switch (parity) { in uart_numaker_convert_parity()
148 uint32_t parity; in uart_numaker_configure() local
168 parity = uart_numaker_convert_parity(cfg->parity); in uart_numaker_configure()
170 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, stopbits); in uart_numaker_configure()
Duart_mcux_iuart.c22 /* initial parity, 0 for none, 1 for odd, 2 for even */
23 uint8_t parity; member
247 switch (config->parity) { in mcux_iuart_init()
332 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
Duart_rcar.c60 #define SCSMR_PE BIT(5) /* Parity Enable */
61 #define SCSMR_O_E BIT(4) /* Odd Parity */
88 #define SCFSR_PER3 BIT(15) /* Parity Error Count 3 */
89 #define SCFSR_PER2 BIT(14) /* Parity Error Count 2 */
90 #define SCFSR_PER1 BIT(13) /* Parity Error Count 1 */
91 #define SCFSR_PER0 BIT(12) /* Parity Error Count 0 */
101 #define SCFSR_PER BIT(2) /* Parity Error */
205 if (cfg->parity != UART_CFG_PARITY_NONE || in uart_rcar_configure()
583 .parity = UART_CFG_PARITY_NONE, \
Duart_sam.c126 static uint32_t uart_sam_cfg2sam_parity(uint8_t parity) in uart_sam_cfg2sam_parity() argument
128 switch (parity) { in uart_sam_cfg2sam_parity()
186 * the receive line, parity chosen by config in uart_sam_configure()
189 | uart_sam_cfg2sam_parity(cfg->parity); in uart_sam_configure()
209 cfg->parity = uart_sam_get_parity(dev); in uart_sam_config_get()
412 .parity = UART_CFG_PARITY_NONE, in uart_sam_init()
/Zephyr-latest/tests/drivers/uart/uart_elementary/src/
Dmain.c141 .parity = UART_CFG_PARITY_NONE, in ZTEST()
156 zassert_equal(test_uart_config.parity, test_expected_uart_config.parity, in ZTEST()
157 "Set and actual UART config parity mismatch: %d != %d", in ZTEST()
158 test_uart_config.parity, test_expected_uart_config.parity); in ZTEST()
182 .parity = 7, in ZTEST()
202 .parity = UART_CFG_PARITY_ODD, in ZTEST()
239 .parity = UART_CFG_PARITY_EVEN, in ZTEST()
246 .parity = UART_CFG_PARITY_EVEN, in ZTEST()
/Zephyr-latest/drivers/edac/
Dshell.c29 * edac info Show EDAC ECC / Parity error info
31 * edac info parity_error [show|clear] Show Parity Errors
86 shell_error(sh, "Error getting parity error log (err %d)", err); in parity_error_show()
90 shell_fprintf(sh, SHELL_NORMAL, "Parity Error: 0x%llx\n", error); in parity_error_show()
432 shell_error(sh, "Error clear parity error log (err %d)", in cmd_parity_error_clear()
437 shell_fprintf(sh, SHELL_NORMAL, "Parity Error Log cleared\n"); in cmd_parity_error_clear()
443 SHELL_CMD(show, NULL, "Show Parity errors", cmd_parity_error_show),
444 SHELL_CMD(clear, NULL, "Clear Parity errors", cmd_parity_error_clear),
453 "Parity Error Show / Clear commands", cmd_parity_error_show),
/Zephyr-latest/tests/subsys/modbus/src/
Dtest_modbus_server.c180 .parity = UART_CFG_PARITY_ODD,
204 server_param.serial.parity = UART_CFG_PARITY_ODD; in test_server_setup_low_odd()
221 server_param.serial.parity = UART_CFG_PARITY_NONE; in test_server_setup_low_none()
238 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_high_even()
255 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_ascii()
/Zephyr-latest/tests/drivers/build_all/uart/boards/
Dqemu_cortex_m3.overlay16 parity = "none";
/Zephyr-latest/soc/microchip/mec/common/reg/
Dmec_ps2.h32 /* Protocol parity selection */
60 /* Parity Error(R/W1C) */

12345678910>>...13