Allow configuration of USB_VBUS_PIN on chibios (#13342)

This commit is contained in:
Joel Challis 2021-06-26 11:48:48 +01:00 committed by GitHub
parent 848da57d6e
commit c232882fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,9 @@
*/
#pragma once
#define SPLIT_USB_DETECT // Force this on for now
#ifndef USB_VBUS_PIN
# define SPLIT_USB_DETECT // Force this on when dedicated pin is not used
#endif
#if defined(STM32F1XX)
# define USE_GPIOV1

View File

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "usb_util.h"
#include "wait.h"
__attribute__((weak)) void usb_disable(void) {}
__attribute__((weak)) bool usb_connected_state(void) { return true; }