#include "common.h" //#include "../tpc/tpc_uart.h" #include "../msp/msp_eeprom.h" #include "../msp/msp_id.h" struct global_param G; struct ts_eeprom_enc eep_enc; #define EEP_SECTOR_SIZE 0x200 #define EEP_ENC_ADDR (EEP_SECTOR_SIZE * 0) #define ENC_KEY 0x01010101 void L3_chip_encrypt_main(void) { U8 i = 0; //1.获取MCU_ID L0_id_get_rom(G.mcu_id); for(i=0;i> 24 & 0xFF; G.enc_key[1] = ENC_KEY >> 16 & 0xFF; G.enc_key[2] = ENC_KEY >> 8 & 0xFF; G.enc_key[3] = ENC_KEY >> 0 & 0xFF; //eeprom中读取持久化的值 //L3_eeprom_read(); }