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
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"}}
-spec eeprom_reset_crc() -> ok.
Fixes CRC bytes for pre-production boards
-spec platform() -> atom().
Returns the platform name as an atom.