?? main.h
字號:
/******************************************************************************
** **
** AMIC Proprietary Document **
** StartA7121 **
** Copyright (c) 2004-2008 AMIC Technology Inc. **
** **
** No.2, Li-Hsin 6th Road, Science_Based Industrid Park, **
** Hsin_Chu City, 300, Taiwan, ROC. **
** Tel: 886-3-5679966 Fax: 886-3-5679977 **
** E-mail:info@amic.com.tw http: //www.amic.com.tw **
** **
******************************************************************************/
#include <reg52.h>
#define SPI_CHECK
/******************************************************************************
** FILE NAME: main.h **
** **
** HISTORY : 2005/5/17 Jones created. **
** **
** FUNCTION : This file contains constant declaration for StartA7121. **
** **
******************************************************************************/
#define Uint8 unsigned char
#define Uint16 unsigned int
#define HIGH 1
#define LOW 0
#define MASTER 0
#define SLAVE 1
#define DATA_RATE_1M 0
#define DATA_RATE_3M 1
#ifdef DATA_RATE_3M_MODE
#define FREQUENCY_NO 18
#else
#define FREQUENCY_NO 40
#endif
#define FREQUENCY_HOPPING_NO 3
#define FRAME_LIGHT 8
/************************************************
A7121 interface
************************************************/
#define SpiCs P1_0
#define SpiClk P1_1
#define TRxD P3_0
#define FClock P3_1
#define SpiTxd P1_4 // connect A7121 SPI_RXD
#define SpiRxd P1_5 // connect A7121 SPI_TXD
#define ResetPin P3_5
#define RxSync P1_6
#define CdTxenPin P1_7
#define Ms0Pin P3_2
#define Ms1Pin P3_3
#define Txd P3_6
/************************************************
Access code Table
************************************************/
const Uint8 code AccessCodeTab[9] = {0x57, 0x08, 0x4E, 0xAB,
0x02, 0xF3, 0x45, 0xE7,
0x2A
};
/************************************************
Frequency Hopping Table
************************************************/
const Uint8 code FreqHopTable[FREQUENCY_HOPPING_NO] = {0, 6, 12};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -