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

📄 main.c

📁 FS7805 使用APLIF的demoFS7805 使用APLIF的demo
💻 C
字号:
/*
*********************************************************************************************************
* 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;
        }
    }
}



⌨️ 快捷键说明

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