Compile options--Compilation Options

Source: Internet
Author: User

Purpose: Its main function is to debug and track and test

Mainly includes: Mt_task, Mt_zdo_func and other MT compile options

lcd_supported, Lcd_supported=debug, blink_leds

And look at the text to explain each;

Mt_task

This compileoption enables the device is able to the Z-tool PC application, Andto is able to output minimal Deb UG informationusing the Debug_str () function. Removing this saves some code and RAM usage.

What to do: function, call functions

Note: This will increase the size of the code and RAM space, which is prudent for 8-bit machines, especially for large stacks such as the protocol stack.

Mt_zdo_func and other Mtcompile options

Mt_zdo_func is a example of acompile option that enables the ZDO

Commands to is used with Z-tool. Most devices wouldnot need all of

The monitor test commands to beenabled. Each ZDO command can

Enabled Individuallyin ZDConfig.h. Selectivelyenabling requests that

Need to is 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 the displaying debug trace information on

Development Boardsthat Support an LCD. Ondevelopment Kit Hardware

Platforms that does not Supportlcds, setting lcd_supported enables

Sending information to Theserial Port (since it does not has 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 this do

Not support LCDs, debug information are 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.

Note the difference between the following two compilation options, in fact, in many cases the use of these values is not

Very large, but useful for debugging, such as grabbing a bag with the sniffer tool.

Talk less, look at the English document is the kingly way.

Compile options--Compilation Options

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.