三木社区

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 484|回复: 0
打印 上一主题 下一主题

examples\sm14z2538\websocket-example\project-conf.h

[复制链接]

1657

主题

1684

帖子

5684

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5684
跳转到指定楼层
楼主
发表于 2017-6-15 12:41:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
文件名称:project-conf.h
文件路径:contiki-3.0\examples\sm14z2538\websocket-example
源码分析:
  1. //取消UIP_FALLBACK_INTERFACE
  2. #undef UIP_FALLBACK_INTERFACE
  3. //UIP_FALLBACK_INTERFACE重新定义
  4. #define UIP_FALLBACK_INTERFACE ip64_uip_fallback_interface
  5. //启用IP64转换功能
  6. #define IP64_ADDRMAP_CONF_ENTRIES 64
  7. //开启路由功能
  8. #define ROUTER 1
  9. //配置路由
  10. #define ROUTER_CONF 1
  11. //重新定义UIP_CONF_BUFFER_SIZE
  12. #undef UIP_CONF_BUFFER_SIZE
  13. #define UIP_CONF_BUFFER_SIZE 1300
  14. //重新定义UIP_CONF_TCP_MSS
  15. #undef UIP_CONF_TCP_MSS
  16. #define UIP_CONF_TCP_MSS     1000
  17. //重新定义UIP_CONF_RECEIVE_WINDOW
  18. #undef UIP_CONF_RECEIVE_WINDOW
  19. #define UIP_CONF_RECEIVE_WINDOW 1000
  20. //重新定义NBR_TABLE_CONF_MAX_NEIGHBORS
  21. #undef NBR_TABLE_CONF_MAX_NEIGHBORS
  22. #define NBR_TABLE_CONF_MAX_NEIGHBORS                 64
  23. //重新定义UIP_CONF_MAX_ROUTES
  24. #undef UIP_CONF_MAX_ROUTES
  25. #define UIP_CONF_MAX_ROUTES                  64

  26. /* Make HTTP/TCP connection way faster. */
  27. #undef UIP_CONF_TCP_SPLIT
  28. #define UIP_CONF_TCP_SPLIT 1
  29. #undef UIP_SPLIT_CONF_SIZE
  30. #define UIP_SPLIT_CONF_SIZE 8

  31. #include "../apps/thsq-conf/thsq-conf-const.h"

  32. #ifndef THSQ_CONF_NETSTACK
  33. //#define THSQ_CONF_NETSTACK      THSQ_CONF_NULLRDC
  34. #define THSQ_CONF_NETSTACK      THSQ_CONF_DROWSIE
  35. //#define THSQ_CONF_NETSTACK      (THSQ_CONF_AES | THSQ_CONF_DROWSIE)
  36. //射频通道设置
  37. int8_t cc2538_rf_channel_set(uint8_t channel);
  38. #define MULTICHAN_CONF_SET_CHANNEL(x) cc2538_rf_channel_set(x)
  39. #define MULTICHAN_CONF_READ_RSSI(x) 0
  40. #define MULTICHAN_CONF_NR_CHANNELS    16
  41. #define MULTICHAN_CONF_CHANNEL_OFFSET 11

  42. #endif /* THSQ_CONF_NETSTACK */

  43. #include "../apps/thsq-conf/thsq-default-conf.h"

  44. #define NETSTACK_RADIO_MAX_PAYLOAD_LEN 125
复制代码


回复

使用道具 举报

Archiver|手机版|小黑屋|三木电子社区 ( 辽ICP备11000133号-4 )

辽公网安备 21021702000620号

GMT+8, 2025-5-3 00:08 , Processed in 0.040424 second(s), 27 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表