1
0
Fork 0

tmk_core: remove direct quantum.h includes (#21465)

This commit is contained in:
Ryan 2023-07-07 21:24:07 +10:00 committed by GitHub
parent d83578dbe4
commit 30de598650
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 9 deletions

View file

@ -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);