1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-16 07:20:08 -07:00
2021-11-15 07:51:52 -08:00

37 lines
583 B
C

/*
* OTPData.h
*
* Created on: Apr 5, 2021
* Author: peter
*/
#ifndef INC_OTPDATA_H_
#define INC_OTPDATA_H_
#include <stdint.h>
#define OTP_MAGIC 0x913A6D0C
#define OTP_REV 0x00000002
#define MCU_UNKNOWN 0x00
#define MCU_STM32L412 0x01
#define MCU_STM32L422 0x02
#define MCU_STM32L431 0x03
#define MCU_STM32L432 0x04
// This structure must be double-word aligned
typedef struct
{
uint32_t magic;
uint32_t rev;
char serialnum[32];
char hwrev[16];
uint8_t reserved[8];
} OTPData;
#endif /* INC_OTPDATA_H_ */