f3xx_blink_control.h

来自「8051试验程序 基础教材」· C头文件 代码 · 共 65 行

H
65
字号
//-----------------------------------------------------------------------------
// F3xx_Blink_Control.h
//-----------------------------------------------------------------------------
// Copyright 2005 Silicon Laboratories, Inc.
// http://www.silabs.com
//
// Program Description:
//
// This file includes all of the Report IDs and variables needed by
// USB_ReportHandler.c to process input and output reports,
// as well as initialization routine prototypes.
//
//
// How To Test:    See Readme.txt
//
//
// FID:            3XX000010
// Target:         C8051F3xx
// Command Line:   See Readme.txt
// Project Name:   F3xx_BlinkyExample
//
// Release 1.0
//    -Initial Revision (PD)
//    -07 DEC 2005
//

#ifndef  _BLINK_C_H_
#define  _BLINK_C_H_

extern unsigned char __xdata BLINK_SELECTOR;
extern unsigned char BLINK_PATTERN[];
extern unsigned int __xdata BLINK_RATE;
extern unsigned char __xdata BLINK_ENABLE;
extern unsigned char __xdata BLINK_SELECTORUPDATE;
extern unsigned char __xdata BLINK_LED1ACTIVE;
extern unsigned char __xdata BLINK_LED2ACTIVE;

extern unsigned char /*__xdata*/ OUT_PACKET[];
extern unsigned char /*__xdata*/ IN_PACKET[];

void System_Init(void);
void Usb_Init(void);


// ----------------------------------------------------------------------------
// Report IDs
// ----------------------------------------------------------------------------
#define OUT_BLINK_PATTERNID  0x01
#define OUT_BLINK_ENABLEID   0x02
#define OUT_BLINK_RATEID     0x03
#define IN_BLINK_SELECTORID  0x04
#define IN_Blink_StatsID     0x05

// ----------------------------------------------------------------------------
// Report Sizes (in bytes)
// ----------------------------------------------------------------------------
#define OUT_BLINK_PATTERNSize  0x08
#define OUT_BLINK_ENABLESize   0x01
#define OUT_BLINK_RATESize     0x02
#define IN_BLINK_SELECTORSize  0x01
#define IN_Blink_StatsSize     0x02


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?