Module grisp_hw

GRiSP hardware access.

Description

GRiSP hardware access.

Function Index

eeprom_read/0Reads GRiSP meta data from EEPROM.
eeprom_reset_crc/0Fixes CRC bytes for pre-production boards.
on_load/0
platform/0Returns the platform name as an atom.

Function Details

eeprom_read/0

eeprom_read() -> any()

Reads GRiSP meta data from EEPROM

Example

 1> grisp_hw:eeprom_read().
 #{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/0

eeprom_reset_crc() -> ok

Fixes CRC bytes for pre-production boards

on_load/0

on_load() -> any()

platform/0

platform() -> atom()

Returns the platform name as an atom.


Generated by EDoc