📄 mapp.h
字号:
/************************************************************************************
* This header file is for MyWirelessApp03a application
*
* (c) Copyright 2006, Freescale, Inc. All rights reserved.
*
*
* 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.
*
************************************************************************************/
#ifndef _MAPP_H_
#define _MAPP_H_
#include "MApp_init.h"
#include "ApplicationConf.h"
#include "802_15_4.h" /* Include everything related to the 802.15.4 interface*/
#include "UartUtil.h" /* Defines the interface of the demo UART. */
#include "Display.h" /* Defines the interface of the LCD driver. */
#include "Uart_Interface.h"/* Defines the interface of the Uart driver. */
#include "TMR_Interface.h" /* Defines the interface of the Timer driver. */
#include "TS_Interface.h" /* Defines the interface of the TaskScheduler. */
#include "PWR_Interface.h" /* Defines the interface of the Low Power Module. */
#include "Led.h" /* Defines the interface of the Led Module. */
#include "Keyboard.h" /* Defines the interface of the Keyboard Module. */
#include "NV_Data.h" /* Defines the interface of the Keyboard Module. */
#if gBootloaderLiteEnabled_c == 1
#include "Bootloader_lite.h"
#endif
#ifdef BOOTLOADER_ENABLED
#include "embedded_bootloader.h"
#endif
/************************************************************************************
*************************************************************************************
* Public macros
*************************************************************************************
************************************************************************************/
/*Set the Coordinator short address */
#define mDefaultValueOfShortAddress_c 0xCAFE
/*Set the Coordinator PanID */
#define mDefaultValueOfPanId_c 0xBEEF
/************************************************************************************
*************************************************************************************
* Private type definitions
*************************************************************************************
************************************************************************************/
/* The various states of the application state machine. */
enum {
stateInit,
stateScanEdStart,
stateScanEdWaitConfirm,
stateStartCoordinator,
stateStartCoordinatorWaitConfirm
};
/* Events that are passed to the application task.
Are defined as byte masks to make possible
send multiple events to the task */
typedef enum
{
evtInit = 1,
evtStartScan = 2,
evtMessageFromMLME = 4,
evtStartCoordinator = 8
};
/* Error codes */
enum {
errorNoError,
errorWrongConfirm,
errorNotSuccessful,
errorNoMessage,
errorAllocFailed,
errorInvalidParameter,
errorNoScanResults
};
/******************************************************************************
*******************************************************************************
* Public Prototypes
*******************************************************************************
******************************************************************************/
extern void MApp_init(void);
/**********************************************************************************/
#endif /* _MAPP_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -