Searched refs:SAMPLE_DATA_SIZE (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/samples/psa/its/src/ |
D | main.c | 13 #define SAMPLE_DATA_SIZE CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE macro 15 #define SAMPLE_DATA_SIZE 128 macro 24 uint8_t p_data_write[SAMPLE_DATA_SIZE]; in write_and_read_data() 37 uint8_t p_data_read[SAMPLE_DATA_SIZE]; in write_and_read_data() 40 const size_t data_offset = SAMPLE_DATA_SIZE / 2; in write_and_read_data() 52 if (p_data_length != SAMPLE_DATA_SIZE - data_offset) { in write_and_read_data() 54 p_data_length, SAMPLE_DATA_SIZE - data_offset); in write_and_read_data() 83 if (p_info.capacity != SAMPLE_DATA_SIZE in read_info() 84 || p_info.size != SAMPLE_DATA_SIZE in read_info()
|
/Zephyr-latest/tests/subsys/shell/shell_backend_uart/src/ |
D | main.c | 21 #define SAMPLE_DATA_SIZE EMUL_UART_TX_FIFO_SIZE(0) macro 57 uint8_t tx_content[SAMPLE_DATA_SIZE] = {0}; in ZTEST_F() 64 uart_emul_get_tx_data(fixture->dev, tx_content, SAMPLE_DATA_SIZE); in ZTEST_F() 71 uint8_t tx_content[SAMPLE_DATA_SIZE] = {0}; in ZTEST_F() 78 uart_emul_get_tx_data(fixture->dev, tx_content, SAMPLE_DATA_SIZE); in ZTEST_F() 84 uint8_t tx_content[SAMPLE_DATA_SIZE] = {0}; in ZTEST_F() 91 uart_emul_get_tx_data(fixture->dev, tx_content, SAMPLE_DATA_SIZE); in ZTEST_F() 113 uint8_t tx_content[SAMPLE_DATA_SIZE] = {0}; in setup() 125 uart_emul_get_tx_data(fixture.dev, tx_content, SAMPLE_DATA_SIZE); in setup()
|
/Zephyr-latest/tests/drivers/uart/uart_emul/src/ |
D | bus.c | 20 #define SAMPLE_DATA_SIZE MIN(EMUL_UART_RX_FIFO_SIZE, EMUL_UART_TX_FIFO_SIZE) - 1 macro 24 uint8_t sample_data[SAMPLE_DATA_SIZE]; 25 uint8_t tx_content[SAMPLE_DATA_SIZE]; 26 uint8_t rx_content[SAMPLE_DATA_SIZE]; 42 for (size_t i = 0; i < SAMPLE_DATA_SIZE; i++) { in uart_emul_setup() 78 fixture->tx_remaining = SAMPLE_DATA_SIZE; in uart_emul_before() 79 fixture->rx_remaining = SAMPLE_DATA_SIZE; in uart_emul_before() 92 uint8_t tx_content[SAMPLE_DATA_SIZE] = {0}; in ZTEST_F() 95 for (size_t i = 0; i < SAMPLE_DATA_SIZE; i++) { in ZTEST_F() 100 zassert_equal(tx_len, SAMPLE_DATA_SIZE, "TX buffer length does not match"); in ZTEST_F() [all …]
|
D | device.c | 27 #define SAMPLE_DATA_SIZE MIN(EMUL_UART_RX_FIFO_SIZE, EMUL_UART_TX_FIFO_SIZE) - 1 macro 31 uint8_t sample_data[SAMPLE_DATA_SIZE]; 32 uint8_t rx_content[SAMPLE_DATA_SIZE]; 48 for (size_t i = 0; i < SAMPLE_DATA_SIZE; i++) { in uart_emul_device_setup() 83 fixture->tx_remaining = SAMPLE_DATA_SIZE; in uart_emul_device_before() 84 fixture->rx_remaining = SAMPLE_DATA_SIZE; in uart_emul_device_before() 101 for (size_t i = 0; i < SAMPLE_DATA_SIZE; ++i) { in ZTEST_F() 108 for (size_t i = 0; i < SAMPLE_DATA_SIZE; ++i) { in ZTEST_F() 183 tx_len = uart_emul_get_tx_data(fixture->dev, NULL, SAMPLE_DATA_SIZE); in ZTEST_F() 188 zassert_mem_equal(fixture->rx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F() [all …]
|
/Zephyr-latest/tests/subsys/logging/log_backend_uart/src/ |
D | main.c | 19 #define SAMPLE_DATA_SIZE EMUL_UART_TX_FIFO_SIZE(0) macro 23 BUILD_ASSERT((sizeof(TEST_DATA) - 1) < SAMPLE_DATA_SIZE); 59 static uint8_t tx_content[SAMPLE_DATA_SIZE]; in ZTEST_F()
|