亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? debug.h

?? This network protcol stack,it is very strong and powerful!
?? H
?? 第 1 頁 / 共 2 頁
字號:
/************************************************************************************
* This is the public header file for the Debug module. 
*
* Author(s): BPPED1
*
* (c) Copyright 2004, Freescale, Inc.  All rights reserved.
*
* Freescale Confidential Proprietary
* Digianswer Confidential
*
* No part of this document must be reproduced in any form - including copied,
* transcribed, printed or by any electronic means - without specific written
* permission from Freescale.
*
* Last Inspected:
* Last Tested:
*
* Source Safe revision history (Do not edit manually) 
*   $Date: 10-03-04 12:34 $
*   $Author: Bpped1 $
*   $Revision: 9 $
*   $Workfile: Debug.h $
************************************************************************************/

/************************************************************************************
DEBUG FEATURE DESCRIPTION

TOC:
1. Intoducation
2. Printing Text.
 2.1 Windows Console
 2.2 Serial Port
 2.3 LCD panel
3. Asserts
 2.1 Simulator asserts
 2.2 Asserts with BDM debugger
 2.3 Asserts with LCD panel
4. LED's
5. Buzzer

1. INTRODUCTION
The Debug functionality is used for various tasks such as outputting debug text,
and asserting on unexpected behaviour. The following sections will describe each
of the available debug features, and their possible configurations. The features
are configured by conditional compiler directives defined in Target.h, and this
header file.

2. PRINTING TEXT --------------------------------------------------------------
The main function for printing text is Dbg_Print. It is a downscaled version of
printf. I.e. it does only offer very basic formatting. The %s, and %d format
specifiers are available. Only the %s specifier takes a length parameter such
as %08s. The length must consist of two digits if it is included in the string.
A minimum number of chars specified by the length parameter is printed, and
spaces are appended if the sub-string is shorter than the minimum length.

In order to use Dbg_Print(), ENABLE_DPRINTF must be defined in Debug.h.

Other functions are also available for outputting text (please see the comments,
and description at the function declarations):
Dbg_PutStr - Print a string
Dbg_PutHexNum - Print a hexadecimal number.

The following sub-sections describe the possible output methods currently
supported for printing text. The methods are mutually exclusive, and it is not
defined what will happen if selecting two or more methods at the same time.

2.1 WINDOWS CONSOLE
If ENABLE_DPRINTF is defined, and the code is compiled for WinSim, the Dbg_Print
function will as default print to the Console using putchar() from <stdio.h>.
Nothing needs to be defined in order to redirect the output to the console, but
DBG_PRINT_TO_CONSOLE may be defined to clarify the intentions of the developer. 

2.2 SERIAL PORT
In order to redirect the Debug output to the serial port, a special cable, and
VHDL code for the SPI logger is required. The Debug output is written one byte
at a time to 8 GPIO's (8bit parallel), and converted to a serial stream @115200bps
by the modified SPI logger. The serial stream is looped back to the demo boards
COM2 port.

To redirect the printer output to the serial port DBG_PRINT_TO_COMPORT must be
defined. Please note that the output over the serial port may be slow, and thus
impair performance if called from timing sensitive code.

2.3 LCD PANEL
The LCD panel is a little limited for printing text because it only supports two
lines of text with 16 chars in each line. However, this may be sufficient for
simple debugging purposes. The Dbg_Print function will toggle the line in the
LCD display if it comes across a '\n' in the string. Otherwise, it will stay in
the current line, and everything after 16 characters is not visible. Though, a
'\n' that occurs after 16 chars of text has been printed will still toggle the
lines.

To redirect the printer output to the LCD panel DBG_PRINT_TO_LCDDISP must be
defined. Please note that the output to the LCD panel is quite slow, and thus
impair performance if called from timing sensitive code.

3. ASSERTS --------------------------------------------------------------------
Asserts can be used in two ways. Either the assert will halt the code, or the
assert will just notify the software developer that some (unexpected) event has
occured. In order to use asserts at all, ENABLE_ASSERTS must be defined in the
global header file Target.h. This header file also contains the switches for
enabling/disabling asserts for various modules. Currently the following switches
are available: PHY_ASSERT, MAC_ASSERT, SEQ_ASSERT, MEM_ASSERT, and SMAPI_ASSERT
(See Target.h for the list of switches. The list may be out of sync with this text).
These switches will halt the code on an assert condition. If the swithes are
appended with _INFO (e.g. MAC_ASSERT_INFO), then the assert will not halt the
code but only generate some sort of notification of the assert condition.

There are two options for asserts that halt the code. The first option will only
work if the demo board has a BDM debugger connected. This will set a bit in the
HCS08 CPU which enables the use of SW breakpoints. If ENABLE_ASSERT_BREAKPOINT is
defined in Target.h then the asserts will utilize the SW breakpoints.

The second option is relevant if no BDM debugger is connected. In this case the
ENABLE_ASSERT_BREAKPOINT switch must not be defined. Instead of the SW breakpoint,
an infinite loop is used for trapping the code in the assert function.

2.1 SIMULATOR ASSERTS
No options are available for the WinSim asserts. The assert function of the Visual
Studio development environment is used. The WinSim asserts are always enabled.

2.2 ASSERTS WITH SERIAL PORT
If ENABLE_ASSERT_TEXTUAL is defined in Target.h, and DBG_PRINT_TO_COMPORT in this
Debug.h, the line number and filename of the assert is printed to the serial port.

2.3 ASSERTS WITH LCD PANEL
If ENABLE_ASSERT_TEXTUAL, and DBG_PRINT_TO_LCDDISP is defined in Target.h, the line
number and filename of the assert is printed to the LCD panel. It's possible to
save a bit of code space by defining ENABLE_LCD instead of DBG_PRINT_TO_LCDDISP if
the LCD panel is only used for asserts, and not general Dbg_Print output.

4. LED'S ----------------------------------------------------------------------
Use SetLeds() with gLedOn_c/gLedOff_c, and gLed1_c, gLed2_c, gLed3_c, gLed4_c,
or gLedAll_c to turn on or off the various LEDs. ORed Combinations are possible.
ENABLE_LEDS must be defined to control the LEDs.

5. BUZZER ---------------------------------------------------------------------
The buzzer can be enabled by defining ENABLE_BUZZER. Also define ENABLE_ASSERT_BUZZER
to generate a short blip on asserts. The buzzer will generate a permanent tone by
calling the function BuzzerControl() with the parameter gBuzzerOn_c. To turn the
buzzer off, the function must be called with the parameter gBuzzerOff_c. In order
to generate a tone with a short duration, BuzzerControl() can be called with the
parameter gBuzzerBlip_c. This parameter will block the code execution for the
duration of the tone.

************************************************************************************/


#ifndef _DEBUG_H_
#define _DEBUG_H_

#include "NwkMacInterface.h"


/************************************************************************************
*************************************************************************************
* Public macros
*************************************************************************************
************************************************************************************/

/**** Debug configuation options BEGIN ****/

#ifdef PLATFORM_WINDOWS
  // Define output method for Dbg functions. Only define one at a time.

  // Console: Default if compiling for simulator. Is overridden by build environment.
  // Has no real effect but clarifying the intentions of the developer. Will auto-
  // define ENABLE_DPRINTF.
//#define DBG_PRINT_TO_CONSOLE 1

#else  // PLATFORM_GB60
  // Comport: Can be used if special cabling is used to connect the demo board to a
  // sniffer. The sniffer will then redirect the debug output to the COM2 port on the
  // demo board. Port settings are 115200, 8N1, RTS/CTS-FC. Auto-defines ENABLE_DPRINTF.
//#define DBG_PRINT_TO_COMPORT

  // Print to LCD dispaly on demo board. Only two lines of text with each 16 characters.
  // A '\n' will change which line the text is displayed in. If the length of a line of
  // text exceeds 16 characters, only the 16 first are printed. However, a terminating
  // '\n' will still cause a line change. Will auto-define ENABLE_LCD, and ENABLE_DPRINTF.
//#define DBG_PRINT_TO_LCDDISP

#define DBG_NUM_LINES_LCD 2

//#define ENABLE_LCD           // Enable LCD panel
//#define ENABLE_BUZZER        // Enable buzzer function BuzzerControl()
//#define ENABLE_ASSERT_BUZZER // Buzz the buzzer if bugz.
//#define ENABLE_LEDS          // Enable LEDs function SetLeds()

  // Enable this to make the Dbg_SetPortA0() macro set/clr Port A bit 0.
  // can be used for e.g. measuring the time between events using a scope.
//#define DBG_TOGGLE_PORTA0 1

#endif // PLATFORM_WINDOWS

//#define ENABLE_DPRINTF   // Main switch for Debug Print functionality.
//#define DBG_MLME_NWK_LOG // Print out message types between NWK and MLME
//#define DBG_MLME_MEM_LOG // Print out message types between MEM and MLME
//#define DBG_LOG_MAX      // Print all parameters of messages between NWK and MLME

/***** Debug configuation options END *****/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久不见久久见中文字幕免费| 欧美国产在线观看| 亚洲高清在线视频| 欧美亚洲日本国产| 五月婷婷色综合| 欧美一级在线视频| 99r国产精品| 亚洲一区在线观看免费| 91精品国产全国免费观看| 九九精品一区二区| 国产精品剧情在线亚洲| 色呦呦日韩精品| 日本亚洲三级在线| 国产欧美日韩不卡免费| 色香蕉成人二区免费| 亚洲成av人片www| 精品国产一区二区三区久久久蜜月 | 日韩免费高清av| 国产一区二区三区四区五区入口 | 成+人+亚洲+综合天堂| 一区二区在线看| 欧美成人一区二区三区片免费| 国产一区999| 一区二区日韩电影| 精品久久久久av影院| 91在线精品一区二区| 日本欧美一区二区三区乱码| 久久久久国产精品厨房| 一本一道波多野结衣一区二区| 日本欧美肥老太交大片| 国产精品久久久久久久久久久免费看 | 色呦呦网站一区| 九一久久久久久| 亚洲美女一区二区三区| 日韩欧美视频在线| 99久久伊人网影院| 久久精品二区亚洲w码| 亚洲日本免费电影| 久久综合色一综合色88| 在线观看亚洲精品| 国产成都精品91一区二区三 | 国产剧情一区二区| 午夜精品久久久久久久久| 久久久av毛片精品| 欧美日韩情趣电影| 不卡高清视频专区| 麻豆专区一区二区三区四区五区| 中文字幕在线不卡国产视频| 日韩精品中文字幕一区| 欧美午夜精品电影| 97国产一区二区| 国产成人精品亚洲日本在线桃色| 五月天一区二区三区| 亚洲欧美偷拍卡通变态| 久久久久国色av免费看影院| 欧美三级在线看| 91免费国产在线| 国产盗摄精品一区二区三区在线| 日韩专区在线视频| 亚洲一区二区三区在线播放| 综合精品久久久| 国产精品毛片无遮挡高清| 久久精品亚洲麻豆av一区二区 | 日产精品久久久久久久性色| 亚洲精品成人天堂一二三| 国产精品毛片无遮挡高清| 精品卡一卡二卡三卡四在线| 日韩一区二区三区电影在线观看 | 成人三级伦理片| 国产在线乱码一区二区三区| 蜜臀av国产精品久久久久| 亚洲高清一区二区三区| 一区二区三区蜜桃网| 一区二区三区高清| 国产风韵犹存在线视精品| 久久精品国产免费| 毛片基地黄久久久久久天堂| 蜜臀av一区二区在线观看 | 麻豆精品一区二区| 麻豆国产91在线播放| 蜜臀av在线播放一区二区三区| 美女高潮久久久| 国产一区二区在线免费观看| 精品一区二区在线看| 国产一区二区主播在线| 成人一区二区三区在线观看| 波多野洁衣一区| 一本大道综合伊人精品热热| 日本韩国欧美一区二区三区| 欧美色倩网站大全免费| 欧美一区二区三区在线视频| 亚洲精品一区在线观看| 中文字幕精品综合| 亚洲女与黑人做爰| 一区二区高清在线| 蜜桃久久精品一区二区| 国产久卡久卡久卡久卡视频精品| 成人午夜av电影| 91精品办公室少妇高潮对白| 欧美精品九九99久久| 日韩免费高清av| 日本一区二区三区久久久久久久久不| 国产精品青草综合久久久久99| 1024亚洲合集| 免费在线观看视频一区| 国产成人精品www牛牛影视| 91视频免费播放| 91麻豆精品国产| 欧美韩国一区二区| 亚洲成人tv网| 国产黄人亚洲片| 久久久久久久国产精品影院| 国产精品久久网站| 图片区日韩欧美亚洲| 狠狠色丁香久久婷婷综| 91在线视频观看| 欧美电影免费提供在线观看| 国产精品福利电影一区二区三区四区 | 99久久精品费精品国产一区二区 | 宅男噜噜噜66一区二区66| 久久综合狠狠综合久久综合88 | 久久久蜜桃精品| 一区二区高清在线| 国产真实精品久久二三区| 日本乱码高清不卡字幕| 精品久久久久久最新网址| 亚洲日本韩国一区| 黑人精品欧美一区二区蜜桃| 日本久久电影网| 国产欧美精品在线观看| 午夜精品一区在线观看| 成人午夜大片免费观看| 欧美成人官网二区| 亚洲综合丁香婷婷六月香| 国产.欧美.日韩| 欧美电影免费观看完整版| 亚洲资源在线观看| 成人免费视频一区二区| 精品粉嫩aⅴ一区二区三区四区| 一区二区三区在线免费| 福利视频网站一区二区三区| 制服视频三区第一页精品| 一区二区三区在线不卡| 国产成人精品免费一区二区| 日韩一区二区三区免费观看| 亚洲高清在线精品| 日本丶国产丶欧美色综合| 国产欧美一区二区精品秋霞影院| 免费成人在线网站| 欧美猛男gaygay网站| 尤物视频一区二区| 91色在线porny| 国产精品色噜噜| 国内精品久久久久影院色| 欧美一区二区三区四区久久| 亚洲国产日韩一级| 欧美日韩在线一区二区| 亚洲在线观看免费| 色综合久久久久综合体桃花网| 国产欧美日韩在线看| 国产黄色精品网站| 久久久777精品电影网影网 | 欧美激情在线观看视频免费| 91在线视频免费91| 成人欧美一区二区三区黑人麻豆| 国产suv精品一区二区三区| 久久久天堂av| 国产电影一区在线| 国产精品久久久一本精品| 丰满放荡岳乱妇91ww| 欧美国产精品v| 东方aⅴ免费观看久久av| 中文字幕高清不卡| 不卡一区二区三区四区| 18涩涩午夜精品.www| 91农村精品一区二区在线| 亚洲美女少妇撒尿| 欧美日韩一区二区欧美激情 | 日产国产欧美视频一区精品| 日韩一区二区电影网| 狠狠色伊人亚洲综合成人| 亚洲精品一区在线观看| 国产不卡视频在线播放| 中文字幕一区在线观看| 一本高清dvd不卡在线观看 | 中文字幕一区二区三区在线播放 | 欧美综合亚洲图片综合区| 亚洲国产欧美日韩另类综合| 91麻豆精品国产91久久久资源速度 | 一区二区三区 在线观看视频| 欧美日韩一区二区三区四区五区| 日本午夜一本久久久综合| www国产精品av| 99精品在线观看视频| 亚洲一区在线看| 精品国产乱码久久久久久牛牛 | 日韩欧美在线影院| 国产河南妇女毛片精品久久久| 亚洲女爱视频在线| 日韩一级在线观看|