Commit 50fc2b00a709e9336550a78ea2ff22a67c44f554
1 parent
cdd802c0ad
Exists in
v2015.07-smarct4x
Read Board Info from EEPROM
Showing 1 changed file with 10 additions and 0 deletions Side-by-side Diff
board/embedian/smarct437x/board.c
... | ... | @@ -820,6 +820,16 @@ |
820 | 820 | if (read_eeprom(&header) < 0) |
821 | 821 | puts("Could not get board ID.\n"); |
822 | 822 | |
823 | + /* Read Board Info */ | |
824 | + puts("-----------------------------------------\n"); | |
825 | + printf("Board ID: %.*s\n", | |
826 | + sizeof(header.name), header.name); | |
827 | + printf("Board Revision: %.*s\n", | |
828 | + sizeof(header.version), header.version); | |
829 | + printf("Board Serial#: %.*s\n", | |
830 | + sizeof(header.serial), header.serial); | |
831 | + puts("-----------------------------------------\n"); | |
832 | + | |
823 | 833 | /* Now set variables based on the header. */ |
824 | 834 | strncpy(safe_string, (char *)header.name, sizeof(header.name)); |
825 | 835 | safe_string[sizeof(header.name)] = 0; |