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

📄 serial_downloader.c

📁 freescale atk source code
💻 C
字号:
/*==================================================================================================                                                                                   Module Name:  SerialDownloader.c    General Description: Serial Downloader for USB and UART ====================================================================================================Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.This file contains copyrighted material. Use of this file isrestricted by the provisions of a Freescale Software LicenseAgreement, which has either been electronically accepted byyou or has been expressly executed between the parties.  Revision History:====================================================================================================                                        INCLUDE FILES==================================================================================================*/#include "su_basictypes.h"#include "usb_common.h"#include "usb_ipl_al_extern.h"#include "usb_tl_al_extern.h"#include "serial_downloader.h"#include "bl_transreceiver.h"/*==================================================================================================                                     GLOBAL VARIABLES==================================================================================================*//*==================================================================================================                                     LOCAL CONSTANTS==================================================================================================*//*=================================================================================================                                 GLOBAL FUNCTION PROTOTYPES==================================================================================================*//*==================================================================================================                                      LOCAL VARIABLES==================================================================================================*//*==================================================================================================                                        LOCAL MACROS==================================================================================================*//*==================================================================================================                                     GLOBAL FUNCTIONS==================================================================================================*//*==================================================================================================FUNCTION: serial_downloader_usbDESCRIPTION: Initialize the USB and starts the parser ARGUMENTS PASSED:   None    RETURN VALUE:   None   PRE-CONDITIONS:   USB path is being followed. POST-CONDITIONS:   NoneIMPORTANT NOTES:   Never returns==================================================================================================*/void serial_downloader_usb(void){    usb_state_t state;    /* Transfer Layer Initialisation */    tl_init();        /* Get the state of the USB  */        state = tl_get_state();            /* Enumeration the USB Device. */        while( state != USB_DEV_CONFIGURED_STATE )        {            /* enumeration of usb */	    tl_configure();	                /* Get the state of the USB  */	    state = tl_get_state();        }}

⌨️ 快捷键说明

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