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中。

  • 相关阅读:
    jquery 插件扩展2
    jquery 插件扩展
    call apply bind
    bom object
    js oop 封装
    js oop 继承
    js页面之间传参2
    js弹出新窗口的6中方法
    display Tag
    js中extends方法
  • 原文地址:https://www.cnblogs.com/gavinwu/p/3116964.html
Copyright © 2011-2022 走看看