| | |
| | | //#include "dw_app.h" |
| | | #include <string.h> |
| | | #define FLASH_IAP_CTRL_MAP (uint32_t)0x0402E000 //the control map start address, 63K MK8000修改 |
| | | #define FLASH_Authorization_MAP (uint32_t)0x0402f000 //授权标签列表起始地址 |
| | | |
| | | |
| | | |
| | | uint32_t tag_id_authorization_list[1024]; |
| | | uint16_t g_com_map[COM_MAP_SIZE]; |
| | | uint8_t parameter_check(void) |
| | | { |
| | |
| | | g_com_map[HEIGHTOFFEST_INDEX]=0; |
| | | save_com_map_to_flash(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | void parameter_init_anchor(void) |
| | |
| | | g_com_map[HEIGHTOFFEST_INDEX]=0; |
| | | save_com_map_to_flash(); |
| | | } |
| | | //新增上电获取授权标签列表 |
| | | flash_read(FLASH_ID0, FLASH_Authorization_MAP, (uint8_t*)&tag_id_authorization_list, sizeof(tag_id_authorization_list));//从flash中拿出来授权表 |
| | | } |