Skip to content

Commit 6343ec1

Browse files
committed
Use Konfig to control the EEPROM type
1 parent d0e04a9 commit 6343ec1

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

peripherals/at24cxx/Kconfig

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,63 @@ if PKG_USING_AT24CXX
1010
string
1111
default "/packages/peripherals/at24cxx"
1212

13+
config PKG_AT24CXX_FINSH
14+
bool "Enable finsh test"
15+
default y
16+
17+
menu "Select the Type of AT24CXX EEPROM"
18+
depends on PKG_USING_AT24CXX
19+
20+
choice
21+
prompt "EEPROM Type Selection"
22+
default PKG_AT24CXX_EE_TYPE_AT24C02
23+
help
24+
Select the specific type of AT24CXX EEPROM.
25+
26+
config PKG_AT24CXX_EE_TYPE_AT24C01
27+
bool "AT24C01 (1Kbit)"
28+
default n
29+
30+
config PKG_AT24CXX_EE_TYPE_AT24C02
31+
bool "AT24C02 (2Kbit)"
32+
default y
33+
34+
config PKG_AT24CXX_EE_TYPE_AT24C04
35+
bool "AT24C04 (4Kbit)"
36+
default n
37+
38+
config PKG_AT24CXX_EE_TYPE_AT24C08
39+
bool "AT24C08 (8Kbit)"
40+
default n
41+
42+
config PKG_AT24CXX_EE_TYPE_AT24C16
43+
bool "AT24C16 (16Kbit)"
44+
default n
45+
46+
config PKG_AT24CXX_EE_TYPE_AT24C032
47+
bool "AT24C32 (32Kbit)"
48+
default n
49+
50+
config PKG_AT24CXX_EE_TYPE_AT24C64
51+
bool "AT24C64 (64Kbit)"
52+
default n
53+
54+
config PKG_AT24CXX_EE_TYPE_AT24C128
55+
bool "AT24C128 (128Kbit)"
56+
default n
57+
58+
config PKG_AT24CXX_EE_TYPE_AT24C256
59+
bool "AT24C256 (256Kbit)"
60+
default n
61+
62+
config PKG_AT24CXX_EE_TYPE_AT24C512
63+
bool "AT24C512 (512Kbit)"
64+
default n
65+
66+
endchoice
67+
68+
endmenu
69+
1370
choice
1471
prompt "Version"
1572
default PKG_USING_AT24CXX_LATEST_VERSION

0 commit comments

Comments
 (0)