@@ -62,10 +62,6 @@ def _convert_i2c_addr_to_atecc_addr(i2c_addr=0x60):
62
62
_I2C_ADDR = 0x60
63
63
_REG_ATECC_ADDR = _convert_i2c_addr_to_atecc_addr (i2c_addr = _I2C_ADDR )
64
64
65
- # TODO: Verify that _REG_ATECC_ADDR is still 0xC0
66
- # TODO: Remove assertion test afterwards
67
- assert _REG_ATECC_ADDR == 0xC0
68
-
69
65
_REG_ATECC_DEVICE_ADDR = _REG_ATECC_ADDR >> 1
70
66
71
67
# Version Registers
@@ -100,15 +96,6 @@ def _convert_i2c_addr_to_atecc_addr(i2c_addr=0x60):
100
96
OP_WRITE : const (26 ),
101
97
}
102
98
103
- CFG_TLS = b"\x01 #\x00 \x00 \x00 \x00 P\x00 \x00 \x00 \x00 \x00 \x00 \xc0 q\x00 \
104
- \xc0 \x00 U\x00 \x83 \x87 \x87 \x87 /\x87 /\x8f \x8f \x9f \x8f \xaf \
105
- \x8f \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \
106
- \xaf \x8f \xff \xff \xff \xff \x00 \x00 \x00 \x00 \xff \xff \xff \xff \x00 \
107
- \x00 \x00 \x00 \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \
108
- \xff \xff \xff \xff \x00 \x00 UU\xff \xff \x00 \x00 \x00 \x00 \x00 \x00 3 \
109
- \x00 3\x00 3\x00 3\x00 3\x00 \x1c \x00 \x1c \x00 \x1c \x00 <\x00 <\x00 <\x00 < \
110
- \x00 <\x00 <\x00 <\x00 \x1c \x00 "
111
-
112
99
"""
113
100
Configuration Zone Bytes
114
101
@@ -151,12 +138,6 @@ def _convert_i2c_addr_to_atecc_addr(i2c_addr=0x60):
151
138
)
152
139
)
153
140
154
- # TODO: Verify that both representations are identical
155
- # TODO: Decide whether to use alternate representation of config bytes
156
- # TODO: Remove assertion tests
157
- assert CFG_TLS == CFG_TLS_HEX
158
- assert bytearray (CFG_TLS )[16 ] == 0x20
159
-
160
141
# Convert I2C address to config byte 16 and update CFG_TLS
161
142
_CFG_BYTES = bytearray (CFG_TLS )
162
143
_CFG_BYTE_16 = hex (_I2C_ADDR << 1 )
0 commit comments