Optimize LUFA config for size
parent
5e50516fe7
commit
ceda1cce08
|
|
@ -42,14 +42,14 @@
|
||||||
#include "lufa/LUFA/Drivers/USB/USB.h"
|
#include "lufa/LUFA/Drivers/USB/USB.h"
|
||||||
|
|
||||||
/* Macros: */
|
/* Macros: */
|
||||||
/** Endpoint address of the CDC device-to-host notification IN endpoint. */
|
|
||||||
#define CDC_NOTIFICATION_EPADDR (ENDPOINT_DIR_IN | 2)
|
|
||||||
|
|
||||||
/** Endpoint address of the CDC device-to-host data IN endpoint. */
|
/** Endpoint address of the CDC device-to-host data IN endpoint. */
|
||||||
#define CDC_TX_EPADDR (ENDPOINT_DIR_IN | 3)
|
#define CDC_TX_EPADDR (ENDPOINT_DIR_IN | 1)
|
||||||
|
|
||||||
/** Endpoint address of the CDC host-to-device data OUT endpoint. */
|
/** Endpoint address of the CDC host-to-device data OUT endpoint. */
|
||||||
#define CDC_RX_EPADDR (ENDPOINT_DIR_OUT | 4)
|
#define CDC_RX_EPADDR (ENDPOINT_DIR_OUT | 2)
|
||||||
|
|
||||||
|
/** Endpoint address of the CDC device-to-host notification IN endpoint. */
|
||||||
|
#define CDC_NOTIFICATION_EPADDR (ENDPOINT_DIR_IN | 3)
|
||||||
|
|
||||||
/** Size in bytes of the CDC device-to-host notification IN endpoint. */
|
/** Size in bytes of the CDC device-to-host notification IN endpoint. */
|
||||||
#define CDC_NOTIFICATION_EPSIZE 8
|
#define CDC_NOTIFICATION_EPSIZE 8
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#define USB_DEVICE_ONLY
|
#define USB_DEVICE_ONLY
|
||||||
#define DEVICE_STATE_AS_GPIOR 0
|
#define DEVICE_STATE_AS_GPIOR 0
|
||||||
// #define ORDERED_EP_CONFIG
|
#define ORDERED_EP_CONFIG
|
||||||
#define FIXED_CONTROL_ENDPOINT_SIZE 8
|
#define FIXED_CONTROL_ENDPOINT_SIZE 8
|
||||||
#define FIXED_NUM_CONFIGURATIONS 1
|
#define FIXED_NUM_CONFIGURATIONS 1
|
||||||
#define INTERRUPT_CONTROL_ENDPOINT
|
#define INTERRUPT_CONTROL_ENDPOINT
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#define NO_INTERNAL_SERIAL
|
#define NO_INTERNAL_SERIAL
|
||||||
#define NO_DEVICE_SELF_POWER
|
#define NO_DEVICE_SELF_POWER
|
||||||
#define NO_DEVICE_REMOTE_WAKEUP
|
#define NO_DEVICE_REMOTE_WAKEUP
|
||||||
// #define NO_SOF_EVENTS
|
#define NO_SOF_EVENTS
|
||||||
#define F_USB F_CPU
|
#define F_USB F_CPU
|
||||||
#define DEVICE_VID 0x2C99
|
#define DEVICE_VID 0x2C99
|
||||||
#define DEVICE_PID 0x0004
|
#define DEVICE_PID 0x0004
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue