From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../stack/Components/BSP/include/usbController.h | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/BSP/include/usbController.h (limited to 'digital/zigbit/bitcloud/stack/Components/BSP/include/usbController.h') diff --git a/digital/zigbit/bitcloud/stack/Components/BSP/include/usbController.h b/digital/zigbit/bitcloud/stack/Components/BSP/include/usbController.h new file mode 100644 index 00000000..518efe42 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/BSP/include/usbController.h @@ -0,0 +1,42 @@ +/************************************************************//** + \file usbController.h + + \brief The header file describes functions for driving usb line. + + \author + Atmel Corporation: http://www.atmel.com \n + Support email: avr@atmel.com + + Copyright (c) 2008-2011, Atmel Corporation. All rights reserved. + Licensed under Atmel's Limited License Agreement (BitCloudTM). + + \internal + History: + 12/11/08 A. Khromykh - Created +*****************************************************************/ +#ifndef _USBCONTROLLER_H +#define _USBCONTROLLER_H + +/**************************************************************** + Prototypes section +*****************************************************************/ +/************************************************************//** +\brief Turn on pull-up on D+. +****************************************************************/ +void BSP_EnableUsb(void); + +/************************************************************//** +\brief Turn off pull-up on D+. +****************************************************************/ +void BSP_DisableUsb(void); + +/************************************************************//** +\brief Read VBUS line for detection of usb cable connection. + +\return + 0 - cable is not connected. + 1 - cable is not connected. +****************************************************************/ +uint8_t BSP_ReadVBUS(void); + +#endif /* _USBCONTROLLER_H */ -- cgit v1.2.3