⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainloop.h

📁 ISP1181MCU_FW_Ver1.01.zip是基于飞利浦ISP1181的USB HOST开发板固件源代码
💻 H
字号:
/*
   //*************************************************************************
   //
   //                  P H I L I P S   P R O P R I E T A R Y
   //
   //           COPYRIGHT (c)   1999 BY PHILIPS SINGAPORE.
   //                     --  ALL RIGHTS RESERVED  --
   //
   // File Name:        MAINLOOP.H
   // Created:          Oct. 12 2000
   // Modified:
   // Revision: 		1.01
   //
   //*************************************************************************
   //
   //*************************************************************************
   */


#ifndef __MAINLOOP_H__
#define __MAINLOOP_H__

#include "BasicTyp.h"

#define MAX_STANDARD_REQUEST    0x0D
#define MAX_CLASS_REQUEST		0x01
#define MAX_VENDOR_REQUEST		0x0f

/*
   //*************************************************************************
   // USB utility functions
   //*************************************************************************
*/

void SetupToken_Handler(void);
void DeviceRequest_Handler(void);
void help_devreq(UCHAR type, UCHAR req);

void on_exit(void);

void disconnect_USB(void);
void connect_USB(void);
void reconnect_USB(void);
void config_endpoint(void);

void suspend_change(void);
//suspend
void wakeup_change(void);
void bus_reset(void);
//ww
void check_key_LED(void);

void ML_AcknowledgeSETUP(void);
void ML_StallEP0(void);
void ML_ClearBufferEP0(void); // setup clear buffer, find bugs here that control IN without clear setup buffer the 
								// handshake outtoken still can be received. (maybe the data length is zero?)
void ML_Reserved(void);

// added to reuse D12 driver and test software
void setup_dma(void);
void setup_io(void);
void D13_config_DMA(void);

//void RdWrSram(void);

//march1
void EnableDMA4ISO(void);
void ISOLOOP(UCHAR bOUTEPIndex, UCHAR bINEPIndex, USHORT len);

#define ISO_IN  	0x01
#define ISO_OUT		0x02
#define ISO_LOOP	0x04

#endif


⌨️ 快捷键说明

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