summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/BSP/include/usbController.h
blob: 518efe422bcd78491928fd0eea712375e5bcf258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 */