File tree Expand file tree Collapse file tree 13 files changed +39
-30
lines changed Expand file tree Collapse file tree 13 files changed +39
-30
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ zephyr_library_sources_ifdef(CONFIG_EEPROM_EMULATOR eeprom_emulator.c)
13
13
zephyr_library_sources_ifdef (CONFIG_EEPROM_TMP116 eeprom_tmp116.c )
14
14
zephyr_library_sources_ifdef (CONFIG_EEPROM_XEC eeprom_mchp_xec.c )
15
15
zephyr_library_sources_ifdef (CONFIG_EEPROM_FAKE eeprom_fake.c )
16
+
17
+ zephyr_library_sources_ifdef (CONFIG_EEPROM_AT2X_EMUL eeprom_at2x_emul.c )
Original file line number Diff line number Diff line change @@ -41,6 +41,27 @@ config EEPROM_AT2X
41
41
Enable support for Atmel AT2x (and compatible) I2C/SPI
42
42
EEPROMs.
43
43
44
+ config EEPROM_AT2X_EMUL
45
+ bool "Emulate an Atmel AT24 I2C chip"
46
+ depends on EMUL
47
+ help
48
+ This is an emulator for the Atmel AT24 series of I2C-attached EEPROMs.
49
+
50
+ At present it only supports 8-bit addressing. The size of the EEPROM
51
+ is given by the 'size' property. See the binding for further details.
52
+
53
+ config EMUL_EEPROM_AT2X
54
+ bool "[DEPRECATED] Emulate an Atmel AT24 I2C chip"
55
+ select EEPROM_AT2X_EMUL
56
+ select DEPRECATED
57
+ help
58
+ This is an emulator for the Atmel AT24 series of I2C-attached EEPROMs.
59
+
60
+ At present it only supports 8-bit addressing. The size of the EEPROM
61
+ is given by the 'size' property. See the binding for further details.
62
+
63
+ [DEPRECATED] Select EEPROM_AT2X_EMUL instead.
64
+
44
65
config EEPROM_AT24
45
66
bool "Atmel AT24 (and compatible) I2C EEPROM support"
46
67
default y
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
zephyr_library ()
2
2
3
3
zephyr_library_sources (sbs_gauge.c )
4
+
5
+ zephyr_include_directories_ifdef (CONFIG_EMUL_SBS_GAUGE . )
6
+ zephyr_library_sources_ifdef (CONFIG_EMUL_SBS_GAUGE ../../sensor/sbs_gauge/emul_sbs_gauge.c )
Original file line number Diff line number Diff line change 1
1
zephyr_library ()
2
2
3
3
zephyr_library_sources (sbs_gauge.c )
4
+
5
+ zephyr_include_directories_ifdef (CONFIG_EMUL_SBS_GAUGE . )
6
+ zephyr_library_sources_ifdef (CONFIG_EMUL_SBS_GAUGE emul_sbs_gauge.c )
Original file line number Diff line number Diff line change @@ -8,3 +8,10 @@ config SBS_GAUGE
8
8
select I2C
9
9
help
10
10
Enable I2C-based/SMBus-based driver for a Smart Battery Fuel Gauge.
11
+
12
+ config EMUL_SBS_GAUGE
13
+ bool "Emulate an SBS 1.1 compliant smart battery fuel gauge"
14
+ depends on EMUL
15
+ help
16
+ It provides readings which follow a simple sequence, thus allowing
17
+ test code to check that things are working as expected.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ LOG_MODULE_REGISTER(sbs_sbs_gauge);
21
21
#include <zephyr/drivers/i2c_emul.h>
22
22
#include <zephyr/sys/byteorder.h>
23
23
24
- #include < sbs_gauge.h>
24
+ #include " sbs_gauge.h"
25
25
26
26
/** Run-time data used by the emulator */
27
27
struct sbs_gauge_emul_data {
Original file line number Diff line number Diff line change @@ -4,5 +4,4 @@ zephyr_library()
4
4
5
5
zephyr_library_sources_ifdef (CONFIG_EMUL emul.c )
6
6
7
- add_subdirectory (i2c )
8
7
add_subdirectory (espi )
Original file line number Diff line number Diff line change @@ -34,13 +34,6 @@ module = EMUL
34
34
module-str = emul
35
35
source "subsys/logging/Kconfig.template.log_config"
36
36
37
- config EMUL_SBS_GAUGE
38
- bool "Emulate an SBS 1.1 compliant smart battery fuel gauge"
39
- help
40
- It provides readings which follow a simple sequence, thus allowing
41
- test code to check that things are working as expected.
42
-
43
- source "subsys/emul/i2c/Kconfig"
44
37
source "subsys/emul/espi/Kconfig"
45
38
46
39
endif
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments