- #ifndef usb_serial_h__
- #define usb_serial_h__
-
- #include <stdint.h>
-
- #ifdef __cplusplus
- extern "C"{
- #endif
-
-
-
-
-
- #define STR_MANUFACTURER L"Teensyduino"
- #define STR_PRODUCT L"USB Serial"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define STR_SERIAL_NUMBER L"12345"
-
-
-
-
-
- #define VENDOR_ID 0x16C0
- #define PRODUCT_ID 0x0483
-
-
-
-
-
-
-
-
- #define TRANSMIT_FLUSH_TIMEOUT 3
-
-
-
-
-
-
-
- #define TRANSMIT_TIMEOUT 15
-
-
-
-
-
-
-
-
-
- #define ENDPOINT0_SIZE 32
- #define CDC_ACM_ENDPOINT 2
- #define CDC_ACM_SIZE 8
- #define CDC_ACM_BUFFER EP_SINGLE_BUFFER
- #define CDC_RX_ENDPOINT 3
- #define CDC_RX_BUFFER EP_DOUBLE_BUFFER
- #define CDC_TX_ENDPOINT 4
- #define CDC_TX_BUFFER EP_DOUBLE_BUFFER
-
- #if defined(__AVR_AT90USB162__)
- #define CDC_RX_SIZE 32
- #define CDC_TX_SIZE 32
- #elif defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
- #define CDC_RX_SIZE 64
- #define CDC_TX_SIZE 64
- #endif
-
-
-
-
-
- void usb_init(void);
- void usb_shutdown(void);
-
-
- extern volatile uint8_t usb_configuration;
- extern volatile uint8_t usb_suspended;
-
-
-
- extern volatile uint8_t transmit_flush_timer;
- extern uint8_t transmit_previous_timeout;
-
-
-
-
- extern volatile uint8_t cdc_line_coding[7];
- extern volatile uint8_t cdc_line_rtsdtr;
-
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
|