/Zephyr-Core-2.7.6/drivers/eeprom/ |
D | Kconfig | 1 # EEPROM driver configuration options 6 menuconfig EEPROM config 7 bool "EEPROM hardware support" 9 Enable support for EEPROM hardware. 11 if EEPROM 13 module = EEPROM 14 module-str = eeprom 18 bool "Enable EEPROM shell" 22 Enable the EEPROM shell with EEPROM related commands. 25 int "EEPROM shell buffer size" [all …]
|
D | eeprom_shell.c | 10 * @brief EEPROM shell commands. 14 #include <drivers/eeprom.h> 35 const struct device *eeprom; in cmd_read() local 45 eeprom = device_get_binding(argv[args_indx.device]); in cmd_read() 46 if (!eeprom) { in cmd_read() 47 shell_error(shell, "EEPROM device not found"); in cmd_read() 51 shell_print(shell, "Reading %d bytes from EEPROM, offset %d...", len, in cmd_read() 58 err = eeprom_read(eeprom, addr, data, pending); in cmd_read() 60 shell_error(shell, "EEPROM read failed (err %d)", err); in cmd_read() 76 const struct device *eeprom; in cmd_write() local [all …]
|
D | Kconfig.eeprom_emu | 5 bool "Emulated EEPROM driver" 8 Enable emulated (on flash) EEPROM support. This mimics an external 9 EEPROM on a flash partition. The number of writes that can be 10 performed to the EEPROM is maximized by using a flash area that is 11 larger than the EEPROM area and by storing only changes to the EEPROM 15 int "EEPROM emulator init priority"
|
D | eeprom_emulator.c | 8 * This driver emulates an EEPROM device in flash. 10 * The emulation represents the EEPROM in flash as a region that is a direct 11 * map of the EEPROM data (EEPROM data) followed by a region where changes to 12 * the EEPROM data (EEPROM changes) are stored. The combination of EEPROM data 13 * and EEPROM changes form a EEPROM page (see drawing below). Changes to EEPROM 15 * is determined by the flash write block size and the size of the EEPROM 18 * When there is no more space to store changes a new EEPROM page is taken into 19 * use. This copies the existing data to the EEPROM data area of the new page. 23 * The EEPROM page needs to be a multiple of a flash page size. Multiple EEPROM 27 * The representation of the EEPROM on flash is shown in the next graph. [all …]
|
/Zephyr-Core-2.7.6/tests/drivers/eeprom/src/ |
D | main.c | 9 #include <drivers/eeprom.h> 15 /* Test retrieval of eeprom size */ 18 const struct device *eeprom; in test_size() local 21 eeprom = device_get_binding(eeprom_label); in test_size() 23 size = eeprom_get_size(eeprom); in test_size() 27 /* Test write outside eeprom area */ 31 const struct device *eeprom; in test_out_of_bounds() local 35 eeprom = device_get_binding(eeprom_label); in test_out_of_bounds() 36 size = eeprom_get_size(eeprom); in test_out_of_bounds() 38 rc = eeprom_write(eeprom, size - 1, data, sizeof(data)); in test_out_of_bounds() [all …]
|
/Zephyr-Core-2.7.6/boards/shields/x_nucleo_eeprma2/doc/ |
D | index.rst | 3 X-NUCLEO-EEPRMA2 EEPROM memory expansion board 10 and M95xx series SPI EEPROM devices. 33 The SPI EEPROM devices can write protect complete memory blocks by setting 36 are disabled in case writes to the EEPROM should be supported. 38 For more information about interfacing the M24xx and M95xx series EEPROM devices 41 - `X-NUCLEO-EEPRMA2 EEPROM memory expansion board User Manual`_ 43 - `M24C02-F Serial I2C bus EEPROM Datasheet`_ 44 - `M24256-DF Serial I2C bus EEPROM Datasheet`_ 45 - `M24M01-DF Serial I2C bus EEPROM Datasheet`_ 47 - `M95040-R Serial SPI bus EEPROM Datasheet`_ [all …]
|
/Zephyr-Core-2.7.6/samples/drivers/eeprom/src/ |
D | main.c | 9 #include <drivers/eeprom.h> 21 * Get a device structure from a devicetree node with alias eeprom-0 34 printk("Found EEPROM device \"%s\"\n", dev->name); in get_eeprom_device() 40 const struct device *eeprom = get_eeprom_device(); in main() local 45 if (eeprom == NULL) { in main() 49 eeprom_size = eeprom_get_size(eeprom); in main() 50 printk("Using eeprom with size of: %d.\n", eeprom_size); in main() 52 rc = eeprom_read(eeprom, EERPOM_SAMPLE_OFFSET, &values, sizeof(values)); in main() 54 printk("Error: Couldn't read eeprom: err: %d.\n", rc); in main() 66 rc = eeprom_write(eeprom, EERPOM_SAMPLE_OFFSET, &values, sizeof(values)); in main() [all …]
|
/Zephyr-Core-2.7.6/include/drivers/i2c/slave/ |
D | eeprom.h | 4 * @brief Public APIs for the I2C EEPROM Slave driver. 16 * @brief I2C EEPROM Slave Driver API 17 * @defgroup i2c_eeprom_slave_api I2C EEPROM Slave Driver API 23 * @brief Program memory of the virtual EEPROM 26 * @param eeprom_data Pointer of data to program into the virtual eeprom memory 27 * @param length Length of data to program into the virtual eeprom memory 36 * @brief Read single byte of virtual EEPROM memory 39 * @param eeprom_data Pointer of byte where to store the virtual eeprom memory 40 * @param offset Offset into EEPROM memory where to read the byte
|
/Zephyr-Core-2.7.6/samples/drivers/eeprom/ |
D | sample.yaml | 2 name: EEPROM Sample 4 tags: eeprom 14 sample.drivers.eeprom: 15 tags: eeprom 17 sample.drivers.eeprom.shield.x_nucleo_eeprma2: 18 tags: eeprom shield
|
D | README.rst | 3 EEPROM Sample 9 This sample demonstrates the EEPROM driver API in a simple boot counter 15 In case the target board has defined an EEPROM with alias ``eeprom-0`` the 20 :zephyr-app: samples/drivers/eeprom 31 :zephyr-app: samples/drivers/eeprom 42 Found EEPROM device "EEPROM_M24C02" 43 Using eeprom with size of: 256.
|
/Zephyr-Core-2.7.6/dts/bindings/mtd/ |
D | zephyr,emu-eeprom.yaml | 4 description: Zephyr Emulated EEPROM device 6 compatible: "zephyr,emu-eeprom" 8 include: eeprom-base.yaml 16 description: Size of a page used to emulate EEPROM in flash 20 description: Flash partition used to store the emulated EEPROM data 24 description: Enable a ram buffer of EEPROM size for improved read speed
|
D | atmel,at2x-base.yaml | 4 # Common fields for AT24 (I2C) and AT25 (SPI) EEPROM devices 6 include: eeprom-base.yaml 14 description: EEPROM page size in bytes 18 description: EEPROM address width in bits 22 description: EEPROM write cycle timeout in milliseconds
|
D | nxp,lpc11u6x-eeprom.yaml | 4 description: NXP LPC11U6X on-chip EEPROM node 6 compatible: "nxp,lpc11u6x-eeprom" 8 include: eeprom-base.yaml
|
D | zephyr,sim-eeprom.yaml | 4 description: Zephyr Simulated EEPROM device 6 compatible: "zephyr,sim-eeprom" 8 include: eeprom-base.yaml
|
D | st,stm32-eeprom.yaml | 4 description: STM32 on-chip EEPROM 6 compatible: "st,stm32-eeprom" 8 include: eeprom-base.yaml
|
D | eeprom-base.yaml | 4 # Common fields for EEPROM devices 12 description: Total EEPROM size in bytes 16 description: Disable writes to the EEPROM
|
/Zephyr-Core-2.7.6/include/drivers/ |
D | eeprom.h | 13 * @brief Public API for EEPROM drivers 20 * @brief EEPROM Interface 21 * @defgroup eeprom_interface EEPROM Interface 49 * @brief Read data from EEPROM 51 * @param dev EEPROM device 71 * @brief Write data to EEPROM 73 * @param dev EEPROM device 94 * @brief Get the size of the EEPROM in bytes 96 * @param dev EEPROM device. 98 * @return EEPROM size in bytes. [all …]
|
/Zephyr-Core-2.7.6/modules/canopennode/ |
D | canopen_storage.c | 106 LOG_DBG("no object dictionary EEPROM entries to delete"); in canopen_odf_1011() 108 LOG_ERR("failed to delete object dictionary EEPROM entries" in canopen_odf_1011() 114 LOG_DBG("deleted object dictionary EEPROM entries"); in canopen_odf_1011() 134 if (!strncmp(key, "eeprom", nlen)) { in canopen_settings_set() 135 struct sCO_OD_EEPROM eeprom; in canopen_settings_set() local 137 len = read_cb(cb_arg, &eeprom, sizeof(eeprom)); in canopen_settings_set() 139 LOG_ERR("failed to restore object dictionary EEPROM" in canopen_settings_set() 143 if ((eeprom.FirstWord == CO_OD_FIRST_LAST_WORD) && in canopen_settings_set() 144 (eeprom.LastWord == CO_OD_FIRST_LAST_WORD)) { in canopen_settings_set() 145 memcpy(&CO_OD_EEPROM, &eeprom, in canopen_settings_set() [all …]
|
/Zephyr-Core-2.7.6/boards/shields/x_nucleo_eeprma2/ |
D | x_nucleo_eeprma2.overlay | 12 eeprom-0 = &eeprom0; 13 eeprom-1 = &eeprom4; 21 eeprom0: eeprom@54 { 22 /* M24C02-FMC6TG aka U1 (2 kbit eeprom in DFN8 package) */ 35 eeprom1: eeprom@55 { 36 /* M24256-DFDW6TP aka U2 (256 kbit eeprom in TSSOP package) */ 49 eeprom2: eeprom@56 { 50 /* M24M01-DFMN6TP aka U3 (1 Mbit eeprom in SO8N package) */ 63 /* U4: unpopulated SO8N footprint for any I2C M24 EEPROM */ 86 /* M95040-RMC6TG aka U5 (4 kbit eeprom in DFN8 package) */ [all …]
|
/Zephyr-Core-2.7.6/tests/drivers/i2c/i2c_slave_api/src/ |
D | main.c | 17 #include <drivers/i2c/slave/eeprom.h> 53 /* Read EEPROM from I2C Master requests, then compare */ in run_full_read() 55 zassert_equal(ret, 0, "Failed to read EEPROM"); in run_full_read() 82 zassert_equal(ret, 0, "Failed to read EEPROM"); in run_partial_read() 113 zassert_equal(ret, 0, "Failed to write EEPROM"); in run_program_read() 117 /* Read back EEPROM from I2C Master requests, then compare */ in run_program_read() 120 zassert_equal(ret, 0, "Failed to read EEPROM"); in run_program_read() 149 zassert_not_null(eeprom_0, "EEPROM device %s not found", label_0); in test_eeprom_slave() 156 zassert_not_null(eeprom_1, "EEPROM device %s not found", label_1); in test_eeprom_slave() 171 zassert_equal(ret, 0, "Failed to program EEPROM %s", label_0); in test_eeprom_slave() [all …]
|
/Zephyr-Core-2.7.6/drivers/ethernet/ |
D | Kconfig.sam_gmac | 73 bool "Read from an I2C EEPROM" 75 Read MAC address from an I2C EEPROM. 80 hex "I2C 7-bit EEPROM chip address" 83 I2C 7-bit address of the EEPROM chip. 86 hex "I2C EEPROM internal address" 89 Internal address of the EEPROM chip where the MAC address is stored. 94 int "I2C EEPROM internal address size" 98 Size (in bytes) of the internal EEPROM address.
|
/Zephyr-Core-2.7.6/tests/drivers/eeprom/ |
D | testcase.yaml | 2 peripheral.eeprom: 5 peripheral.eeprom.generic: 7 depends_on: eeprom
|
/Zephyr-Core-2.7.6/drivers/i2c/slave/ |
D | Kconfig.eeprom | 1 # I2C EEPROM Slave configuration options 7 bool "I2C Slave EEPROM driver" 9 Enable virtual I2C Slave EEPROM driver
|
/Zephyr-Core-2.7.6/tests/drivers/i2c/i2c_slave_api/ |
D | README.txt | 10 driver that simulates an EEPROM with an I2C bus slave interface. Data 13 to by the simulated EEPROM connected through the other controller. 19 second EEPROM just to identify the bus. 23 * Use API specific to the simulated EEPROM to pre-populate the simulated 25 * Register a simulated EEPROM as a I2C slave device on a bus. If
|
/Zephyr-Core-2.7.6/doc/guides/emulator/ |
D | index.rst | 34 Below that are peripheral drivers, such as the AT24 EEPROM driver. We can test 81 * EEPROM, which uses a file as the EEPROM contents 105 #. Simple test of the EEPROM emulator: 108 :app: tests/drivers/eeprom 112 #. The same test has a second EEPROM which is an Atmel AT24 EEPROM driver 116 :app: tests/drivers/eeprom
|