/* | |||||
Copyright 2011 Jun Wako <[email protected]> | |||||
This program is free software: you can redistribute it and/or modify | |||||
it under the terms of the GNU General Public License as published by | |||||
the Free Software Foundation, either version 2 of the License, or | |||||
(at your option) any later version. | |||||
This program is distributed in the hope that it will be useful, | |||||
but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
GNU General Public License for more details. | |||||
You should have received a copy of the GNU General Public License | |||||
along with this program. If not, see <http://www.gnu.org/licenses/>. | |||||
*/ | |||||
#ifndef TEENSY_H | |||||
#define TEENSY_H 1 | |||||
// for Teensy/Teensy++ 2.0 | |||||
#define DEBUG_LED 1 | |||||
#define DEBUG_LED_CONFIG (DDRD |= (1<<6)) | |||||
#define DEBUG_LED_ON (PORTD |= (1<<6)) | |||||
#define DEBUG_LED_OFF (PORTD &= ~(1<<6)) | |||||
#endif |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0x0ADB | #define PRODUCT_ID 0x0ADB |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0x0110 | #define PRODUCT_ID 0x0110 |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0x5021 | #define PRODUCT_ID 0x5021 |
#define CONFIG_H | #define CONFIG_H | ||||
#include <avr/interrupt.h> | #include <avr/interrupt.h> | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0x6512 | #define PRODUCT_ID 0x6512 |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0x6531 | #define PRODUCT_ID 0x6531 |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0x6532 | #define PRODUCT_ID 0x6532 |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0x6800 | #define PRODUCT_ID 0x6800 |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
/* USB Device descriptor parameter */ | /* USB Device descriptor parameter */ | ||||
/* for Apple | /* for Apple |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0xBB00 | #define PRODUCT_ID 0xBB00 |
/* | |||||
Copyright 2011 Jun Wako <[email protected]> | |||||
This program is free software: you can redistribute it and/or modify | |||||
it under the terms of the GNU General Public License as published by | |||||
the Free Software Foundation, either version 2 of the License, or | |||||
(at your option) any later version. | |||||
This program is distributed in the hope that it will be useful, | |||||
but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
GNU General Public License for more details. | |||||
You should have received a copy of the GNU General Public License | |||||
along with this program. If not, see <http://www.gnu.org/licenses/>. | |||||
*/ | |||||
#ifndef TEENSY_H | |||||
#define TEENSY_H 1 | |||||
// for Teensy/Teensy++ 2.0 | |||||
#undef DEBUG_LED | |||||
#define DEBUG_LED_CONFIG | |||||
#define DEBUG_LED_ON | |||||
#define DEBUG_LED_OFF | |||||
#endif |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED | ||||
#define PRODUCT_ID 0xCAFE | #define PRODUCT_ID 0xCAFE |
#endif | #endif | ||||
#define DEBUG_LED 1 | |||||
#define DEBUG_LED_CONFIG (DDRD |= (1<<4)) | |||||
#define DEBUG_LED_OFF (PORTD |= (1<<4)) | |||||
#define DEBUG_LED_ON (PORTD &= ~(1<<4)) | |||||
#endif | #endif |
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||||
) | ) | ||||
// TODO: configurable | |||||
#define DEBUG_LED 0 | |||||
#define DEBUG_LED_CONFIG | |||||
#define DEBUG_LED_ON | |||||
#define DEBUG_LED_OFF | |||||
#endif | #endif |
#ifndef CONFIG_H | #ifndef CONFIG_H | ||||
#define CONFIG_H | #define CONFIG_H | ||||
/* controller configuration */ | |||||
#include "controller_teensy.h" | |||||
/* USB Device descriptor parameter */ | /* USB Device descriptor parameter */ | ||||
#define VENDOR_ID 0xFEED | #define VENDOR_ID 0xFEED |
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||||
) | ) | ||||
// TODO: configurable | |||||
#define DEBUG_LED 0 | |||||
#define DEBUG_LED_CONFIG | |||||
#define DEBUG_LED_ON | |||||
#define DEBUG_LED_OFF | |||||
#endif | #endif |