Compile Options--编译选项

目的:其主要作用是用于调试跟踪和测试

主要包含:MT_TASK、MT_ZDO_FUNC and other MT compile options

LCD_SUPPORTED、LCD_SUPPORTED=DEBUG、BLINK_LEDS

且看正文逐一讲解;

MT_TASK

This compileoption enables the device to be able to talk to the Z-Tool PC application, andto be able to output minimal debug informationusing the debug_str() function. Removing this saves some code and RAM usage.

看点:作用,调用的函数

注意事项:会增大代码量和RAM空间的大小,这对于8位机来说要谨慎,尤其是对于协议栈这样比较大的东西。

MT_ZDO_FUNC and other MTcompile options

MT_ZDO_FUNC is an example of acompile option that enables the ZDO

commands to be used with Z-Tool. Most devices wouldnot need all of

the monitor test commands to beenabled. Each ZDO command can be

enabled individuallyin ZDConfig.h. Selectivelyenabling requests that

need to be in the application minimizes code usage. See the Z-Stack

Compile options document formore information on the different MT

compile options.

LCD_SUPPORTED

This turns on support for displaying debug trace information on

development boardsthat support an LCD. Ondevelopment kit hardware

platforms that do not supportLCDs, setting LCD_SUPPORTED enables

sending information to theSerial Port (since it does not have an LCD

display). Enabling this compileoption uses a significant portion of RAM.

LCD_SUPPORTED=DEBUG

Setting LCD_SUPPORTED=DEBUGenables sending information to both

the LCD and SerialPort, so code is actually larger.On platforms that do

not support LCDs, debug information is only sent to the Serial Port,

therefore using less code.

BLINK_LEDS

The BLINK_LEDS compile optionenables extended LED functionality at

the expense of extracode and RAM space.

See the Z-StackCompile Options document for more information.

注意后面两个编译选项的区别,其实在很多时候这些的利用价值不是

很大,但是用于调试还是有用的,例如用sniffer工具抓包。

废话少说了,看英文文档才是王道。

时间: 2024-11-08 02:10:00

Compile Options--编译选项的相关文章

GCC compile debug: print include files and compile stage info.

Sample code: #include <stdio.h> #include <stdlib.h> extern void foo() __attribute__((weak)); int main() { if (foo) foo(); printf("this is a test\n"); } Compile command: gcc -H -v sample.c Compile options: -H tells you that the right

Erlang入门(五)——补遗

暂时搞不到<Programming Erlang>,最近就一直在看Erlang自带的例子和Reference Manual.基础语法方面有一些过去遗漏或者没有注意的,断断续续仅记于此. 1.Erlang的保留字有: after and andalso band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse query receive rem try when xor 基本都是些用于

Erlang基础知识集锦

http://wenku.baidu.com/link?url=or-8mkUYUM0uVeqCYESGe93YIlh2IDLP7lFOwRlwr8Syf3PeHbwJC5DPCErs4NFrb1p4I16eJuHIIFG_tR_jdYGoL5MsJX0YEjdeUmKjkTG 声明:此文档只作为对erlang的认知之用,如果需要学习并使用erlang请系统学习介绍erlang的书. 1.       简介 l  Erlang是一个并行编程语言和运行时系统,最初由爱立信(Ericsson)于19

/proc/meminfo分析

参考: 1. linux/Documentation/filesystems/proc.txt 2. Linux 中 /proc/meminfo 的含义 分析文件信息最权威的就是linux自带的文档,Documentation/filesystems/proc.txt较详细地介绍了proc内容. meminfo: Provides information about distribution and utilization of memory.  This varies by architect

Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task &#39;:compileDebugAidl&#39;.的问题解答

Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'.的问题解答 完整的问题提示 Gradle: FAILURE:Build failed with an exception.*What went wrong:Execution failed for task ':compileDebugAidl'.>No

Android NDK开发指南---Application.mk文件和android.mk文件

https://android.googlesource.com/platform/development/+/donut-release/ndk/docs/OVERVIEW.TXT https://android.googlesource.com/platform/ndk/+/4e159d95ebf23b5f72bb707b0cb1518ef96b3d03/docs/ANDROID-MK.TXT https://android.googlesource.com/platform/ndk/+/4

vue的双向绑定原理及实现

前言 使用vue也好有一段时间了,虽然对其双向绑定原理也有了解个大概,但也没好好探究下其原理实现,所以这次特意花了几晚时间查阅资料和阅读相关源码,自己也实现一个简单版vue的双向绑定版本,先上个成果图来吸引各位: 代码:                                                                    效果图:   是不是看起来跟vue的使用方式差不多?接下来就来从原理到实现,从简到难一步一步来实现这个SelfVue.由于本文只是为了学习和分享

Linux系统裁剪之四(自定义内核及busybox完成系统定制)

Linux系统裁剪之四(自定义内核及busybox完成系统定制) ·busybox busybox是一个二进制程序,可以模拟实现许许多多的Linux命令,busybox在编译安装完成之后会在我们系统的bin目录下生成一个名为busybox的二进制程序,其它的文件都是该二进制程序的软链接,几乎上百个命令都可以依靠这一个可执行程序来实现,还可以模拟几个shell,可以模拟实现我们Linux操作系统上bin和sbin目录下的很多命令,而且该文件所占的存储空间还非常的小,因此在一些存储设备容量非常小的环

构造一个简单的linux系统

1.搭建环境 cd ~/Work/ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.18.6.tar.xz xz -d linux-3.18.6.tar.xz tar -xvf linux-3.18.6.tar cd linux-3.18.6 make i386_defconfig make cd ~/Work/ mkdir rootfs git clone https://github.com/mengning/menu.gi