?? ir_rx_tx.c
字號(hào):
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include <c8051f330.h> // SFR declarations
#include <stdio.h>
#include "IR_Rx_Tx.h"
//-----------------------------------------------------------------------------
// Global VARIABLES
//-----------------------------------------------------------------------------
int IR_Key;
BOOL bAddrRecv;
unsigned char DataAvailByte;
unsigned char* pSMB_DATA_OUT; // Global pointer for SMBus data.
// All transmit data is read from here
unsigned char SMB_DATA_LEN;
//-----------------------------------------------------------------------------
// MAIN Routine
//-----------------------------------------------------------------------------
void main (void) {
// Disable Watchdog timer
PCA0MD &= ~0x40; // WDTE = 0 (clear watchdog timer
// enable)
SYSCLK_Init (); // Initialize Oscillator
PORT_Init(); // Initialize Port I/O
SMBus_Init();
Interrupts_Init();
sampleIRdata();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -