2014-11-27 06:26:13 -08:00
|
|
|
/************************************************************************************//**
|
2018-07-17 06:06:06 -07:00
|
|
|
* \file Source/usb.h
|
2014-11-27 06:26:13 -08:00
|
|
|
* \brief Bootloader USB communication interface header file.
|
2016-02-25 05:51:12 -08:00
|
|
|
* \ingroup Core
|
2014-11-27 06:26:13 -08:00
|
|
|
* \internal
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* C O P Y R I G H T
|
|
|
|
*----------------------------------------------------------------------------------------
|
2016-02-25 05:51:12 -08:00
|
|
|
* Copyright (c) 2016 by Feaser http://www.feaser.com All rights reserved
|
2014-11-27 06:26:13 -08:00
|
|
|
*
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* L I C E N S E
|
|
|
|
*----------------------------------------------------------------------------------------
|
|
|
|
* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation, either version 3 of the License, or (at your option) any later
|
|
|
|
* version.
|
|
|
|
*
|
|
|
|
* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
2016-07-25 01:33:52 -07:00
|
|
|
* You have received a copy of the GNU General Public License along with OpenBLT. It
|
2016-04-30 15:52:15 -07:00
|
|
|
* should be located in ".\Doc\license.html". If not, contact Feaser to obtain a copy.
|
2016-03-01 06:24:23 -08:00
|
|
|
*
|
2014-11-27 06:26:13 -08:00
|
|
|
* \endinternal
|
|
|
|
****************************************************************************************/
|
|
|
|
#ifndef USB_H
|
|
|
|
#define USB_H
|
|
|
|
|
|
|
|
#if (BOOT_COM_USB_ENABLE > 0)
|
|
|
|
/****************************************************************************************
|
|
|
|
* Function prototypes
|
|
|
|
****************************************************************************************/
|
|
|
|
void UsbInit(void);
|
|
|
|
void UsbFree(void);
|
|
|
|
void UsbTransmitPacket(blt_int8u *data, blt_int8u len);
|
2018-02-09 08:59:41 -08:00
|
|
|
blt_bool UsbReceivePacket(blt_int8u *data, blt_int8u *len);
|
2014-11-27 06:26:13 -08:00
|
|
|
|
|
|
|
/****************************************************************************************
|
|
|
|
* Hook functions
|
|
|
|
****************************************************************************************/
|
|
|
|
extern void UsbEnterLowPowerModeHook(void);
|
|
|
|
extern void UsbLeaveLowPowerModeHook(void);
|
|
|
|
extern void UsbConnectHook(blt_bool connect);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* BOOT_COM_USB_ENABLE > 0 */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* USB_H */
|
|
|
|
/*********************************** end of usb.h **************************************/
|