Skip to content

Commit a6e5db5

Browse files
committed
feat:at24xx adds ee_type option
1 parent 35a766b commit a6e5db5

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

peripherals/at24cxx/Kconfig

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,57 @@ if PKG_USING_AT24CXX
2020
bool "latest"
2121
endchoice
2222

23+
choice
24+
prompt "AT24XX Type"
25+
default EE_TYPE_AT24C128
26+
help
27+
Select the at24xx type
28+
29+
config EE_TYPE_AT24C01
30+
bool "AT24C01"
31+
32+
config EE_TYPE_AT24C02
33+
bool "AT24C02"
34+
35+
config EE_TYPE_AT24C04
36+
bool "AT24C04"
37+
38+
config EE_TYPE_AT24C08
39+
bool "AT24C08"
40+
41+
config EE_TYPE_AT24C16
42+
bool "AT24C16"
43+
44+
config EE_TYPE_AT24C32
45+
bool "AT24C32"
46+
47+
config EE_TYPE_AT24C64
48+
bool "AT24C64"
49+
50+
config EE_TYPE_AT24C128
51+
bool "AT24C128"
52+
53+
config EE_TYPE_AT24C256
54+
bool "AT24C256"
55+
56+
config EE_TYPE_AT24C512
57+
bool "AT24C512"
58+
59+
endchoice
60+
61+
config EE_TYPE
62+
int
63+
default 0 if EE_TYPE_AT24C01
64+
default 1 if EE_TYPE_AT24C02
65+
default 2 if EE_TYPE_AT24C04
66+
default 3 if EE_TYPE_AT24C08
67+
default 4 if EE_TYPE_AT24C16
68+
default 5 if EE_TYPE_AT24C32
69+
default 6 if EE_TYPE_AT24C64
70+
default 7 if EE_TYPE_AT24C128
71+
default 8 if EE_TYPE_AT24C256
72+
default 9 if EE_TYPE_AT24C512
73+
2374
config PKG_AT24CXX_VER
2475
string
2576
default "latest" if PKG_USING_AT24CXX_LATEST_VERSION

0 commit comments

Comments
 (0)