summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon/src/Bitcloud_stack/Components/BSP/include/usbController.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-03-18 12:22:02 +0100
committerFlorent Duchon2012-03-18 16:30:37 +0100
commita54ad9edce697133a024aff096e50f7e4f389d5b (patch)
tree9b87c5f8fce3fc0127a2e36b8a809508c1a3298b /digital/beacon/src/Bitcloud_stack/Components/BSP/include/usbController.h
parent8ac7f52728a8ec2a09a6eeebc3cf5d4afff9b485 (diff)
digital/beacon: import Zigbit stack (bitcloud) & avr sources
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/BSP/include/usbController.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/BSP/include/usbController.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/BSP/include/usbController.h b/digital/beacon/src/Bitcloud_stack/Components/BSP/include/usbController.h
new file mode 100644
index 00000000..518efe42
--- /dev/null
+++ b/digital/beacon/src/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 */