Home
last modified time | relevance | path

Searched +full:512 +full:- +full:byte (Results 1 – 25 of 93) sorted by relevance

1234

/Zephyr-latest/subsys/modem/backends/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
28 int "Modem ISR UART delay between first byte received and RECEIVE_READY pipe event"
32 when receiving a byte before sending the RECEIVE_READY pipe event.
36 (<UART receive_buf_size> / 2) / (<UART baud rate> / <UART bits per byte>) * <ms per sec>
37 By default (for the modem_cellular driver): (512 / 2) / (115200 / 10) * 1000 = 22,222 => 20
/Zephyr-latest/dts/bindings/mtd/
Dnordic,qspi-nor.yaml2 # SPDX-License-Identifier: Apache-2.0
7 compatible: "nordic,qspi-nor"
9 include: [base.yaml, "jedec,spi-nor-common.yaml"]
11 on-bus: qspi
17 jedec-id:
23 The size in bits. Set this or size-in-bytes, but not both.
25 size-in-bytes:
31 quad-enable-requirements:
37 - "fastread" # Single data line SPI, FAST_READ (0x0B)
38 - "read2o" # Dual data line SPI, READ2O (0x3B)
[all …]
/Zephyr-latest/samples/subsys/usb/mass/
DREADME.rst1 .. zephyr:code-sample:: usb-mass
3 :relevant-api: usbd_api usbd_msc_device _usb_device_core_api file_system_api
25 The selection between a RAM-based or a FLASH-based disk and file system
26 can be chosen passing Kconfig configuration via the -D command-line switch.
28 RAM-disk Example without any file system
31 The default configurations selects RAM-based disk without any file system.
32 This example only needs additional 96KiB RAM for the RAM-disk and is intended
35 .. zephyr-app-commands::
36 :zephyr-app: samples/subsys/usb/mass
38 :gen-args: -DEXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
[all …]
/Zephyr-latest/tests/drivers/disk/disk_performance/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
25 /* Assume the largest sector we will encounter is 512 bytes */
26 #define SECTOR_SIZE 512
27 #if CONFIG_SRAM_SIZE >= 512
34 /* Two buffers with 512 byte blocks will use half of all SRAM */
78 /* Assume sector size is 512 bytes, it will speed up calculations later */ in test_setup()
238 TC_PRINT("512 Byte IOPS over %d random reads: %"PRIu64" IOPS\n", in ZTEST()
290 TC_PRINT("512 Byte IOPS over %d random writes: %"PRIu64" IOPS\n", in ZTEST()
/Zephyr-latest/tests/subsys/usb/device/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
15 #define BULK_EP_MPS 512
122 uint8_t byte; in ZTEST() local
133 zassert_not_equal(usb_dc_ep_is_stalled(INVALID_EP, &byte), TC_PASS, in ZTEST()
159 zassert_not_equal(usb_dc_ep_write(INVALID_EP, &byte, sizeof(byte), in ZTEST()
164 zassert_not_equal(usb_dc_ep_read(INVALID_EP, &byte, sizeof(byte), in ZTEST()
167 zassert_not_equal(usb_dc_ep_read_wait(INVALID_EP, &byte, sizeof(byte), in ZTEST()
181 uint8_t byte; in ZTEST() local
184 zassert_not_equal(usb_read(INVALID_EP, &byte, sizeof(byte), &size), in ZTEST()
188 zassert_not_equal(usb_write(INVALID_EP, &byte, sizeof(byte), &size), in ZTEST()
/Zephyr-latest/subsys/usb/device/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
16 module-str = usb device
39 default "USB-DEV"
87 default y if BT_BUF_ACL_RX_SIZE > 123 # 4 byte header
88 default y if BT_BUF_ACL_TX_SIZE > 123 # 4 byte header
89 default y if BT_BUF_EVT_RX_SIZE > 125 # 2 byte header
90 default y if BT_BUF_CMD_TX_SIZE > 124 # 3 byte header
94 range 64 512 if USB_DEVICE_NETWORK_RNDIS
126 bool "Set Self-powered characteristic"
129 Set Self-powered characteristic in bmAttributes to indicate
[all …]
/Zephyr-latest/include/zephyr/net/
Dtftp.h4 * SPDX-License-Identifier: Apache-2.0
29 * RFC1350: the file is sent in fixed length blocks of 512 bytes.
32 * A data packet of less than 512 bytes signals termination of a transfer.
34 #define TFTP_BLOCK_SIZE 512
37 * RFC1350: For non-request TFTP message, the header contains 2-byte operation
38 * code plus 2-byte block number or error code.
50 #define TFTPC_DUPLICATE_DATA -1 /**< Duplicate data received. */
51 #define TFTPC_BUFFER_OVERFLOW -2 /**< User buffer is too small. */
52 #define TFTPC_UNKNOWN_FAILURE -3 /**< Unknown failure. */
53 #define TFTPC_REMOTE_ERROR -4 /**< Remote server error. */
[all …]
/Zephyr-latest/dts/bindings/flash_controller/
Dst,stm32-ospi-nor.yaml2 # SPDX-License-Identifier: Apache-2.0
9 mx25lm51245: ospi-nor-flash@70000000 {
10 compatible = "st,stm32-ospi-nor";
11 reg = <0x70000000 DT_SIZE_M(64)>; /* 512 Mbits */
12 data-mode = <OSPI_OPI_MODE>; /* access on 8 data lines */
13 data-rate = <OSPI_DTR_TRANSFER>; /* access in DTR */
14 ospi-max-frequency = <DT_FREQ_M(50)>;
18 compatible: "st,stm32-ospi-nor"
20 include: ["flash-controller.yaml", "jedec,jesd216.yaml"]
22 on-bus: ospi
[all …]
/Zephyr-latest/samples/subsys/fs/format/
DREADME.rst1 .. zephyr:code-sample:: fs-format
3 :relevant-api: file_system_api
29 .. zephyr-app-commands::
30 :zephyr-app: samples/subsys/fs/format
35 The RAM disk sample for the MIMXRT1064-EVK board can be built as follow:
37 .. zephyr-app-commands::
38 :zephyr-app: samples/subsys/fs/format
48 .. code-block:: console
51 I: FS at flash-controller@4001e000:0x7a000 is 6 0x1000-byte blocks with 512 cycle
/Zephyr-latest/drivers/espi/
DKconfig.npcx4 # SPDX-License-Identifier: Apache-2.0
24 64/128/256/512/1024/2048/4096 bytes.
34 8/16/32/64/128/256/512/1024/2048/4096 bytes.
60 The size of the ring buffer in byte used by the Port80 ISR to store
/Zephyr-latest/boards/beagle/beaglev_fire/doc/
Dindex.rst6 BeagleV®-Fire is a revolutionary single-board computer (SBC) powered by the Microchip’s
7 PolarFire® MPFS025T 5x core RISC-V System on Chip (SoC) with FPGA fabric. BeagleV®-Fire opens up new
8 horizons for developers, tinkerers, and the open-source community to explore the vast potential of
9 RISC-V architecture and FPGA technology. It has the same P8 & P9 cape header pins as BeagleBone
11 Built around the powerful and energy-efficient RISC-V instruction set architecture (ISA) along with
12 its versatile FPGA fabric, BeagleV®-Fire SBC offers unparalleled opportunities for developers,
13 hobbyists, and researchers to explore and experiment with RISC-V technology.
18 There are three board configurations provided for the BeagleV-Fire:
26 .. zephyr-app-commands::
27 :zephyr-app: samples/hello_world
[all …]
/Zephyr-latest/soc/espressif/esp32/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
65 int "Ethernet DMA buffer size (Byte)"
67 default 512
/Zephyr-latest/tests/kernel/mem_heap/k_heap_api/src/
Dtest_kheap_api.c4 * SPDX-License-Identifier: Apache-2.0
11 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
74 /** @brief Test a minimum-size static k_heap
77 * @details Create a minimum size (1-byte) static heap, verify that it
78 * works to allocate that byte at runtime and that it doesn't overflow
110 * @details The test allocates 1024 bytes from 2048 byte heap,
247 char *q = (char *)k_heap_alloc(&k_heap_test, 512, K_NO_WAIT); in ZTEST()
277 * total of 1024 bytes from the 2048 byte heap. It checks if allocation
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
23 static uint8_t small_buffer[512];
32 /* 00-00-5E-00-53-xx Documentation RFC 7042 */ in fake_dev_iface_init()
95 if (!pkt || !pkt->cursor.buf || !pkt->cursor.pos) { in pkt_print_cursor()
99 pkt->cursor.pos - pkt->cursor.buf->data, in pkt_print_cursor()
100 pkt->cursor.pos, pkt->cursor.buf, in pkt_print_cursor()
101 pkt->cursor.buf->data); in pkt_print_cursor()
107 * HOW TO ALLOCATE - 2 TESTS *
119 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
129 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/coap/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
21 bool "CoAP ./well-known/core services block wise support"
24 to ./well-known/core request. Without this option all resource's
30 int "CoAP ./well-known/core services block wise support"
35 256, 512 and 1024.
41 CoAP extended options length can be 2 byte value, which
96 This option enables MQTT-style wildcards in path. Disable it if
102 This option enables keeping application-specific user data
108 This option enables the API for CoAP-client for sending CoAP requests
119 int "LWM2M CoAP block-wise transfer size"
[all …]
/Zephyr-latest/subsys/shell/backends/
DKconfig.backends4 # SPDX-License-Identifier: Apache-2.0
15 DT_CHOSEN_Z_SHELL_UART := zephyr,shell-uart
135 Determines how often UART is polled for RX byte.
145 default-timeout = 100
148 default-size = 512
211 Select index of up-buffer used for shell output, by default it uses
212 terminal up-buffer and its settings.
226 data periodically. Period starts from 1-2 milliseconds and can be
235 Determines how often RTT is polled for RX byte.
238 default-timeout = 100
[all …]
/Zephyr-latest/drivers/sdhc/
Dsdhc_spi.c4 * SPDX-License-Identifier: Apache-2.0
31 * 512 byte array of ones and remove the limit on the number of bytes
88 BUILD_ASSERT(sizeof(sdhc_ones) == 512, "0xFF array for SDHC must be 512 bytes");
149 const struct sdhc_spi_config *config = dev->config; in sdhc_spi_init_card()
150 struct sdhc_spi_data *data = dev->data; in sdhc_spi_init_card()
151 struct spi_config *spi_cfg = data->spi_cfg; in sdhc_spi_init_card()
154 if (spi_cfg->frequency == 0) { in sdhc_spi_init_card()
156 spi_cfg->frequency = SDMMC_CLOCK_400KHZ; in sdhc_spi_init_card()
160 if (pm_device_runtime_get(config->spi_dev) < 0) { in sdhc_spi_init_card()
161 return -EIO; in sdhc_spi_init_card()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_oc_simple.c4 * SPDX-License-Identifier: Apache-2.0
29 0x20, /* 512 */
41 if (spi_context_configured(&spi->ctx, config)) { in spi_oc_simple_configure()
46 if (config->operation & SPI_HALF_DUPLEX) { in spi_oc_simple_configure()
47 LOG_ERR("Half-duplex not supported"); in spi_oc_simple_configure()
48 return -ENOTSUP; in spi_oc_simple_configure()
52 if (spi_context_is_slave(&spi->ctx)) { in spi_oc_simple_configure()
54 return -ENOTSUP; in spi_oc_simple_configure()
57 if ((config->operation & (SPI_MODE_LOOP | SPI_TRANSFER_LSB)) || in spi_oc_simple_configure()
59 (config->operation & in spi_oc_simple_configure()
[all …]
/Zephyr-latest/drivers/console/
DKconfig3 # Copyright (c) 2014-2015 Wind River Systems, Inc.
5 # SPDX-License-Identifier: Apache-2.0
95 Useful in board bring-up if there aren't any working serial
99 DT_CHOSEN_Z_RAM_CONSOLE := zephyr,ram-console
107 be examined at runtime with a debugger. Useful in board bring-up
117 examined by a debugger or software tool from a parallel-running OS.
126 NULL-terminated leave one byte unused, the actual length is
127 one byte less. Messages will wrap around if the actual length
136 Segger J-Link software and displayed on a computer in real-time.
137 Requires support for Segger J-Link on the companion IC onboard.
[all …]
/Zephyr-latest/subsys/fs/
DKconfig.littlefs4 # SPDX-License-Identifier: Apache-2.0
59 compact bitmap, so each byte of RAM can track 8 blocks. Must
64 default 512
67 is moved to another block. Set to a non-positive value to
76 littlefs requires a per-file buffer to cache data.
84 per-allocation overhead that affects how much usable space is
87 If this option is set to a non-positive value the heap is sized to
94 int "Size of per-allocation overhead for littleFS heap in bytes"
101 NOTE: when your app fails to open pre-defined number of files, as set
123 default y if $(dt_compat_any_has_prop,$(DT_COMPAT_ZEPHYR_FSTAB_LITTLEFS),disk-version)
/Zephyr-latest/subsys/shell/
DKconfig3 # Copyright (c) 2014-2015 Wind River Systems, Inc.
6 # SPDX-License-Identifier: Apache-2.0
16 module-str = Shell
23 This is a meta-configuration option to significantly reduce the flash
78 Maximum prompt size in bytes. One byte is reserved for the string
86 Maximum command size in bytes. One byte is reserved for the string
162 If enabled shell prints back every input byte.
207 bool "Parse -h and --help options"
212 Shell parses command to find '-h' or '--help' string. If the shell
232 default 512
[all …]
/Zephyr-latest/drivers/bluetooth/hci/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
29 Bluetooth three-wire (H:5) UART driver. Implementation of HCI
30 Three-Wire UART Transport Layer.
48 HCI packets are sent and received as single Byte transfers,
77 bool "ACI message with BlueNRG-based devices"
82 Stack. Current driver supports: ST BLUENRG-MS.
213 HCI packets are sent and received as single Byte transfers.
225 default 512
238 Infineon's AIROC™ Wi-Fi & combos portfolio integrates
239 IEEE 802.11a/b/g/n/ac/ax Wi-Fi and Bluetooth® 5.2 in a single-chip
[all …]
/Zephyr-latest/samples/drivers/spi_flash_at45/
DREADME.rst1 .. zephyr:code-sample:: spi-flash-at45
3 :relevant-api: flash_interface
14 increasing (and overflowing at the 8-bit range) values and then reads it back
19 The :zephyr_file:`samples/drivers/spi_flash_at45/overlay-pm.conf` enables the
21 The :zephyr_file:`samples/drivers/spi_flash_at45/overlay-page_layout.conf`
25 the Read-Modify-Write functionality of DataFlash chips and does not perform
44 .. zephyr-app-commands::
45 :zephyr-app: samples/drivers/spi_flash_at45
52 .. zephyr-app-commands::
53 :zephyr-app: samples/drivers/spi_flash_at45
[all …]
/Zephyr-latest/tests/lib/multi_heap/src/
Dtest_mheap_api.c4 * SPDX-License-Identifier: Apache-2.0
13 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
45 k_current_get()->resource_pool = NULL; in thread_entry()
218 zassert_not_equal(NULL, r, "aligned alloc of 1 byte failed"); in ZTEST()
221 "%p not %u-byte-aligned", in ZTEST()
225 /* allocate with > 8 byte alignment */ in ZTEST()
228 zassert_not_equal(NULL, r, "16-byte-aligned alloc failed"); in ZTEST()
231 "%p not 16-byte-aligned", r); in ZTEST()
362 zassert_not_null(blocks[i], "final re-allocation failed"); in ZTEST()
372 (uintptr_t)blocks[i] + MHEAP_BYTES / 2 - 1, in ZTEST()
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_uart.c4 * SPDX-License-Identifier: Apache-2.0
36 * After first byte is received the current state is moved to receiving
82 if (r->prtcl_ver != 3) { in request_expected_size()
86 /* Reserved byte should be 0 */ in request_expected_size()
87 if (r->reserved) { in request_expected_size()
91 return sizeof(*r) + r->data_len; in request_expected_size()
103 /* Timeout after receiving first byte */
108 * to handle a request/response header, flash write offset/size and 512 bytes
121 switch (hc_uart->state) { in rx_timeout()
140 LOG_ERR("Request timeout mishandled, state: %d", hc_uart->state); in rx_timeout()
[all …]

1234