mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Disable VBUSSENSING features on PA9 completely
This commit is contained in:
parent
3cf1851382
commit
78bc3f52ad
2 changed files with 11 additions and 7 deletions
|
@ -318,6 +318,7 @@ USB_OTG_STS USB_OTG_SelectCore(USB_OTG_CORE_HANDLE *pdev,
|
|||
return status;
|
||||
}
|
||||
|
||||
#include "build/debug.h"
|
||||
|
||||
/**
|
||||
* @brief USB_OTG_CoreInit
|
||||
|
@ -391,13 +392,13 @@ USB_OTG_STS USB_OTG_CoreInit(USB_OTG_CORE_HANDLE *pdev)
|
|||
/* Deactivate the power down*/
|
||||
gccfg.d32 = 0;
|
||||
gccfg.b.pwdn = 1;
|
||||
#ifdef VBUS_SENSING_ENABLED
|
||||
gccfg.b.vbussensingA = 1 ;
|
||||
gccfg.b.vbussensingB = 1 ;
|
||||
|
||||
#ifndef VBUS_SENSING_ENABLED
|
||||
#else
|
||||
gccfg.b.disablevbussensing = 1;
|
||||
#endif
|
||||
|
||||
|
||||
if(pdev->cfg.Sof_output)
|
||||
{
|
||||
gccfg.b.sofouten = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue