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