View Source grisp_hw (grisp v2.8.0)

GRiSP hardware access.

Summary

Functions

Reads GRiSP meta data from EEPROM

Fixes CRC bytes for pre-production boards

Returns the platform name as an atom.

Functions

eeprom_read()

Reads GRiSP meta data from EEPROM

Example

1> grisp_hw:eeprom_read().
{ok, #{grisp_batch => 1,
       grisp_pcb_variant => 1,
       grisp_pcb_version => "1.2",
       grisp_prod_date => {{2021,8,27},{0,0,0}},
       grisp_serial => 1002,
       grisp_version => "2"}}

eeprom_reset_crc()

-spec eeprom_reset_crc() -> ok.

Fixes CRC bytes for pre-production boards

platform()

-spec platform() -> atom().

Returns the platform name as an atom.