Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
13cd30069d | |||
1a780ac319 | |||
71d0b686d0 | |||
15806b6571 |
15
Makefile
15
Makefile
|
@ -1,9 +1,9 @@
|
||||||
MCU = at90usb1287
|
MCU = atmega8u2
|
||||||
ARCH = AVR8
|
ARCH = AVR8
|
||||||
BOARD = USER
|
BOARD = USER
|
||||||
F_CPU = 8000000
|
F_CPU = 16000000
|
||||||
F_USB = 8000000
|
F_USB = 16000000
|
||||||
OPTIMIZATION = 3
|
OPTIMIZATION = s
|
||||||
TARGET = main
|
TARGET = main
|
||||||
LUFA_PATH = lufa/LUFA
|
LUFA_PATH = lufa/LUFA
|
||||||
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -Iconfig/ -Wall
|
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -Iconfig/ -Wall
|
||||||
|
@ -28,6 +28,10 @@ term:
|
||||||
python terminal.py $(DEVICE)
|
python terminal.py $(DEVICE)
|
||||||
.PHONY: term
|
.PHONY: term
|
||||||
|
|
||||||
|
AVRDUDE_PROGRAMMER := buspirate
|
||||||
|
AVRDUDE_PORT := /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH00S82Y-if00-port0
|
||||||
|
AVRDUDE_FLAGS := -V
|
||||||
|
|
||||||
# Include LUFA build script makefiles
|
# Include LUFA build script makefiles
|
||||||
include $(LUFA_PATH)/Build/lufa_sources.mk
|
include $(LUFA_PATH)/Build/lufa_sources.mk
|
||||||
include $(LUFA_PATH)/Build/lufa_build.mk
|
include $(LUFA_PATH)/Build/lufa_build.mk
|
||||||
|
@ -41,3 +45,6 @@ $(LUFA_PATH)/Build/lufa_core.mk:
|
||||||
|
|
||||||
# Remove some stuff from BASE_CC_FLAGS that the LUFA core put in there.
|
# Remove some stuff from BASE_CC_FLAGS that the LUFA core put in there.
|
||||||
BASE_CC_FLAGS := $(filter-out -fno-inline-small-functions,$(BASE_CC_FLAGS))
|
BASE_CC_FLAGS := $(filter-out -fno-inline-small-functions,$(BASE_CC_FLAGS))
|
||||||
|
|
||||||
|
prog: main.hex
|
||||||
|
avrdude -p atmega8u2 -P /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH00S82Y-if00-port0 -c buspirate -V -U flash:w:main.hex
|
||||||
|
|
4
ftdi.h
4
ftdi.h
|
@ -9,11 +9,11 @@
|
||||||
|
|
||||||
/* FTDI device-to-host data IN endpoint */
|
/* FTDI device-to-host data IN endpoint */
|
||||||
#define FTDI_TX_EPADDR (ENDPOINT_DIR_IN | 1)
|
#define FTDI_TX_EPADDR (ENDPOINT_DIR_IN | 1)
|
||||||
#define FTDI_TX_QUEUE_LEN 256
|
#define FTDI_TX_QUEUE_LEN 32
|
||||||
|
|
||||||
/* Endpoint address of FTDI host-to-device data OUT endpoint */
|
/* Endpoint address of FTDI host-to-device data OUT endpoint */
|
||||||
#define FTDI_RX_EPADDR (ENDPOINT_DIR_OUT | 2)
|
#define FTDI_RX_EPADDR (ENDPOINT_DIR_OUT | 2)
|
||||||
#define FTDI_RX_QUEUE_LEN 256 /* Must be at least FTDI_TXRX_EPSIZE + 1 */
|
#define FTDI_RX_QUEUE_LEN 32 /* Must be at least FTDI_TXRX_EPSIZE + 1 */
|
||||||
|
|
||||||
/* Endpoint size */
|
/* Endpoint size */
|
||||||
#define FTDI_TXRX_EPSIZE 16 /* e.g. 16 or 64 */
|
#define FTDI_TXRX_EPSIZE 16 /* e.g. 16 or 64 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user