1 /* PS/2 to USB keyboard converter
3 * Copyright (c) 2011 tmk
6 * Project: hid-mouse, a very simple HID example
7 * Author: Christian Starkjohann
8 * Creation Date: 2008-04-07
10 * Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
11 * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
12 * This Revision: $Id: main.c 790 2010-05-30 21:00:26Z cs $
16 #include <avr/interrupt.h>
17 #include <util/delay.h>
20 #include "host_vusb.h"
25 #define DEBUGP_INIT() do { DDRC = 0xFF; } while (0)
26 #define DEBUGP(x) do { PORTC = x; } while (0)
40 /* enforce re-enumeration, do this while interrupts are disabled! */
41 usbDeviceDisconnect();
43 /* fake USB disconnect for > 250 ms */
60 host_vusb_keyboard_send();