Skip to content

Commit

Permalink
feat(espefuse): Clean up efuse code for ESP32H2
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinKondrashov committed Dec 27, 2024
1 parent d51ecbe commit 4e922fe
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions espefuse/efuse/esp32h2/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,22 +306,9 @@ def convert(parent, efuse):
"keypurpose": EfuseKeyPurposeField,
"t_sensor": EfuseTempSensor,
"adc_tp": EfuseAdcPointCalibration,
"wafer": EfuseWafer,
}.get(efuse.class_type, EfuseField)(parent, efuse)


class EfuseWafer(EfuseField):
def get(self, from_read=True):
hi_bits = self.parent["WAFER_VERSION_MINOR_HI"].get(from_read)
assert self.parent["WAFER_VERSION_MINOR_HI"].bit_len == 1
lo_bits = self.parent["WAFER_VERSION_MINOR_LO"].get(from_read)
assert self.parent["WAFER_VERSION_MINOR_LO"].bit_len == 3
return (hi_bits << 3) + lo_bits

def save(self, new_value):
raise esptool.FatalError("Burning %s is not supported" % self.name)


class EfuseTempSensor(EfuseField):
def get(self, from_read=True):
value = self.get_bitstring(from_read)
Expand Down

0 comments on commit 4e922fe

Please sign in to comment.