|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <string.h>#include "gpio.h"#include "pinctrl.h"#include "pinctrl_porting.h"#include "watchdog.h"#include "tsensor.h"#include "at_cmd.h"#include "at_utils.h"#include "at_plt_cmd_register.h"#include "at_plt_cmd_table.h"#include "debug_print.h"#include "time64.h"#include "version_porting.h"#include "hal_reboot.h"#include "at_plt.h"#include "efuse.h"#include "efuse_porting.h"
宏定义 | |
| #define | CONVERT_HALF 2 |
| #define | DATE_BASE_YEAR 1900 |
| #define | leap_year(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) |
| #define | AT_PLT_FUNC_NUM (sizeof(at_plt_cmd_parse_table) / sizeof(at_plt_cmd_parse_table[0])) |
| #define | MAC_ADDR_EFUSE 0 |
| #define | MAC_ADDR_NV 1 |
| #define | SLE_MAC_ADDR_EFUSE 2 |
| #define | SLE_MAC_ADDR_NV 3 |
| #define | SET_EFUSE_MAC_PARAM_CNT 2 |
| #define | MAC_LEN 6 |
| #define | BOOT_PORTING_RESET_REG 0x40002110 |
| #define | BOOT_PORTING_RESET_VALUE 0x4 |
| #define | UAPI_MAX_SLEEP_MODE 2 |
| #define | UAPI_UART_PORT_MAX 2 |
| #define | UAPI_UART_PORT_NUM 3 |
| #define | EFUSE_MFG_FLAG_ID_1 161 |
| #define | EFUSE_MFG_FLAG_ID_2 179 |
| #define | EFUSE_MFG_FLAG_ID_3 197 |
| #define | EFUSE_MFG_FLAG_BIT_POS 7 |
| #define | EFUSE_GROUP_MAX 3 |
| #define | DIE_ID_LENGTH 21 |
| #define | FLASH_DATA_MAX_LENGTH 3 |
| #define AT_PLT_FUNC_NUM (sizeof(at_plt_cmd_parse_table) / sizeof(at_plt_cmd_parse_table[0])) |
| #define BOOT_PORTING_RESET_REG 0x40002110 |
| #define BOOT_PORTING_RESET_VALUE 0x4 |
| #define CONVERT_HALF 2 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: At plt function
| #define DATE_BASE_YEAR 1900 |
| #define DIE_ID_LENGTH 21 |
| #define EFUSE_GROUP_MAX 3 |
| #define EFUSE_MFG_FLAG_BIT_POS 7 |
| #define EFUSE_MFG_FLAG_ID_1 161 |
| #define EFUSE_MFG_FLAG_ID_2 179 |
| #define EFUSE_MFG_FLAG_ID_3 197 |
| #define FLASH_DATA_MAX_LENGTH 3 |
| #define leap_year | ( | y | ) | (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) |
| #define MAC_ADDR_EFUSE 0 |
| #define MAC_ADDR_NV 1 |
| #define MAC_LEN 6 |
| #define SET_EFUSE_MAC_PARAM_CNT 2 |
| #define SLE_MAC_ADDR_EFUSE 2 |
| #define SLE_MAC_ADDR_NV 3 |
| #define UAPI_MAX_SLEEP_MODE 2 |
| #define UAPI_UART_PORT_MAX 2 |
| #define UAPI_UART_PORT_NUM 3 |
| errcode_t __attribute__ | ( | (weak) | ) |
| at_ret_t at_date_cmd | ( | void | ) |
| at_ret_t at_date_set_cmd | ( | const date_args_t * | args | ) |
| at_ret_t at_exe_reset_cmd | ( | void | ) |
| at_ret_t at_factory_erase | ( | void | ) |
| at_ret_t at_factory_mode_read | ( | void | ) |
| at_ret_t at_factory_mode_switch | ( | const factory_mode_args_t * | args | ) |
| at_ret_t at_get_dump | ( | void | ) |
| at_ret_t at_get_iomode | ( | const getiomode_args_t * | args | ) |
| at_ret_t at_get_log_level | ( | void | ) |
| at_ret_t at_help | ( | void | ) |
| at_ret_t at_query_tsensor_temp | ( | void | ) |
| at_ret_t at_query_ver_cmd | ( | void | ) |
| at_ret_t at_query_xtal_compesation | ( | void | ) |
| at_ret_t at_rdgpio | ( | const rdgpio_args_t * | args | ) |
| at_ret_t at_set_gpio_dir | ( | const gpiodir_args_t * | args | ) |
| at_ret_t at_set_iomode | ( | const setiomode_args_t * | args | ) |
| at_ret_t at_set_log_level | ( | const loglevel_args_t * | args | ) |
| at_ret_t at_set_sleep_mode | ( | const sleepmode_args_t * | args | ) |
| at_ret_t at_set_uart_port | ( | const uartport_args_t * | args | ) |
| at_ret_t at_wrgpio | ( | const wrgpio_args_t * | args | ) |
| at_ret_t at_write_acccode | ( | const acccode_args_t * | args | ) |
| at_ret_t cmd_disable_ssi_jtag | ( | void | ) |
| at_ret_t cmd_get_customer_rsvd_efuse | ( | void | ) |
| at_ret_t cmd_get_dieid | ( | void | ) |
| at_ret_t cmd_get_hash_root_public_key | ( | void | ) |
| at_ret_t cmd_get_sec_verify_status | ( | void | ) |
| at_ret_t cmd_get_ssi_jtag_status | ( | void | ) |
| at_ret_t cmd_sec_verify_enable | ( | void | ) |
| at_ret_t cmd_set_customer_rsvd_efuse | ( | const customer_rsvd_efuse_args_t * | args | ) |
| at_ret_t cmd_set_hash_root_public_key | ( | const pubkey_args_t * | args | ) |
| at_ret_t cmd_write_mfg_flag | ( | void | ) |
| at_ret_t get_efuse_mac_addr | ( | void | ) |
| void los_at_plt_cmd_register | ( | void | ) |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: At plt header
| at_ret_t plt_flash_read | ( | const flashread_args_t * | args | ) |
| at_ret_t plt_flash_write | ( | const flashwrite_args_t * | args | ) |
| at_ret_t plt_nv_read | ( | const nvread_args_t * | args | ) |
| at_ret_t plt_nv_write | ( | const nvwrite_args_t * | args | ) |
| at_ret_t plt_reboot | ( | void | ) |
| at_ret_t save_license | ( | const license_args_t * | args | ) |
| at_ret_t set_efuse_mac_addr | ( | const efusemac_args_t * | args | ) |