diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -1,3 +1,34 @@ +// USB HID test +// Copyright (C) 2014 Florian Jung +// +// 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 3 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/>. + + + +/* Setup: + + lfuse: 0xe0 + hfuse: 0xd9 + + attach a 12MHz quartz to the atmega8, using the appropriate XTAL pins. + + connect avr.PD{2,3} over 68 Ohm to usb.DATA{+,-} + connect usb.DATA{+,-} over 3v6-Z-Diode ( ----|<---- ) to GND + connect usb.DATA- over 1.5kOhm to usb.Vcc + connect usb.GND to avr.GND. +*/ + #define F_CPU 12000000L #include <avr/io.h> |