/*
 * $Id: efm8ub2_hwid.h 456 2019-06-16 02:47:43Z true $
 * begin 20190527 true
 */


#ifndef INC_DRIVER_HWID_H_
#define INC_DRIVER_HWID_H_



#include "efm8_config.h"



#define HWID_ADDR_BASE		0x0FF0	// address for EFM8UB20F64G. DS shows 4K shadow, F32G seems to have 2K shadow
#define HWID_LENGTH			16		// using this address should make this compatible with both MCUs

#define HWID_MODEL_F32G		0
#define HWID_MODEL_F64G		1



void    hwid_init();
uint8_t hwid_get_model();
uint8_t hwid_get_byte(uint8_t byte);



extern uint8_t xdata *hwid;		// direct access if you know what you are doing



#endif /* INC_DRIVER_HWID_H_ */
