Ignore:
Timestamp:
Apr 30, 2016, 11:29:25 PM (8 years ago)
Author:
ertl-honda
Message:

1.7.10のファイルに更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/USB/USBDesc.h

    r136 r224  
    1 // Copyright (c) 2010, Peter Barrett
    21/*
    3 ** Permission to use, copy, modify, and/or distribute this software for
    4 ** any purpose with or without fee is hereby granted, provided that the
    5 ** above copyright notice and this permission notice appear in all copies.
    6 **
    7 ** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    8 ** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    9 ** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    10 ** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    11 ** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    12 ** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    13 ** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
    14 ** SOFTWARE.
     2  Copyright (c) 2014 Arduino LLC.  All right reserved.
     3
     4  This library is free software; you can redistribute it and/or
     5  modify it under the terms of the GNU Lesser General Public
     6  License as published by the Free Software Foundation; either
     7  version 2.1 of the License, or (at your option) any later version.
     8
     9  This library is distributed in the hope that it will be useful,
     10  but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     12  See the GNU Lesser General Public License for more details.
     13
     14  You should have received a copy of the GNU Lesser General Public
     15  License along with this library; if not, write to the Free Software
     16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     17*/
     18/*
     19**Modified 04/04/2016 by Arduino.org development team
    1520*/
    1621
     
    2227#define HID_ENABLED
    2328
     29
     30#ifdef CDC_ENABLED
     31#define CDC_INTERFACE_COUNT 2
     32#define CDC_ENPOINT_COUNT 3
     33#endif
     34
    2435// CDC
    2536#define CDC_ACM_INTERFACE       0       // CDC ACM
    2637#define CDC_DATA_INTERFACE      1       // CDC Data
     38#define CDC_FIRST_ENDPOINT  1
    2739#define CDC_ENDPOINT_ACM        1
    2840#define CDC_ENDPOINT_OUT        2
    2941#define CDC_ENDPOINT_IN         3
     42
     43#ifdef CDC_ENABLED
     44#define CDC_RX CDC_ENDPOINT_OUT
     45#define CDC_TX CDC_ENDPOINT_IN
     46#endif
    3047
    3148// HID
     
    3350#define HID_ENDPOINT_INT        4 
    3451
     52
     53#define ISERIAL_MAX_LEN        20
     54
    3555// Defined string description
    3656#define IMANUFACTURER   1
    37 #define IPRODUCT                2
     57#define IPRODUCT    2
     58#define ISERIAL    3
    3859
    3960#endif /* __USBDESC_H__ */
Note: See TracChangeset for help on using the changeset viewer.