?? main.c
字號(hào):
/*
*********************************************************************************************************
* File: Main.C
* Contents: Firmware frameworks task dispatcher and device request parser source
*
* $Date: 04/06/06 Kimi v0.1
* $Date: 04/25/06 Kimi v0.2
* $Date: 04/30/06 Kimi v0.3
* $Date: 01/23/07 Kevin v0.4
* $Date: 02/02/07 Kevin v0.5
* Copyright (c) 2006 Fameg, Inc. All rights reserved
*********************************************************************************************************
*/
#define ALLOCATE_EXTERN // Declare GLOBAL variables and functions
#include "fs7805.h"
#include "fs7805regs.h"
#include "string.h"
/*
*********************************************************************************************************
* VARIABLE PROTOTYPES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* FUNCTION PROTOTYPES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* MAIN
*
* Description: Main function
*
* Arguments : none
*
* Returns : none
*********************************************************************************************************
*/
void main (void)
{
McuInit(); // Device initialization
TdInit();
while (TRUE)
{
memset(OutBuffer, 0x00, USB_BUFF_SIZE);
if (OutData) // Wait for usb interrupt
{
DataLen = UsbDataRead(OutBuffer); // Device read data from host
UsbDataWrite(OutBuffer, DataLen); // Device send data to host
WriteData_APLIF(OutBuffer, DataLen); // Device send data to APLIF
OutData = FALSE;
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -