Home
last modified time | relevance | path

Searched full:sd (Results 1 – 25 of 239) sorted by relevance

12345678910

/Zephyr-Core-3.6.0/subsys/sd/
DKconfig4 # SD stack configuration options
6 menu "SD" menu
16 Enable SDMMC protocol support. Required for SD memory cards to
22 Enable SDIO protocol support. Required for SD I/O cards to function.
29 Enable SD card support.
33 module = SD
34 module-str = SD stack
38 int "Timeout while initializing SD card"
41 Maximum time to wait, in milliseconds, for the SD card to initialize.
50 int "Number of times to retry SD OCR read"
[all …]
Dsd_utils.h8 * Common utility functions for SD subsystem
15 #include <zephyr/sd/sd.h>
22 * Custom SD return codes. Used internally to indicate conditions that may
31 /* Checks SD status return codes */
40 /* Delay function for SD subsystem */
47 * Helper function to retry sending command to SD card
Dsd.c9 #include <zephyr/sd/sd.h>
10 #include <zephyr/sd/sdmmc.h>
11 #include <zephyr/sd/sd_spec.h>
19 LOG_MODULE_REGISTER(sd, CONFIG_SD_LOG_LEVEL);
35 /* Sends CMD8 during SD initialization */
49 LOG_DBG("SD CMD8 failed with error %d", ret); in sd_send_interface_condition()
72 /* Sends CMD59 to enable CRC checking for SD card in SPI mode */
88 * Perform init required for both SD and SDIO cards.
89 * This function performs the following portions of SD initialization
90 * - CMD0 (SD reset)
[all …]
Dsdmmc.c9 #include <zephyr/sd/sd.h>
10 #include <zephyr/sd/sdmmc.h>
11 #include <zephyr/sd/sd_spec.h>
19 LOG_MODULE_DECLARE(sd, CONFIG_SD_LOG_LEVEL);
63 /* Helper to send SD app command */
152 /* Reads SD configuration register */
166 LOG_DBG("SD app command failed for SD SCR"); in sdmmc_read_scr()
189 LOG_DBG("SD reports specification version %d", card->sd_version); in sdmmc_read_scr()
205 /* Sets block length of SD card */
220 * SD host controller specification
[all …]
/Zephyr-Core-3.6.0/include/zephyr/sd/
Dsdmmc.h9 * @brief Public API for SD memory card subsystem
17 #include <zephyr/sd/sd.h>
24 * @brief Write blocks to SD card from buffer
26 * Writes blocks from SD buffer to SD card. For best performance, this buffer
28 * @param card SD card to write from
41 * @brief Read block from SD card to buffer
43 * Reads blocks into SD buffer from SD card. For best performance, this buffer
45 * @param card SD card to read from
58 * @brief Get I/O control data from SD card
60 * Sends I/O control commands to SD card.
[all …]
Dsd.h9 * @brief Public API for SD subsystem
36 CARD_SDMMC = 0, /*!< SD memory card */
37 CARD_SDIO = 1, /*!< SD I/O card */
38 CARD_COMBO = 2, /*!< SD memory and I/O card */
57 * @brief SD card structure
59 * This structure is used by the subsystem to track an individual SD
64 const struct device *sdhc; /*!< SD host controller for card */
70 struct sd_switch_caps switch_caps; /*!< SD switch capabilities */
71 unsigned int num_io: 3; /*!< I/O function count. 0 for SD cards */
73 uint32_t block_count; /*!< Number of blocks in SD card */
[all …]
Dsd_spec.h8 * SD card specification
21 * @brief SD specification command opcodes
23 * SD specification command opcodes. Note that some command opcodes are
24 * specific to SDIO cards, or cards running in SPI mode instead of native SD
65 * @brief SD application command opcodes.
68 * to inform the SD card the next command is an application-specific one.
81 * @brief Native SD mode R1 response status flags
83 * Native response flags for SD R1 response, used to check for error in command.
133 * @brief SD current state values
135 * SD current state values, contained in R1 response data.
[all …]
/Zephyr-Core-3.6.0/doc/hardware/peripherals/
Dsdhc.rst7 The SDHC api offers a generic interface for interacting with an SD host
8 controller device. It is used by the SD subsystem, and is not intended to be
14 SD Host Controller
17 An SD host controller is a device capable of sending SD commands to an attached
18 SD card. These commands can be sent using the native SD protocol, or over SPI.
19 Some SD host controllers are also capable of communicating with MMC devices.
21 interact with attached SD devices.
29 or the ``response`` field of the SD command structure to determine if the
38 The :c:func:`sdhc_set_io` api allows the user to change I/O settings of the SD
41 controllers typically cannot toggle power to the SD card.
/Zephyr-Core-3.6.0/tests/subsys/sd/sdmmc/
DREADME.txt4 This test is designed to verify the SD subsystem stack implementation,
6 subsystem. Due to the differences between underlying SD host controller drivers,
8 use. It requires an SD card be connected to the board to pass, and will
12 * Init test: verify the SD host controller can detect card presence, and
14 can correctly initialize an SD card.
16 * IOCTL test: verify the SD subsystem correctly implements IOCTL calls required
27 * R/W test: write data to the SD card, and verify that it is able
29 sector locations across the SD card.
/Zephyr-Core-3.6.0/doc/services/storage/disk/
Daccess.rst11 SD Card support
14 Zephyr has support for some SD card controllers and support for interfacing
15 SD cards via SPI. These drivers use disk driver interface and a file system
16 can access the SD cards via disk access API.
17 Both standard and high-capacity SD cards are supported.
26 SD Memory Card subsystem
29 Zephyr supports SD memory cards via the disk driver API, or via the SDMMC
32 interacts with the :ref:`sd host controller api <sdhc_api>` to communicate
33 with attached SD cards.
36 SD Card support via SPI
[all …]
/Zephyr-Core-3.6.0/include/zephyr/drivers/
Dsdhc.h9 * @brief SD Host Controller public API header file.
17 #include <zephyr/sd/sd_spec.h>
32 * @name SD command timeouts
39 * @brief SD host controller command structure
41 * This command structure is used to send command requests to an SD
42 * host controller, which will be sent to SD devices.
45 uint32_t opcode; /*!< SD Host specification CMD index */
46 uint32_t arg; /*!< SD host specification argument */
47 uint32_t response[4]; /*!< SD card response field */
48 uint32_t response_type; /*!< Expected SD response type */
[all …]
/Zephyr-Core-3.6.0/arch/x86/core/ia32/
Dtls.c25 struct segment_descriptor *sd = &_gdt.entries[ENTRY_NUM]; in z_x86_tls_update_gdt() local
27 sd->base_low = thread->tls & 0xFFFFU; in z_x86_tls_update_gdt()
28 sd->base_mid = (thread->tls >> 16) & 0xFFU; in z_x86_tls_update_gdt()
29 sd->base_hi = (thread->tls >> 24) & 0xFFU; in z_x86_tls_update_gdt()
37 struct segment_descriptor *sd = &_gdt.entries[ENTRY_NUM]; in z_x86_early_tls_update_gdt() local
47 sd->base_low = POINTER_TO_UINT(self_ptr) & 0xFFFFU; in z_x86_early_tls_update_gdt()
48 sd->base_mid = (POINTER_TO_UINT(self_ptr) >> 16) & 0xFFU; in z_x86_early_tls_update_gdt()
49 sd->base_hi = (POINTER_TO_UINT(self_ptr) >> 24) & 0xFFU; in z_x86_early_tls_update_gdt()
/Zephyr-Core-3.6.0/dts/bindings/sdhc/
Dnxp,imx-usdhc.yaml18 Data timeout, as multiple of the SD clock. See DTOCV field of USDHC
45 This pin defaults to active high when consumed by the SD card. The
53 This pin defaults to active low when produced by the SD card. The
60 When the external SD card circuit does not support 1.8V, add this
61 property to disable 1.8v card voltage of SD card controller.
66 Enable the host to detect an SD card via the DAT3 line of the SD card
Dsdhc.yaml4 # Common fields for SD host controllers
8 bus: sd
36 Maximum bus frequency for SD card. This should be the highest frequency
43 Minimum bus frequency for SD card. This should be the frequency that
50 time in ms for SDHC to delay when toggling power to the SD card. This
Dnxp,lpc-sdif.yaml4 description: NXP LPC SDIF SD host controller
18 Data timeout, as multiple of the SD clock. See DATA_TIMEOUT field of SDIF.
25 Response timeout, as multiple of the SD clock. See RESPONSE_TIMEOUT field
32 Number of SD host clocks to use as a chip detect debounce filter. See
/Zephyr-Core-3.6.0/tests/drivers/sdhc/
DREADME.txt5 SD host controller API. It requires that an SD card be present on the SD bus
24 Note that this test does not verify the tuning or card busy api, as the SD
26 require implementing a large portion of the SD subsystem in this test.
/Zephyr-Core-3.6.0/drivers/sdhc/
DKconfig7 Include drivers for SD host controller
29 Some SD host controllers require alignment of their data buffers
44 Enables SPI protocol in SD protocol stack
49 Selected by host controller driver if native SD mode support is
50 required. Enables native protocol in SD protocol stack.
DKconfig.sam_hsmci10 Enable the ATMEL SAM HSMCI MMC/SD card driver.
24 Power-save mode reduces the clock-speed during SD card
33 SD clock freqeuncy is divided by 2**(N+1) where N
/Zephyr-Core-3.6.0/tests/subsys/sd/mmc/
DREADME.txt6 subsystem. Due to the differences between underlying SD host controller drivers,
8 use. It requires an SD card be connected to the board to pass, and will
12 * Init test: verify the SD host controller can detect card presence, and
14 can correctly initialize an SD card.
16 * IOCTL test: verify the SD subsystem correctly implements IOCTL calls required
/Zephyr-Core-3.6.0/dts/bindings/sd/
Dzephyr,sdmmc-disk.yaml2 Zephyr MMC disk node. A binding with this compatible present within an SD
4 SD bus. This binding will enable that disk to be used with the disk driver
9 include: [sd-device.yaml]
Dzephyr,mmc-disk.yaml2 Zephyr MMC disk node. A binding with this compatible present within an SD
4 SD bus. This binding will enable that to be used with the disk driver
9 include: [sd-device.yaml]
/Zephyr-Core-3.6.0/tests/bluetooth/adv/src/
Dmain.c23 static const struct bt_data sd[] = { variable
43 sd, ARRAY_SIZE(sd)); in ZTEST()
50 sd, ARRAY_SIZE(sd)); in ZTEST()
/Zephyr-Core-3.6.0/drivers/wifi/simplelink/
Dsimplelink_sockets.c33 #define SD_TO_OBJ(sd) ((void *)(sd + 1)) argument
250 int sd; in simplelink_socket() local
279 sd = sl_Socket(family, type, sl_proto); in simplelink_socket()
280 if (sd >= 0) { in simplelink_socket()
286 retval = sl_SetSockOpt(sd, SL_SOL_SOCKET, in simplelink_socket()
291 (void)sl_Close(sd); in simplelink_socket()
297 retval = sd; in simplelink_socket()
309 int sd = OBJ_TO_SD(obj); in simplelink_close() local
312 retval = sl_Close(sd); in simplelink_close()
419 int sd = OBJ_TO_SD(obj); in simplelink_accept() local
[all …]
/Zephyr-Core-3.6.0/drivers/disk/
DKconfig.mmc20 default "SD" if FAT_FILESYSTEM_ELM
26 bool "MMC access via SD subsystem"
31 Enable MMC access via SD subsystem.
/Zephyr-Core-3.6.0/samples/subsys/zbus/uart_bridge/src/
Dperipheral.c38 struct sensor_data_msg sd = {0, 0}; in peripheral_thread() local
43 sd.a += 1; in peripheral_thread()
44 sd.b += 10; in peripheral_thread()
46 zbus_chan_pub(&sensor_data_chan, &sd, K_MSEC(250)); in peripheral_thread()

12345678910