versioning.h

来自「通过网络刷新flash的工具源代码.linux下使用的」· C头文件 代码 · 共 28 行

H
28
字号
/* * Code to check that we are putting the correct type of flash into this * unit. * This code also removes the versioning information from the end * of the memory buffer. * * ret: *      0 - everything is correct. *      1 - the product name is incorrect. *      2 - the vendor name is incorrect. *      3 - the version is the same. *      4 - the version is older. *      5 - the version is invalid. *//******************************************************************************* * The last few bytes of the image look like the following: * *  \0version\0vendore_name\0product_namechksum *  the chksum is 16bits wide, and the version is: * * version is w.x.y[nz], where n is ubpi, and w, x, y and z are 1 or 2 digit * (decimal) numbers. * ******************************************************************************/extern int check_vendor(void);extern void log_upgrade(void);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?