diff options
Diffstat (limited to 'quantum/template')
| -rw-r--r-- | quantum/template/avr/config.h | 7 | ||||
| -rw-r--r-- | quantum/template/base/keyboard.c | 4 | ||||
| -rw-r--r-- | quantum/template/base/keymaps/default/keymap.c | 6 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/config.h | 8 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/usbconfig.h | 12 |
5 files changed, 18 insertions, 19 deletions
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h index 304a54ae5..7e4a01449 100644 --- a/quantum/template/avr/config.h +++ b/quantum/template/avr/config.h | |||
| @@ -190,9 +190,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 190 | //#define NO_ACTION_LAYER | 190 | //#define NO_ACTION_LAYER |
| 191 | //#define NO_ACTION_TAPPING | 191 | //#define NO_ACTION_TAPPING |
| 192 | //#define NO_ACTION_ONESHOT | 192 | //#define NO_ACTION_ONESHOT |
| 193 | //#define NO_ACTION_MACRO | ||
| 194 | //#define NO_ACTION_FUNCTION | ||
| 195 | 193 | ||
| 194 | /* disable these deprecated features by default */ | ||
| 195 | #ifndef LINK_TIME_OPTIMIZATION_ENABLE | ||
| 196 | #define NO_ACTION_MACRO | ||
| 197 | #define NO_ACTION_FUNCTION | ||
| 198 | #endif | ||
| 196 | /* | 199 | /* |
| 197 | * MIDI options | 200 | * MIDI options |
| 198 | */ | 201 | */ |
diff --git a/quantum/template/base/keyboard.c b/quantum/template/base/keyboard.c index 55e4fffd3..fc31c294a 100644 --- a/quantum/template/base/keyboard.c +++ b/quantum/template/base/keyboard.c | |||
| @@ -42,9 +42,9 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||
| 42 | return process_record_user(keycode, record); | 42 | return process_record_user(keycode, record); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void led_set_kb(uint8_t usb_led) { | 45 | bool led_update_kb(led_t led_state) { |
| 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here |
| 47 | 47 | ||
| 48 | led_set_user(usb_led); | 48 | return led_update_user(led_state); |
| 49 | } | 49 | } |
| 50 | */ | 50 | */ |
diff --git a/quantum/template/base/keymaps/default/keymap.c b/quantum/template/base/keymaps/default/keymap.c index 4d5bac7b2..af35ccec1 100644 --- a/quantum/template/base/keymaps/default/keymap.c +++ b/quantum/template/base/keymaps/default/keymap.c | |||
| @@ -52,7 +52,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 52 | case QMKURL: | 52 | case QMKURL: |
| 53 | if (record->event.pressed) { | 53 | if (record->event.pressed) { |
| 54 | // when keycode QMKURL is pressed | 54 | // when keycode QMKURL is pressed |
| 55 | SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER)); | 55 | SEND_STRING("https://qmk.fm/\n"); |
| 56 | } else { | 56 | } else { |
| 57 | // when keycode QMKURL is released | 57 | // when keycode QMKURL is released |
| 58 | } | 58 | } |
| @@ -70,7 +70,7 @@ void matrix_scan_user(void) { | |||
| 70 | 70 | ||
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | void led_set_user(uint8_t usb_led) { | 73 | bool led_update_user(led_t led_state) { |
| 74 | 74 | return true; | |
| 75 | } | 75 | } |
| 76 | */ | 76 | */ |
diff --git a/quantum/template/ps2avrgb/config.h b/quantum/template/ps2avrgb/config.h index f6d7c25e0..d93512bca 100644 --- a/quantum/template/ps2avrgb/config.h +++ b/quantum/template/ps2avrgb/config.h | |||
| @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | #define VENDOR_ID 0x20A0 | 22 | #define VENDOR_ID 0x20A0 |
| 23 | #define PRODUCT_ID 0x422D | 23 | #define PRODUCT_ID 0x422D |
| 24 | #define DEVICE_VER 0x0001 | 24 | #define DEVICE_VER 0x0001 |
| 25 | #define MANUFACTURER You | 25 | #define MANUFACTURER %YOUR_NAME% |
| 26 | #define PRODUCT %KEYBOARD% | 26 | #define PRODUCT %KEYBOARD% |
| 27 | #define DESCRIPTION A custom keyboard | 27 | #define DESCRIPTION A custom keyboard |
| 28 | 28 | ||
| @@ -44,6 +44,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 44 | 44 | ||
| 45 | #define NO_UART 1 | 45 | #define NO_UART 1 |
| 46 | 46 | ||
| 47 | /* disable these deprecated features by default */ | ||
| 48 | #ifndef LINK_TIME_OPTIMIZATION_ENABLE | ||
| 49 | #define NO_ACTION_MACRO | ||
| 50 | #define NO_ACTION_FUNCTION | ||
| 51 | #endif | ||
| 52 | |||
| 47 | /* key combination for magic key command */ | 53 | /* key combination for magic key command */ |
| 48 | /* defined by default; to change, uncomment and set to the combination you want */ | 54 | /* defined by default; to change, uncomment and set to the combination you want */ |
| 49 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | 55 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) |
diff --git a/quantum/template/ps2avrgb/usbconfig.h b/quantum/template/ps2avrgb/usbconfig.h index 9ef232f04..83ad06544 100644 --- a/quantum/template/ps2avrgb/usbconfig.h +++ b/quantum/template/ps2avrgb/usbconfig.h | |||
| @@ -98,20 +98,10 @@ section at the end of this file). | |||
| 98 | * (e.g. HID), but never want to send any data. This option saves a couple | 98 | * (e.g. HID), but never want to send any data. This option saves a couple |
| 99 | * of bytes in flash memory and the transmit buffers in RAM. | 99 | * of bytes in flash memory and the transmit buffers in RAM. |
| 100 | */ | 100 | */ |
| 101 | #define USB_CFG_INTR_POLL_INTERVAL 1 | ||
| 102 | /* If you compile a version with endpoint 1 (interrupt-in), this is the poll | ||
| 103 | * interval. The value is in milliseconds and must not be less than 10 ms for | ||
| 104 | * low speed devices. | ||
| 105 | */ | ||
| 106 | #define USB_CFG_IS_SELF_POWERED 0 | 101 | #define USB_CFG_IS_SELF_POWERED 0 |
| 107 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the | 102 | /* Define this to 1 if the device has its own power supply. Set it to 0 if the |
| 108 | * device is powered from the USB bus. | 103 | * device is powered from the USB bus. |
| 109 | */ | 104 | */ |
| 110 | #define USB_CFG_MAX_BUS_POWER 500 | ||
| 111 | /* Set this variable to the maximum USB bus power consumption of your device. | ||
| 112 | * The value is in milliamperes. [It will be divided by two since USB | ||
| 113 | * communicates power requirements in units of 2 mA.] | ||
| 114 | */ | ||
| 115 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 | 105 | #define USB_CFG_IMPLEMENT_FN_WRITE 1 |
| 116 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out | 106 | /* Set this to 1 if you want usbFunctionWrite() to be called for control-out |
| 117 | * transfers. Set it to 0 if you don't need it and want to save a couple of | 107 | * transfers. Set it to 0 if you don't need it and want to save a couple of |
| @@ -227,7 +217,7 @@ section at the end of this file). | |||
| 227 | * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand | 217 | * with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand |
| 228 | * the implications! | 218 | * the implications! |
| 229 | */ | 219 | */ |
| 230 | #define USB_CFG_DEVICE_VERSION 0x00, 0x02 | 220 | #define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF) |
| 231 | /* Version number of the device: Minor number first, then major number. | 221 | /* Version number of the device: Minor number first, then major number. |
| 232 | */ | 222 | */ |
| 233 | #define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r' | 223 | #define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r' |
