technomancy/Atreus: Use the correct bootloader for A* pinouts

When using the A* pinouts, the bootloader should - by default - be Caterina, not
HalfKay, which should only be used for the legacy Teensy2 pinout.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/869/head
Gergely Nagy 5 years ago
parent ffa33cb90b
commit 8555978e93
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -29,6 +29,7 @@
#include <Arduino.h> #include <Arduino.h>
#include "kaleidoscope/driver/bootloader/avr/HalfKay.h" #include "kaleidoscope/driver/bootloader/avr/HalfKay.h"
#include "kaleidoscope/driver/bootloader/avr/Caterina.h"
#include "kaleidoscope/device/ATmega32U4Keyboard.h" #include "kaleidoscope/device/ATmega32U4Keyboard.h"
namespace kaleidoscope { namespace kaleidoscope {
@ -63,7 +64,12 @@ struct AtreusProps : kaleidoscope::device::ATmega32U4KeyboardProps {
}; };
typedef kaleidoscope::driver::keyscanner::ATmega<KeyScannerProps> KeyScanner; typedef kaleidoscope::driver::keyscanner::ATmega<KeyScannerProps> KeyScanner;
#ifdef KALEIDOSCOPE_HARDWARE_ATREUS_PINOUT_LEGACY_TEENSY2
typedef kaleidoscope::driver::bootloader::avr::HalfKay BootLoader; typedef kaleidoscope::driver::bootloader::avr::HalfKay BootLoader;
#else
typedef kaleidoscope::driver::bootloader::avr::Caterina BootLoader;
#endif
static constexpr const char *short_name = "atreus"; static constexpr const char *short_name = "atreus";
}; };

Loading…
Cancel
Save