2 ******************************************************************************
3 * @addtogroup PIOS PIOS Core hardware abstraction layer
5 * @addtogroup PIOS_USB_BOARD Board specific USB definitions
6 * @brief Board specific USB definitions
9 * @file pios_usb_board_data.h
10 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
11 * @brief Board specific USB definitions
12 * @see The GNU Public License (GPL) Version 3
14 *****************************************************************************/
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful, but
22 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 * You should have received a copy of the GNU General Public License along
27 * with this program; if not, write to the Free Software Foundation, Inc.,
28 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 #ifndef PIOS_USB_BOARD_DATA_H
32 #define PIOS_USB_BOARD_DATA_H
34 // Note : changing below length will require changes to the USB buffer setup
35 #define PIOS_USB_BOARD_HID_DATA_LENGTH 64
37 #define PIOS_USB_BOARD_EP_NUM 2
39 #include <pios_usb_defs.h> /* struct usb_* */
41 #define PIOS_USB_BOARD_PRODUCT_ID USB_PRODUCT_ID_LIBREPILOT
42 #define PIOS_USB_BOARD_DEVICE_VER USB_OP_DEVICE_VER(USB_OP_BOARD_ID_TINYFISH, USB_OP_BOARD_MODE_BL)
43 #define PIOS_USB_BOARD_SN_SUFFIX "+BL"
46 * The bootloader uses a simplified report structure
47 * BL: <REPORT_ID><DATA>...<DATA>
48 * FW: <REPORT_ID><LENGTH><DATA>...<DATA>
49 * This define changes the behaviour in pios_usb_hid.c
51 #define PIOS_USB_BOARD_BL_HID_HAS_NO_LENGTH_BYTE
53 #endif /* PIOS_USB_BOARD_DATA_H */