Signed-off-by: Gergely Nagy <algernon@keyboard.io>
wip/rcm-stm32
Gergely Nagy 3 years ago
parent 785cb841fe
commit c01d5a45d8
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -30,6 +30,11 @@ Runtime_::Runtime_(void) {
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
void void
Runtime_::setup(void) { Runtime_::setup(void) {
kaleidoscope::sketch_exploration::pluginsExploreSketch();
kaleidoscope::Hooks::onSetup();
device().setup();
// We are explicitly initializing the Serial port as early as possible to // We are explicitly initializing the Serial port as early as possible to
// (temporarily, hopefully) work around an issue on OSX. If we initialize // (temporarily, hopefully) work around an issue on OSX. If we initialize
// Serial too late, no matter what we do, we'll end up reading garbage from // Serial too late, no matter what we do, we'll end up reading garbage from
@ -38,12 +43,7 @@ Runtime_::setup(void) {
// //
// TODO(anyone): Figure out a way we can get rid of this, and fix the bug // TODO(anyone): Figure out a way we can get rid of this, and fix the bug
// properly. // properly.
device().serialPort().begin(9600); //device().serialPort().begin(9600);
kaleidoscope::sketch_exploration::pluginsExploreSketch();
kaleidoscope::Hooks::onSetup();
device().setup();
// Clear the keyboard state array (all keys idle at start) // Clear the keyboard state array (all keys idle at start)
live_keys.clear(); live_keys.clear();

@ -46,8 +46,8 @@ template <typename _Props>
class RCMComposite: public Base<_Props> { class RCMComposite: public Base<_Props> {
public: public:
void setup() { void setup() {
//rcmcomposite::RCMHID.begin(rcmcomposite::CompositeSerial, HID_KEYBOARD_MOUSE); rcmcomposite::RCMHID.begin(rcmcomposite::CompositeSerial, HID_KEYBOARD);
rcmcomposite::RCMHID.begin(HID_KEYBOARD_MOUSE); while(!USBComposite);
} }
}; };

Loading…
Cancel
Save