Files
kunlun/app/bsrm/iot_bsrm_fr.h
2024-09-28 14:24:04 +08:00

54 lines
1.9 KiB
C

/****************************************************************************
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
be copied by any method or incorporated into another program without
the express written consent of Aerospace C.Power. This Information or any portion
thereof remains the property of Aerospace C.Power. The Information contained herein
is believed to be accurate and Aerospace C.Power assumes no responsibility or
liability for its use in any way and conveys no license or title under
any patent or copyright and makes no representation or warranty that this
Information is free from patent or copyright infringement.
****************************************************************************/
#ifndef IOT_BSRM_FR_H
#define IOT_BSRM_FR_H
/* iot includes */
#include "iot_config_api.h"
#if IOT_BSRM_MODE
/* pm device id : unknow */
#define IOT_BSRM_PM_ID_INVALID (0)
/* pm device id : zhengtai shandong */
#define IOT_BSRM_PM_ID_ZHENGTAI_SD (1)
/* pm device id : zhengtai jiangsu */
#define IOT_BSRM_PM_ID_ZHENGTAI_JS (2)
/* pm device id : weisheng */
#define IOT_BSRM_PM_ID_WEISHENG (3)
/* transfile block size */
#define IOT_BSRM_PM_UPGRADE_BLOCK_SIZE (400)
/* upgrade pm guard code */
#define IOT_BSRM_PM_UPGRADE_GUARD_CODE (0xaa55)
#ifndef IOT_BSRM_PM_ID
#define IOT_BSRM_PM_ID IOT_BSRM_PM_ID_INVALID
#endif
#if ((IOT_BSRM_MODE == IOT_BSRM_MODE_CUS_APP) && \
(IOT_BSRM_PM_ID == IOT_BSRM_PM_ID_ZHENGTAI_SD))
#define IOT_BSRM_PM_UPGRADE_ENABLE (1)
#else
#define IOT_BSRM_PM_UPGRADE_ENABLE (0)
#endif /* ((IOT_BSRM_MODE == IOT_BSRM_MODE_CUS_APP) && \
(IOT_BSRM_PM_ID == IOT_BSRM_PM_ID_ZHENGTAI_SD)) */
#endif /* IOT_BSRM_MODE */
#endif /* IOT_BSRM_FR_H */