zoukankan      html  css  js  c++  java
  • tr69 实现函数添加

    1. gatewayinfo 节点暂时没有添加

    2. deviceconfig中

        PersistentData没有添加函数。

        ConfigFile已添加函数。

    3. time中

        (1) 在handlers.c文件中 新添加了NTPServer函数。

        所有函数已添加。

    (1)编译报错, timehandlers.c文件中, 以下没有定义

    BcmCfmImpl_getNtpInfo 已复制。

    BcmCfmImpl_freeNtpInfo 已复制。

    BcmCfmImpl_setNtpInfo 已复制。

    BcmCfmImpl_indexToTzone 已复制。

    BcmCfmImpl_tzoneToIndex 已复制。

    在bcmcfmsys.cpp中添加头文件。

      (2) 编译报错

    external/tr69c/./cfm/api/bcmcfmsys.cpp: In function 'BcmCfm_Status BcmCfmImpl_getNtpInfo(void**, uint32*)':
    external/tr69c/./cfm/api/bcmcfmsys.cpp:17:18: error: 'IFC_LARGE_LEN' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:25:18: error: 'BcmSntp_init' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:26:40: error: 'BcmSntp_GetVar' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:28:5: error: 'value' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:36:65: error: 'BcmCfmUtil_allocEmptyString' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:45:65: error: 'BcmCfmUtil_allocEmptyString' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:49:57: error: 'ZONE_NAME_OFFSET' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:49:73: error: 'BcmCfmImpl_tzoneToIndex' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp: In function 'BcmCfm_Status BcmCfmImpl_setNtpInfo(void*, uint32)':
    external/tr69c/./cfm/api/bcmcfmsys.cpp:94:54: error: 'BcmSntp_SetVar' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:97:53: error: 'BcmSntp_SetVar' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:98:14: error: 'value' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:98:80: error: 'BcmCfmImpl_indexToTzone' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:98:81: error: 'snprintf' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:102:19: error: 'BcmSntp_Store' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:104:18: error: 'BcmPsi_flush' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp:106:27: error: 'BcmSntp_serverRestart' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp: In function 'char* BcmCfmImpl_indexToTzone(BcmCfm_TimeZone)':
    external/tr69c/./cfm/api/bcmcfmsys.cpp:119:24: error: 'BcmCfm_TimeZoneNames' was not declared in this scope
    external/tr69c/./cfm/api/bcmcfmsys.cpp: In function 'BcmCfm_TimeZone BcmCfmImpl_tzoneToIndex(char*, int)':
    external/tr69c/./cfm/api/bcmcfmsys.cpp:135:33: error: 'BcmCfm_TimeZoneNames' was not declared in this scope
    make: *** [out/target/product/g18ref/obj/SHARED_LIBRARIES/libcfmpsi_intermediates/./cfm/api/bcmcfmsys.o] Error 1
    make: Leaving directory `/home/gavin/work/android'

    以上函数定义在3.12的bcmcfmsys.cpp中,

    在syscall.c中注释掉函数。

    在board_api.h和board_api.c中注释掉sysFlashImageSet函数

                                               注释掉sysLedCtrl函数

                                               注释掉sysSetGpioBit函数

    4. userinterface中。

  • 相关阅读:
    后端开发应该掌握的 Redis 基础
    Code Review有什么好处?
    对不起,你那不叫努力,叫重复劳动
    老鸟程序员才知道的40个小技巧
    单例模式基础笔记
    最受IT公司欢迎的50款开源软件
    硬件:关于路由器、交换机、宽带猫的几个问题
    硬件:宽带猫(光猫)的基础知识
    python selenium模块使用出错解决,Message: ‘geckodriver’ executable needs to be in PATH
    python+selenium如何定位页面的元素,的几种定位元素的方法。
  • 原文地址:https://www.cnblogs.com/gavinwu/p/3116964.html
Copyright © 2011-2022 走看看