Subversion Repositories NaviCtrl

Rev

Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 111
Line 14... Line 14...
14
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
14
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
15
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
15
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
16
*******************************************************************************/
16
*******************************************************************************/
17
/* Includes ------------------------------------------------------------------*/
17
/* Includes ------------------------------------------------------------------*/
18
#include "usb_lib.h"
18
#include "usb_lib.h"
19
#include "hw_config.h"
-
 
20
#include "usb_pwr.h"
19
#include "usb_pwr.h"
-
 
20
#include "usb.h"
21
/* Private typedef -----------------------------------------------------------*/
21
/* Private typedef -----------------------------------------------------------*/
22
/* Private define ------------------------------------------------------------*/
22
/* Private define ------------------------------------------------------------*/
23
/* Private macro -------------------------------------------------------------*/
23
/* Private macro -------------------------------------------------------------*/
24
/* Private variables ---------------------------------------------------------*/
24
/* Private variables ---------------------------------------------------------*/
25
volatile bool fCellSuspended;
25
volatile bool fCellSuspended;
Line 45... Line 45...
45
{
45
{
46
 u16 wRegVal;
46
 u16 wRegVal;
Line 47... Line 47...
47
 
47
 
48
        /*** cable plugged-in ? ***/
48
        /*** cable plugged-in ? ***/
49
        /*while(!CablePluggedIn());*/
49
        /*while(!CablePluggedIn());*/
Line 50... Line 50...
50
        USB_Cable_Config(ENABLE);
50
    USB_CableConfig(ENABLE);
51
               
51
               
52
        /*** CNTR_PWDN = 0 ***/
52
        /*** CNTR_PWDN = 0 ***/
Line 76... Line 76...
76
     /* disable all ints and force USB reset */
76
     /* disable all ints and force USB reset */
77
     _SetCNTR(CNTR_FRES);
77
     _SetCNTR(CNTR_FRES);
78
     /* clear interrupt status register */
78
     /* clear interrupt status register */
79
     _SetISTR(0);
79
     _SetISTR(0);
80
     /* Disable the Pull-Up*/
80
     /* Disable the Pull-Up*/
81
     USB_Cable_Config(DISABLE);
81
     USB_CableConfig(DISABLE);
82
    /* switch-off device */
82
    /* switch-off device */
83
    _SetCNTR(CNTR_FRES+CNTR_PDWN);
83
    _SetCNTR(CNTR_FRES+CNTR_PDWN);
84
    /* sw variables reset */
84
    /* sw variables reset */
85
        /* ... */
85
        /* ... */