mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-07-08 11:45:37 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
18
Living_SDK/security/include/prov/prov_pro.h
Normal file
18
Living_SDK/security/include/prov/prov_pro.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Copyright (C) 2016 The YunOS Project. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _PROV_PRO_H_
|
||||
#define _PROV_PRO_H_
|
||||
|
||||
/*
|
||||
* provision all key to the board
|
||||
*
|
||||
* return: 0 - success
|
||||
* -1 - fail
|
||||
*/
|
||||
|
||||
int prov_all();
|
||||
|
||||
#endif /* _PROV_PRO_H_ */
|
||||
|
||||
32
Living_SDK/security/include/prov/prov_res.h
Normal file
32
Living_SDK/security/include/prov/prov_res.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/**
|
||||
* Copyright (C) 2016 The YunOS Project. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _PROV_RES_H_
|
||||
#define _PROV_RES_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* prov status */
|
||||
#define PROV_STAT_ABORT (0x10001000)
|
||||
#define PROV_STAT_FINISHED (0x10001001)
|
||||
|
||||
/* prov result */
|
||||
#define PROV_SUCCESS (0x00000000)
|
||||
#define PROV_ERROR_RECOVERY (0xEEEE0000)
|
||||
|
||||
/*
|
||||
* get provision result
|
||||
*
|
||||
* prov_res[out]: provision result:
|
||||
* 0x00000000 -- success
|
||||
* 0xEEEE0000 -- failed, can recovery(software failure)
|
||||
*
|
||||
* return: 0 - success
|
||||
* -1 - fail
|
||||
*
|
||||
* Notice: the prov_res is valid only if the return value is 0 */
|
||||
int prov_get_prov_res(uint32_t *prov_res);
|
||||
|
||||
#endif /* _PROV_RES_H_*/
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue