/**********************************************************************
|
* Copyright: (C)2023 LingYun IoT System Studio
|
* Author: GuoWenxue<guowenxue@gmail.com> QQ: 281143292
|
* Description: ISKBoard Serial Number Hardware Abstract Layer driver
|
*
|
* ChangeLog:
|
* Version Date Author Description
|
* V1.0.0 2023.04.3 GuoWenxue Release initial version
|
***********************************************************************/
|
|
#ifndef BOARD_DEVSN_H_
|
#define BOARD_DEVSN_H_
|
|
/*
|
* SN Format: ISK1023001
|
* +----------+----------+----------+----------+
|
* | ISK | 10 | 23 | 001 |
|
* +----------+----------+----------+----------+
|
* | ISKBoard | V1.0 | 2023 | Serial |
|
* +----------+----------+----------+----------+
|
*/
|
|
#define DEVSN_LEN 10
|
|
/* Write device Serial Number into OTP flash */
|
extern int write_devsn(char *devsn, int bytes);
|
|
/* Read device Serial Number from OTP flash */
|
extern int read_devsn(char *devsn, int size);
|
|
#endif /* BOARD_DEVSN_H_ */
|