Przeglądaj źródła

Add support for clueboard hotswap audio

skullY 8 lat temu
rodzic
commit
ccb75398c2

+ 1 - 1
keyboards/clueboard/66_hotswap/gen1/config.h

@@ -26,7 +26,7 @@
 
 
 /* Speaker configuration
 /* Speaker configuration
  */
  */
-//#define SPEAKER_PIN B7 // FIXME: find the correct name for this define
+#define B7_AUDIO
 
 
 /* Backlight configuration
 /* Backlight configuration
  */
  */

+ 3 - 2
keyboards/clueboard/66_hotswap/rules.mk

@@ -6,6 +6,7 @@ ARCH = AVR8
 F_USB = $(F_CPU)
 F_USB = $(F_CPU)
 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 OPT_DEFS += -DBOOTLOADER_SIZE=4096
 OPT_DEFS += -DBOOTLOADER_SIZE=4096
+EXTRAFLAGS += -flto
 
 
 # Build Options
 # Build Options
 #   comment out to disable the options.
 #   comment out to disable the options.
@@ -14,9 +15,9 @@ BOOTMAGIC_ENABLE = no 	# Virtual DIP switch configuration(+1000)
 MOUSEKEY_ENABLE = no	# Mouse keys(+4700)
 MOUSEKEY_ENABLE = no	# Mouse keys(+4700)
 EXTRAKEY_ENABLE = yes 	# Audio control and System control(+450)
 EXTRAKEY_ENABLE = yes 	# Audio control and System control(+450)
 CONSOLE_ENABLE = yes	# Console for debug(+400)
 CONSOLE_ENABLE = yes	# Console for debug(+400)
-COMMAND_ENABLE = yes	# Commands for debug and configuration
+COMMAND_ENABLE = no	# Commands for debug and configuration
 NKRO_ENABLE = yes	# USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
 NKRO_ENABLE = yes	# USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
-AUDIO_ENABLE = no
+AUDIO_ENABLE = yes
 RGBLIGHT_ENABLE = yes	# Enable keyboard underlight functionality
 RGBLIGHT_ENABLE = yes	# Enable keyboard underlight functionality
 MIDI_ENABLE = no 	# MIDI controls
 MIDI_ENABLE = no 	# MIDI controls
 UNICODE_ENABLE = no 	# Unicode
 UNICODE_ENABLE = no 	# Unicode