prepare avr for stm32 (#104)

This commit is contained in:
tomaszduda23 2022-07-14 09:51:16 +09:00 committed by GitHub
parent 6772d3425d
commit d409ae68c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -21,10 +21,15 @@
#include "usb/hid.h"
#ifdef HID_WITH_PS2
#include "ps2/hid.h"
#endif
#include "factory.h"
#include "eeprom.h"
#ifndef ARDUINO_ARCH_AVR
#error "Only AVR is supported"
#endif
namespace DRIVERS {
Keyboard *Factory::makeKeyboard(type _type) {

View File

@ -23,6 +23,7 @@
#pragma once
#include "driver.h"
#include "stdlib.h"
namespace DRIVERS {

View File

@ -135,7 +135,9 @@ static void _initOutputs() {
break;
}
#ifdef ARDUINO_ARCH_AVR
USBDevice.attach();
#endif
_kbd->begin();
_mouse->begin();