Initial_H.#3
上传用户:gxz1972
上传日期:2019-09-13
资源大小:323k
文件大小:2k
- //-----------------------------------------------------------------------------
- // Initial_H.h
- //-----------------------------------------------------------------------------
- //-----------------------------------------------------------------------------
- // Copyright 2007 Vson Technology, Inc.
- // http://www.usbmcu.com
- //
- // Program Description:
- //
- //
- //
- //
- //
- // MCU: C8051F347
- // Tool chain: Keil C51 7.50 / Keil EVAL C51
- // Silicon Laboratories IDE version 2.6
- // Command Line:
- // Project Name: TR1000
- //
- //
- // Release 1.0
- // -All changes by Brian Cai
- // -24 JUL 2007
- //
- //
- #ifndef _Initial_H_
- #define _Initial_H_
- //-----------------------------------------------------------------------------
- // Port in initial
- //-----------------------------------------------------------------------------
- //P1MDOUT=0xdb; //bit 5 bit 2 set to Input I/O
- //P2MDOUT=0xd6; //bit5 bit3 bit0 set to Input I/O
- #define RF_DATA_PORT_IN_INITIAL
- {
- P0MDOUT=0xfa;
- P1MDOUT=0xdb;
- P2MDOUT=0x96;
- P0|=~0xfa;
- P1|=~0xdb;
- P2|=~0x96;
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- _nop_();
- }
- #define RF_DATA_PORT_OUT_INITIAL P1MDOUT=0xff
- //-----------------------------------------------------------------------------
- // Function Prototypes
- //-----------------------------------------------------------------------------
- void Initial(void);
- void SYSCLK_Init (void);
- void VDD_MON_Init(void);
- void USB0_Init (void);
- void PORT_Init(void);
- void Timer_Init(void);
- #endif