You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1012 B
49 lines
1012 B
|
|
////////////////////////////////////////////////////////////////////////////
|
|
///@copyright Copyright (c) 2018, 传控科技 All rights reserved.
|
|
///-------------------------------------------------------------------------
|
|
/// @file msp_eeprom.c
|
|
/// @brief msp @ driver config
|
|
///-------------------------------------------------------------------------
|
|
/// @version 1.0
|
|
/// @author CC
|
|
/// @date 20190106
|
|
/// @note cc_AS_stc02 由stc-isp v6.0860
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
#include "msp_id.h"
|
|
#include "../app/common.h"
|
|
|
|
void L0_id_get(U8 *id)
|
|
{
|
|
U8 i = 0;
|
|
char *ID = (char idata *)0xf1;
|
|
for(i=0;i<MCU_ID_LEN;i++)
|
|
{
|
|
id[i] = ID[i];
|
|
}
|
|
}
|
|
|
|
void L0_id_get_rom(U8 *id)
|
|
{
|
|
U8 i = 0;
|
|
char *ID = (char code *)0x3ff9;
|
|
for(i=0;i<MCU_ID_LEN;i++)
|
|
{
|
|
id[i] = ID[i];
|
|
}
|
|
}
|
|
|
|
|
|
#if 1
|
|
void L0_id_main(void)
|
|
{
|
|
U8 i,id[MCU_ID_LEN];
|
|
L0_id_get_rom(id);
|
|
for(i=0;i<MCU_ID_LEN;i++)
|
|
{
|
|
L0_uart0_uchex(id[i]);
|
|
}
|
|
while(1);
|
|
}
|
|
#endif
|
|
|
|
|