1 // Copyright (C) 2022 Beken Corporation 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 #include <common/bk_err.h> 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 /** 24 * @brief EFUSE defines 25 * @defgroup bk_api_efuse_defs macos 26 * @ingroup bk_api_efuse 27 * @{ 28 */ 29 30 #define BK_ERR_EFUSE_DRIVER_NOT_INIT (BK_ERR_EFUSE_BASE - 1) /**< EFUSE driver not init */ 31 #define BK_ERR_EFUSE_ADDR_OUT_OF_RANGE (BK_ERR_EFUSE_BASE - 2) /**< EFUSE address is out of range */ 32 #define BK_ERR_EFUSE_CANNOT_WRTIE (BK_ERR_EFUSE_BASE - 3) /**< EFUSE cannot write, cannot change bit from 1 to 0 */ 33 #define BK_ERR_EFUSE_WRTIE_NOT_EQUAL (BK_ERR_EFUSE_BASE - 4) /**< EFUSE data read is not equal to the data written */ 34 35 typedef uint8_t efuse_unit_t; /**< efuse uint id */ 36 37 /** 38 * @} 39 */ 40 41 #ifdef __cplusplus 42 } 43 #endif 44 45