Home
last modified time | relevance | path

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

12345678910>>...15

/Zephyr-latest/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);
36 * Perform init required for both SD and SDIO cards.
37 * This function performs the following portions of SD initialization
38 * - CMD0 (SD reset)
39 * - CMD8 (SD voltage check)
62 LOG_DBG("SD CMD8 failed with error %d", ret); in sd_send_interface_condition()
85 /* Sends CMD59 to enable CRC checking for SD card in SPI mode */
[all …]
/Zephyr-latest/boards/shields/pmod_sd/doc/
Dindex.rst3 Digilent Pmod SD
9 The Digilent Pmod SD (Revision B) allows system boards to read from and write to SD cards.
14 - Full-sized SD card slot
16 - No limitation on file system or memory size of SD card used
36 :alt: PMOD SD Pinout
38 PMOD SD Pinout (Credit: Digilent)
43 - `Pmod SD product page`_
44 - `Pmod SD reference manual`_
45 - `Pmod SD schematic`_
47 .. _Pmod SD product page:
[all …]
/Zephyr-latest/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
22 * @brief SD specification command opcodes
24 * SD specification command opcodes. Note that some command opcodes are
25 * specific to SDIO cards, or cards running in SPI mode instead of native SD
66 * @brief SD application command opcodes.
69 * to inform the SD card the next command is an application-specific one.
82 * @brief Native SD mode R1 response status flags
84 * Native response flags for SD R1 response, used to check for error in command.
134 * @brief SD current state values
136 * SD current state values, contained in R1 response data.
[all …]
/Zephyr-latest/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-latest/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-latest/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
73 Use the host's internal card detect signal (USDHC_CD) to detect the SD
75 and should be connected to the SD slot's detect pin if used.
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-latest/include/zephyr/drivers/
Dsdhc.h9 * @brief SD Host Controller public API header file.
17 #include <zephyr/sd/sd_spec.h>
34 * @name SD command timeouts
41 * @brief SD host controller command structure
43 * This command structure is used to send command requests to an SD
44 * host controller, which will be sent to SD devices.
47 uint32_t opcode; /*!< SD Host specification CMD index */
48 uint32_t arg; /*!< SD host specification argument */
49 uint32_t response[4]; /*!< SD card response field */
50 uint32_t response_type; /*!< Expected SD response type */
[all …]
/Zephyr-latest/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-latest/doc/services/storage/disk/
Daccess.rst14 Since many disk devices (such as SD cards) are hotpluggable, the disk access
40 SD Card support
43 Zephyr has support for some SD card controllers and support for interfacing
44 SD cards via SPI. These drivers use disk driver interface and a file system
45 can access the SD cards via disk access API.
46 Both standard and high-capacity SD cards are supported.
52 SD Memory Card subsystem
55 Zephyr supports SD memory cards via the disk driver API, or via the SDMMC
58 interacts with the :ref:`sd host controller api <sdhc_api>` to communicate
59 with attached SD cards.
[all …]
/Zephyr-latest/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-latest/drivers/sdhc/
DKconfig7 Include drivers for SD host controller
32 Some SD host controllers require alignment of their data buffers
47 Enables SPI protocol in SD protocol stack
52 Selected by host controller driver if native SD mode support is
53 required. Enables native protocol in SD protocol stack.
Dsdhc_esp32.h7 #define SDMMC_FREQ_DEFAULT 20000 /*!< SD/MMC Default speed (limited by clock divider) */
8 #define SDMMC_FREQ_HIGHSPEED 40000 /*!< SD High speed (limited by clock divider) */
9 #define SDMMC_FREQ_PROBING 400 /*!< SD/MMC probing speed */
86 * SD/MMC command information
89 uint32_t opcode; /*!< SD or MMC command index */
90 uint32_t arg; /*!< SD/MMC command argument */
121 ret = -ENODEV; /* SD card not inserted (requires CD signal) */ in err_esp2zep()
124 ret = -EACCES; /* SD card write-protected (requires WP sinal) */ in err_esp2zep()
DKconfig.sam_hsmci11 Enable the ATMEL SAM HSMCI MMC/SD card driver.
25 Power-save mode reduces the clock-speed during SD card
34 SD clock freqeuncy is divided by 2**(N+1) where N
/Zephyr-latest/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-latest/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-latest/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-latest/dts/bindings/sd/
Dzephyr,sdmmc-disk.yaml2 Zephyr SDMMC 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-latest/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>>...15