blob: c5d58257cbeb4e9d69f6826669df107276e6e1fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* STM32L Family specific USB functionality
*/
#include "registers.h"
#include "usb_api.h"
void usb_connect(void)
{
STM32_SYSCFG_PMC |= 1;
}
void usb_disconnect(void)
{
/* disable pull-up on DP to disconnect */
STM32_SYSCFG_PMC &= ~1;
}
|