summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/usb_util.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-07-07 21:24:07 +1000
committerGitHub <noreply@github.com>2023-07-07 21:24:07 +1000
commit30de598650f368e215ad5f82c7b9de52eceb539e (patch)
treec6fc060fa459e3fc571624530330bbbcb55fea45 /tmk_core/protocol/usb_util.c
parentd83578dbe4df0e77112b673265445d37fd231b93 (diff)
tmk_core: remove direct `quantum.h` includes (#21465)
Diffstat (limited to 'tmk_core/protocol/usb_util.c')
-rw-r--r--tmk_core/protocol/usb_util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/protocol/usb_util.c b/tmk_core/protocol/usb_util.c
index 49aadedc2a..3b3be4a767 100644
--- a/tmk_core/protocol/usb_util.c
+++ b/tmk_core/protocol/usb_util.c
@@ -13,13 +13,17 @@
* 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 "gpio.h"
+#include "wait.h"
__attribute__((weak)) void usb_disconnect(void) {}
+
__attribute__((weak)) bool usb_connected_state(void) {
return true;
}
+
__attribute__((weak)) bool usb_vbus_state(void) {
#ifdef USB_VBUS_PIN
setPinInput(USB_VBUS_PIN);