void testOTP(void) { printf("reading OTP...\n"); getotp(&otp); printf("read OTP!\n"); printf("OTP:\n"); hexdump(&otp, sizeof(otp)); printf("reading SEEPROM...\n"); getseeprom(&seeprom); printf("read SEEPROM!\n"); printf("SEEPROM:\n"); hexdump(&seeprom, sizeof(seeprom)); }
void otp_init() { if(otp_initialized) return; otp_initialized = 1; getotp(&otp); }