📄 updatecbk.c
字号:
/****************************************************************************** Name: updateCbk.c** Description: Call Back Function** Copyright: (c) 2001-2002 Taifatech Inc.* All rights reserved.*****************************************************************************/#include <string.h>#include <stdio.h>#include "tfTypes.h"#include "fs.h"#include "uip.h"#include "httpd.h"#include "html.h"#include "system.h"#ifdef EEPROM_ENABLE#include "eeprom.h"#endifextern struct httpd_state *hs;extern void jump_to_addr(u8_t code *addr);u8_t tgi_firmwareUpdate(u8_t cnt, void *vptr){ variable_t *vp = vptr; if (cnt == 0) ; if (!strcmp(vp[0].value, "Update")) { // Jump to boot_entry jump_to_addr((u8_t code *)(*(u16_t code *)0x1ffe)); // User have to reopen Browser manually } DEBUGF(1, ("\r\n Update Firmware OK!!!")); return OK;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -