mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-08-28 01:01:34 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
36
Living_SDK/framework/activation/activation.h
Normal file
36
Living_SDK/framework/activation/activation.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
|
||||
*/
|
||||
|
||||
#ifndef ACTIVATION_H
|
||||
#define ACTIVATION_H
|
||||
|
||||
#ifndef UINT32
|
||||
#define UINT32 unsigned int
|
||||
#endif
|
||||
|
||||
#ifndef UINT8
|
||||
#define UINT8 unsigned char
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
|
||||
#define VERSION_NUM_SIZE 4
|
||||
#define RANDOM_NUM_SIZE 4
|
||||
#define MAC_ADDRESS_SIZE 8
|
||||
#define CHIP_CODE_SIZE 4
|
||||
#define INPUT_SIZE (VERSION_NUM_SIZE+RANDOM_NUM_SIZE+MAC_ADDRESS_SIZE+CHIP_CODE_SIZE)
|
||||
#define OUTPUT_SPACE_SIZE (INPUT_SIZE*2*2+1)
|
||||
|
||||
|
||||
/*
|
||||
input: version 4byte + random 4 byte + mac 8byte + chip_code 4byte
|
||||
output: output_buffer store the version info process. length at least OUTPUT_SPACE_SIZE
|
||||
return: 0 success, 1 failed
|
||||
*/
|
||||
extern UINT32 aos_get_version_info (UINT8 version_num[VERSION_NUM_SIZE], UINT8 random_num[RANDOM_NUM_SIZE], UINT8 mac_address[MAC_ADDRESS_SIZE], UINT8 chip_code[CHIP_CODE_SIZE], UINT8 *output_buffer, UINT32 output_buffer_size);
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue