fugu Posted November 11, 2014 Posted November 11, 2014 I was having trouble getting firmware to compile in linux, so I edited an old Makefile till I got it to work with the linux atmel headers and gcc files. I added in some script files too so that you can easily create hardcode commands. Its a Keyboard + USB drive. The usb drive doesn't need to have any files on it :). The payload is triggered by the GPIO (its also easy to modify to auto run on insert). $ gunzip One_Button_Hardcode_USBDrive_Linux_20141111054845.diff.gz $ unzip Composite_Duck.zip $ cd Composite_Duck/Composite_Duck/ $ patch -p2 < ../../One_Button_Hardcode_USBDrive_Linux_20141111054845.diff $ cd Release/ $ chmod +x compile_script.sh duckyencoding.sh $ echo 'Hi ' | ./duckyencoding.sh edit compile_script.sh to show where the atmel-gcc files and the atmel headers are at then $ ./compile_script.sh clean $ ./compile_script.sh make and it should work Quote
fugu Posted November 11, 2014 Author Posted November 11, 2014 diff -u -r a/Composite_Duck/README b/One_Button_Hardcode_USBDrive/README --- a/Composite_Duck/README 1970-01-01 00:00:00.000000000 +0000 +++ b/One_Button_Hardcode_USBDrive/README 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,49 @@ +WELCOME TO THE LINUX RELEASE +i got tired of going make to windows to reflash my duck, now this works in Kali, this is what I got +im using the linux + atmel-headers-6.1.3.1475.zip d69e8e188470e4fea68a4650442b5750 +and + avr32-gnu-toolchain-3.4.2.435-linux.any.x86.tar.gz 8c39949420f7e42caf6da48dac0df03f +if you get it to work with other versions, good for you. + +This firmware will give you a Keyboard+MassStorageDevice, which will only type once the GPIO is pressed. +The MassStorageDevice has no "inject.bin" or "VIDPID" file to trigger AV, and can't be stolen for reverse-engineering. +everything is in the firmwares flash memory. Without pressing the button, it is almost perfectly a USB storage device. +This code also has more ways to hide the identity of the USB device then the other firmwares. +You can change: + VID = USB_DEVICE_VENDOR_ID (make sure this is for Keyboard+MassStorageDevice) + PID = USB_DEVICE_PRODUCT_ID (make sure this is for Keyboard+MassStorageDevice) + USB_DEVICE_MAJOR_VERSION + USB_DEVICE_MINOR_VERSION + USB_DEVICE_MANUFACTURE_NAME + USB_DEVICE_PRODUCT_NAME + USB_DEVICE_SERIAL_NAME +in src/config/conf_usb.h + +Sooooo... +in the Release DIR, +2 scripts for getting this to work +1) duckyencoding.sh +2) compile_script.sh + +duckyencoding.sh will take in input from stdin, and spit out the code needed to get ui.c to work. i.e. +$ echo 'Hi ' | ./duckyencoding.sh +//Place in src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.c +{true, true, HID_MODIFIER_LEFT_SHIFT}, +{false, true, HID_H}, +{false, false, HID_H}, +{true, false, HID_MODIFIER_LEFT_SHIFT}, +{false, true, HID_I}, +{false, false, HID_I}, +{false, true, HID_SPACEBAR}, +{false, false, HID_SPACEBAR}, +{false, true, HID_ENTER}, +{false, false, HID_ENTER}, + +Once your ui.c file is correct, fix the compile_script.sh so that your ATMEL TOOLCHAIN and HEADERS point to the right directory +then run +$ ./compile_script.sh clean +$ ./compile_script.sh make + +and you'll have your *.hex file + diff -u -r a/Composite_Duck/Release/compile_script.sh b/One_Button_Hardcode_USBDrive/Release/compile_script.sh --- a/Composite_Duck/Release/compile_script.sh 1970-01-01 00:00:00.000000000 +0000 +++ b/One_Button_Hardcode_USBDrive/Release/compile_script.sh 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,84 @@ +#!/bin/sh +if [ "$1" != "clean" -a "$1" != "make" ]; then + echo "FIRST: edit this file to point to your TOOLCHAIN dir and you HEADERS dir" + echo "if you want to mask the usb ducky's fingerprint more, try changing... " + echo "VID = USB_DEVICE_VENDOR_ID (make sure this is for Keyboard+MassStorageDevice)" + echo "PID = USB_DEVICE_PRODUCT_ID (make sure this is for Keyboard+MassStorageDevice)" + echo "\tUSB_DEVICE_MAJOR_VERSION" + echo "\tUSB_DEVICE_MINOR_VERSION" + echo "\tUSB_DEVICE_MANUFACTURE_NAME" + echo "\tUSB_DEVICE_PRODUCT_NAME" + echo "\tUSB_DEVICE_SERIAL_NAME" + echo "in src/config/conf_usb.h" + echo "$0 make" + echo "OR" + echo "$0 clean" + exit 1 +fi + +mkdir -p src/ +mkdir -p src/config +mkdir -p src/asf +mkdir -p src/asf/common +mkdir -p src/asf/common/components +mkdir -p src/asf/common/components/memory +mkdir -p src/asf/common/components/memory/data_flash +mkdir -p src/asf/common/components/memory/data_flash/at45dbx +mkdir -p src/asf/common/utils +mkdir -p src/asf/common/utils/interrupt +mkdir -p src/asf/common/services +mkdir -p src/asf/common/services/spi +mkdir -p src/asf/common/services/spi/uc3_spi +mkdir -p src/asf/common/services/usb +mkdir -p src/asf/common/services/usb/udc +mkdir -p src/asf/common/services/usb/class +mkdir -p src/asf/common/services/usb/class/hid +mkdir -p src/asf/common/services/usb/class/hid/device +mkdir -p src/asf/common/services/usb/class/hid/device/kbd +mkdir -p src/asf/common/services/usb/class/msc +mkdir -p src/asf/common/services/usb/class/msc/device +mkdir -p src/asf/common/services/usb/class/composite +mkdir -p src/asf/common/services/usb/class/composite/device +mkdir -p src/asf/common/services/usb/class/composite/device/example3 +mkdir -p src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101 +mkdir -p src/asf/common/services/sleepmgr +mkdir -p src/asf/common/services/sleepmgr/uc3 +mkdir -p src/asf/common/services/clock +mkdir -p src/asf/common/services/clock/uc3b0_b1 +mkdir -p src/asf/common/services/storage +mkdir -p src/asf/common/services/storage/ctrl_access +mkdir -p src/asf/common/boards +mkdir -p src/asf/avr32 +mkdir -p src/asf/avr32/components +mkdir -p src/asf/avr32/components/memory +mkdir -p src/asf/avr32/components/memory/sd_mmc +mkdir -p src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi +mkdir -p src/asf/avr32/components/joystick +mkdir -p src/asf/avr32/components/joystick/skrhabe010 +mkdir -p src/asf/avr32/drivers +mkdir -p src/asf/avr32/drivers/spi +mkdir -p src/asf/avr32/drivers/intc +mkdir -p src/asf/avr32/drivers/eic +mkdir -p src/asf/avr32/drivers/gpio +mkdir -p src/asf/avr32/drivers/usbb +mkdir -p src/asf/avr32/drivers/flashc +mkdir -p src/asf/avr32/drivers/pm +mkdir -p src/asf/avr32/utils +mkdir -p src/asf/avr32/utils/linker_scripts +mkdir -p src/asf/avr32/utils/linker_scripts/at32uc3b +mkdir -p src/asf/avr32/utils/linker_scripts/at32uc3b/0256 +mkdir -p src/asf/avr32/utils/linker_scripts/at32uc3b/0256/gcc +mkdir -p src/asf/avr32/utils/startup +mkdir -p src/asf/avr32/utils/header_files +mkdir -p src/asf/avr32/utils/preprocessor +mkdir -p src/asf/avr32/services +mkdir -p src/asf/avr32/services/freq_detect +mkdir -p src/asf/avr32/boards +mkdir -p src/asf/avr32/boards/evk1101 + +if [ "$1" != "make" ]; then + PATH=$PATH:~/avr32-gnu-toolchain-linux_x86_64/bin INCLUDES=-I~/atmel-headers-6.1.3.1475 make clean +fi +if [ "$1" != "clean" ]; then + PATH=$PATH:~/avr32-gnu-toolchain-linux_x86_64/bin INCLUDES=-I~/atmel-headers-6.1.3.1475 make +fi diff -u -r a/Composite_Duck/Release/duckyencoding.sh b/One_Button_Hardcode_USBDrive/Release/duckyencoding.sh --- a/Composite_Duck/Release/duckyencoding.sh 1970-01-01 00:00:00.000000000 +0000 +++ b/One_Button_Hardcode_USBDrive/Release/duckyencoding.sh 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,244 @@ +#!/bin/bash +echo "//echo -ne 'Hello World!'\"\n\"'This is a test'\"\n\" | ./duckyencoding.sh" +echo "//echo -ne \"\\x00\" is a delay" +echo "//echo -ne \"\\x88\" is the Windows key Button" +echo "//echo -ne \"\\x89\" is the Alt key Button" +echo "//echo -ne \"\\x8a\" is the Crtl key Button" +echo "//echo -ne \"\\x8b\" is the PrintScreen key Button" +echo '//Place in src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.c' +FILENAME="$(tempfile)" + +cleanup(){ + shred -z -n 6 -u -v $FILENAME 2> /dev/null + exit $? +} + +trap cleanup EXIT + +FILE="$(cat - | xxd -ps | tr -d '\n')" + +echo "$FILE" | sed 's~\(..\)~\1\n~g' | while read data; do + if [ -n "$(echo -ne "$data" | xxd -ps -r | grep -o '[a-z]')" ]; then + test="$(echo -ne "$data" | xxd -ps -r | grep -o '[a-z]')" + newdata="{false, true, HID_$(echo "$test" | tr '[:lower:]' '[:upper:]')},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_$(echo "$test" | tr '[:lower:]' '[:upper:]')}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ -n "$(echo -ne "$data" | xxd -ps -r | grep -o '[A-Z]')" ]; then + test="$(echo -ne "$data" | xxd -ps -r | grep -o '[A-Z]')" + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_"$test"},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_"$test"},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ -n "$(echo -ne "$data" | xxd -ps -r | grep -o '[0-9]')" ]; then + test="$(echo -ne "$data" | xxd -ps -r | grep -o '[0-9]')" + newdata="{false, true, HID_$(echo "$test" | tr '[:lower:]' '[:upper:]')},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_$(echo "$test" | tr '[:lower:]' '[:upper:]')}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '00' ]; then + echo -ne "{false,false,0},$(echo -ne "\xFF")" >> $FILENAME + elif [ "$data" = '09' ]; then + newdata="{false, true, HID_TAB},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_TAB}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '0a' ]; then + newdata="{false, true, HID_ENTER},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_ENTER}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '20' ]; then + newdata="{false, true, HID_SPACEBAR},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_SPACEBAR}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '21' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_1},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_1},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '2b' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_PLUS},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_PLUS},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '2c' ]; then + newdata="{false, true, HID_COMMA},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_COMMA}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '2d' ]; then + newdata="{false, true, HID_UNDERSCORE},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_UNDERSCORE}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '2e' ]; then + newdata="{false, true, HID_DOT},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_DOT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '2f' ]; then + newdata="{false, true, HID_SLASH},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_SLASH}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '3a' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_COLON},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_COLON},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '3b' ]; then + newdata="{false, true, HID_COLON},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_COLON}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '3c' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_COMMA},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_COMMA},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '3d' ]; then + newdata="{false, true, HID_PLUS},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_PLUS}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '3e' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_DOT},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_DOT},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '3f' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_SLASH},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_SLASH},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '40' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_2},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_2},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '23' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_3},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_3},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '24' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_4},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_4},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '25' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_5},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_5},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '27' ]; then + newdata="{false, true, HID_QUOTE},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_QUOTE}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '22' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_QUOTE},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_QUOTE},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '5c' ]; then + newdata="{false, true, HID_BACKSLASH},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_BACKSLASH}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '7c' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_BACKSLASH},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_BACKSLASH},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '5b' ]; then + newdata="{false, true, HID_OPEN_BRACKET},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_OPEN_BRACKET}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '5d' ]; then + newdata="{false, true, HID_CLOSE_BRACKET},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_CLOSE_BRACKET}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '5e' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_6},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_6},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '5f' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_UNDERSCORE},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_UNDERSCORE},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '7b' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_OPEN_BRACKET},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_OPEN_BRACKET},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '7d' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_CLOSE_BRACKET},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_CLOSE_BRACKET},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '26' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_7},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_7},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '2a' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_8},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_8},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '28' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_9},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_9},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '29' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_0},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_0},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '60' ]; then + newdata="{false, true, HID_TILDE},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_TILDE}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '7e' ]; then + newdata="{true, true, HID_MODIFIER_LEFT_SHIFT},$(echo -ne "\xFF")" + newdata="$newdata{false, true, HID_TILDE},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_TILDE},$(echo -ne "\xFF")" + newdata="$newdata{true, false, HID_MODIFIER_LEFT_SHIFT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '88' ]; then + newdata="{false, true, HID_MODIFIER_LEFT_UI},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_MODIFIER_LEFT_UI}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '89' ]; then + newdata="{false, true, HID_MODIFIER_LEFT_ALT},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_MODIFIER_LEFT_ALT}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '8a' ]; then + newdata="{false, true, HID_MODIFIER_LEFT_CTRL},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_MODIFIER_LEFT_CTRL}," + echo -ne "$newdata\xFF" >> $FILENAME + elif [ "$data" = '8b' ]; then + newdata="{false, true, HID_PRINTSCREEN},$(echo -ne "\xFF")" + newdata="$newdata{false, false, HID_PRINTSCREEN}," + echo -ne "$newdata\xFF" >> $FILENAME + else + echo -ne "$(echo -ne "$data")$(echo -ne "\xFF")" >> $FILENAME + fi +done + +cat $FILENAME | sed 's~{true, false, HID_MODIFIER_LEFT_SHIFT},\xFF{true, true, HID_MODIFIER_LEFT_SHIFT},\xFF~~g' | tr '\377' '\n' + diff -u -r a/Composite_Duck/Release/makedep.mk b/One_Button_Hardcode_USBDrive/Release/makedep.mk --- a/Composite_Duck/Release/makedep.mk 1970-01-01 00:00:00.000000000 +0000 +++ b/One_Button_Hardcode_USBDrive/Release/makedep.mk 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,64 @@ +################################################################################ +# Automatically-generated file. Do not edit or delete the file +################################################################################ + +src\asf\avr32\components\memory\sd_mmc\sd_mmc_spi\sd_mmc_spi.c + +src\asf\avr32\services\freq_detect\freq_detect.c + +src\asf\avr32\components\memory\sd_mmc\sd_mmc_spi\sd_mmc_spi_mem.c + +src\asf\avr32\boards\evk1101\init.c + +src\asf\avr32\boards\evk1101\led.c + +src\asf\avr32\drivers\eic\eic.c + +src\asf\avr32\drivers\flashc\flashc.c + +src\asf\avr32\drivers\gpio\gpio.c + +src\asf\avr32\drivers\intc\exception.S + +src\asf\avr32\drivers\intc\intc.c + +src\asf\avr32\drivers\pm\pm.c + +src\asf\avr32\drivers\pm\pm_conf_clocks.c + +src\asf\avr32\drivers\pm\power_clocks_lib.c + +src\asf\avr32\drivers\spi\spi.c + +src\asf\avr32\drivers\usbb\usbb_device.c + +src\asf\avr32\utils\startup\startup_uc3.S + +src\asf\avr32\utils\startup\trampoline_uc3.S + +src\asf\common\components\memory\data_flash\at45dbx\at45dbx.c + +src\asf\common\components\memory\data_flash\at45dbx\at45dbx_mem.c + +src\asf\common\services\clock\uc3b0_b1\sysclk.c + +src\asf\common\services\sleepmgr\uc3\sleepmgr.c + +src\asf\common\services\spi\uc3_spi\spi_master.c + +src\asf\common\services\storage\ctrl_access\ctrl_access.c + +src\asf\common\services\usb\class\composite\device\example3\at32uc3b0256_evk1101\ui.c + +src\asf\common\services\usb\class\composite\device\udi_composite_desc.c + +src\asf\common\services\usb\class\hid\device\kbd\udi_hid_kbd.c + +src\asf\common\services\usb\class\hid\device\udi_hid.c + +src\asf\common\services\usb\class\msc\device\udi_msc.c + +src\asf\common\services\usb\udc\udc.c + +src\main.c + diff -u -r a/Composite_Duck/Release/Makefile b/One_Button_Hardcode_USBDrive/Release/Makefile --- a/Composite_Duck/Release/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ b/One_Button_Hardcode_USBDrive/Release/Makefile 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,477 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +SHELL := /bin/sh +RM := rm -rf + +USER_OBJS := + +LIBS := +PROJ := + +O_SRCS := +C_SRCS := +S_SRCS := +S_UPPER_SRCS := +OBJ_SRCS := +ASM_SRCS := +PREPROCESSING_SRCS := +OBJS := +OBJS_AS_ARGS := +C_DEPS := +C_DEPS_AS_ARGS := +EXECUTABLES := +OUTPUT_FILE_PATH := +OUTPUT_FILE_PATH_AS_ARGS := +AVR_APP_PATH :=$$$AVR_APP_PATH$$$ +QUOTE := " +ADDITIONAL_DEPENDENCIES:= +OUTPUT_FILE_DEP:= +# INCLUDES := + +# Every subdirectory with source files must be described here +SUBDIRS := \ +../src/ \ +../src/asf/ \ +../src/asf/avr32/ \ +../src/asf/avr32/boards/ \ +../src/asf/avr32/boards/evk1101/ \ +../src/asf/avr32/components/ \ +../src/asf/avr32/components/joystick/ \ +../src/asf/avr32/components/joystick/skrhabe010/ \ +../src/asf/avr32/components/memory/ \ +../src/asf/avr32/components/memory/sd_mmc/ \ +../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/ \ +../src/asf/avr32/drivers/ \ +../src/asf/avr32/drivers/eic/ \ +../src/asf/avr32/drivers/flashc/ \ +../src/asf/avr32/drivers/gpio/ \ +../src/asf/avr32/drivers/intc/ \ +../src/asf/avr32/drivers/pm/ \ +../src/asf/avr32/drivers/spi/ \ +../src/asf/avr32/drivers/usbb/ \ +../src/asf/avr32/services/ \ +../src/asf/avr32/services/freq_detect/ \ +../src/asf/avr32/utils/ \ +../src/asf/avr32/utils/header_files/ \ +../src/asf/avr32/utils/linker_scripts/ \ +../src/asf/avr32/utils/linker_scripts/at32uc3b/ \ +../src/asf/avr32/utils/linker_scripts/at32uc3b/0256/ \ +../src/asf/avr32/utils/linker_scripts/at32uc3b/0256/gcc/ \ +../src/asf/avr32/utils/preprocessor/ \ +../src/asf/avr32/utils/startup/ \ +../src/asf/common/ \ +../src/asf/common/boards/ \ +../src/asf/common/components/ \ +../src/asf/common/components/memory/ \ +../src/asf/common/components/memory/data_flash/ \ +../src/asf/common/components/memory/data_flash/at45dbx/ \ +../src/asf/common/services/ \ +../src/asf/common/services/clock/ \ +../src/asf/common/services/clock/uc3b0_b1/ \ +../src/asf/common/services/sleepmgr/ \ +../src/asf/common/services/sleepmgr/uc3/ \ +../src/asf/common/services/spi/ \ +../src/asf/common/services/spi/uc3_spi/ \ +../src/asf/common/services/storage/ \ +../src/asf/common/services/storage/ctrl_access/ \ +../src/asf/common/services/usb/ \ +../src/asf/common/services/usb/class/ \ +../src/asf/common/services/usb/class/composite/ \ +../src/asf/common/services/usb/class/composite/device/ \ +../src/asf/common/services/usb/class/composite/device/example3/ \ +../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ \ +../src/asf/common/services/usb/class/hid/ \ +../src/asf/common/services/usb/class/hid/device/ \ +../src/asf/common/services/usb/class/hid/device/kbd/ \ +../src/asf/common/services/usb/class/msc/ \ +../src/asf/common/services/usb/class/msc/device/ \ +../src/asf/common/services/usb/udc/ \ +../src/asf/common/utils/ \ +../src/asf/common/utils/interrupt/ \ +../src/config/ + + +# Add inputs and outputs from these tool invocations to the build variables +C_SRCS += \ +../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.c \ +../src/asf/avr32/services/freq_detect/freq_detect.c \ +../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi_mem.c \ +../src/asf/avr32/boards/evk1101/init.c \ +../src/asf/avr32/boards/evk1101/led.c \ +../src/asf/avr32/drivers/eic/eic.c \ +../src/asf/avr32/drivers/flashc/flashc.c \ +../src/asf/avr32/drivers/gpio/gpio.c \ +../src/asf/avr32/drivers/intc/intc.c \ +../src/asf/avr32/drivers/pm/pm.c \ +../src/asf/avr32/drivers/pm/pm_conf_clocks.c \ +../src/asf/avr32/drivers/pm/power_clocks_lib.c \ +../src/asf/avr32/drivers/spi/spi.c \ +../src/asf/avr32/drivers/usbb/usbb_device.c \ +../src/asf/common/components/memory/data_flash/at45dbx/at45dbx.c \ +../src/asf/common/components/memory/data_flash/at45dbx/at45dbx_mem.c \ +../src/asf/common/services/clock/uc3b0_b1/sysclk.c \ +../src/asf/common/services/sleepmgr/uc3/sleepmgr.c \ +../src/asf/common/services/spi/uc3_spi/spi_master.c \ +../src/asf/common/services/storage/ctrl_access/ctrl_access.c \ +../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.c \ +../src/asf/common/services/usb/class/composite/device/udi_composite_desc.c \ +../src/asf/common/services/usb/class/hid/device/kbd/udi_hid_kbd.c \ +../src/asf/common/services/usb/class/hid/device/udi_hid.c \ +../src/asf/common/services/usb/class/msc/device/udi_msc.c \ +../src/asf/common/services/usb/udc/udc.c \ +../src/main.c + + +PREPROCESSING_SRCS += \ +../src/asf/avr32/drivers/intc/exception.S \ +../src/asf/avr32/utils/startup/startup_uc3.S \ +../src/asf/avr32/utils/startup/trampoline_uc3.S + + +ASM_SRCS += + + +OBJS += \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.o \ +src/asf/avr32/services/freq_detect/freq_detect.o \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi_mem.o \ +src/asf/avr32/boards/evk1101/init.o \ +src/asf/avr32/boards/evk1101/led.o \ +src/asf/avr32/drivers/eic/eic.o \ +src/asf/avr32/drivers/flashc/flashc.o \ +src/asf/avr32/drivers/gpio/gpio.o \ +src/asf/avr32/drivers/intc/exception.o \ +src/asf/avr32/drivers/intc/intc.o \ +src/asf/avr32/drivers/pm/pm.o \ +src/asf/avr32/drivers/pm/pm_conf_clocks.o \ +src/asf/avr32/drivers/pm/power_clocks_lib.o \ +src/asf/avr32/drivers/spi/spi.o \ +src/asf/avr32/drivers/usbb/usbb_device.o \ +src/asf/avr32/utils/startup/startup_uc3.o \ +src/asf/avr32/utils/startup/trampoline_uc3.o \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx.o \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx_mem.o \ +src/asf/common/services/clock/uc3b0_b1/sysclk.o \ +src/asf/common/services/sleepmgr/uc3/sleepmgr.o \ +src/asf/common/services/spi/uc3_spi/spi_master.o \ +src/asf/common/services/storage/ctrl_access/ctrl_access.o \ +src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.o \ +src/asf/common/services/usb/class/composite/device/udi_composite_desc.o \ +src/asf/common/services/usb/class/hid/device/kbd/udi_hid_kbd.o \ +src/asf/common/services/usb/class/hid/device/udi_hid.o \ +src/asf/common/services/usb/class/msc/device/udi_msc.o \ +src/asf/common/services/usb/udc/udc.o \ +src/main.o + + +OBJS_AS_ARGS += \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.o \ +src/asf/avr32/services/freq_detect/freq_detect.o \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi_mem.o \ +src/asf/avr32/boards/evk1101/init.o \ +src/asf/avr32/boards/evk1101/led.o \ +src/asf/avr32/drivers/eic/eic.o \ +src/asf/avr32/drivers/flashc/flashc.o \ +src/asf/avr32/drivers/gpio/gpio.o \ +src/asf/avr32/drivers/intc/exception.o \ +src/asf/avr32/drivers/intc/intc.o \ +src/asf/avr32/drivers/pm/pm.o \ +src/asf/avr32/drivers/pm/pm_conf_clocks.o \ +src/asf/avr32/drivers/pm/power_clocks_lib.o \ +src/asf/avr32/drivers/spi/spi.o \ +src/asf/avr32/drivers/usbb/usbb_device.o \ +src/asf/avr32/utils/startup/startup_uc3.o \ +src/asf/avr32/utils/startup/trampoline_uc3.o \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx.o \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx_mem.o \ +src/asf/common/services/clock/uc3b0_b1/sysclk.o \ +src/asf/common/services/sleepmgr/uc3/sleepmgr.o \ +src/asf/common/services/spi/uc3_spi/spi_master.o \ +src/asf/common/services/storage/ctrl_access/ctrl_access.o \ +src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.o \ +src/asf/common/services/usb/class/composite/device/udi_composite_desc.o \ +src/asf/common/services/usb/class/hid/device/kbd/udi_hid_kbd.o \ +src/asf/common/services/usb/class/hid/device/udi_hid.o \ +src/asf/common/services/usb/class/msc/device/udi_msc.o \ +src/asf/common/services/usb/udc/udc.o \ +src/main.o + + +C_DEPS += \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.d \ +src/asf/avr32/services/freq_detect/freq_detect.d \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi_mem.d \ +src/asf/avr32/boards/evk1101/init.d \ +src/asf/avr32/boards/evk1101/led.d \ +src/asf/avr32/drivers/eic/eic.d \ +src/asf/avr32/drivers/flashc/flashc.d \ +src/asf/avr32/drivers/gpio/gpio.d \ +src/asf/avr32/drivers/intc/intc.d \ +src/asf/avr32/drivers/pm/pm.d \ +src/asf/avr32/drivers/pm/pm_conf_clocks.d \ +src/asf/avr32/drivers/pm/power_clocks_lib.d \ +src/asf/avr32/drivers/spi/spi.d \ +src/asf/avr32/drivers/usbb/usbb_device.d \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx.d \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx_mem.d \ +src/asf/common/services/clock/uc3b0_b1/sysclk.d \ +src/asf/common/services/sleepmgr/uc3/sleepmgr.d \ +src/asf/common/services/spi/uc3_spi/spi_master.d \ +src/asf/common/services/storage/ctrl_access/ctrl_access.d \ +src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.d \ +src/asf/common/services/usb/class/composite/device/udi_composite_desc.d \ +src/asf/common/services/usb/class/hid/device/kbd/udi_hid_kbd.d \ +src/asf/common/services/usb/class/hid/device/udi_hid.d \ +src/asf/common/services/usb/class/msc/device/udi_msc.d \ +src/asf/common/services/usb/udc/udc.d \ +src/main.d + + +C_DEPS_AS_ARGS += \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.d \ +src/asf/avr32/services/freq_detect/freq_detect.d \ +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi_mem.d \ +src/asf/avr32/boards/evk1101/init.d \ +src/asf/avr32/boards/evk1101/led.d \ +src/asf/avr32/drivers/eic/eic.d \ +src/asf/avr32/drivers/flashc/flashc.d \ +src/asf/avr32/drivers/gpio/gpio.d \ +src/asf/avr32/drivers/intc/intc.d \ +src/asf/avr32/drivers/pm/pm.d \ +src/asf/avr32/drivers/pm/pm_conf_clocks.d \ +src/asf/avr32/drivers/pm/power_clocks_lib.d \ +src/asf/avr32/drivers/spi/spi.d \ +src/asf/avr32/drivers/usbb/usbb_device.d \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx.d \ +src/asf/common/components/memory/data_flash/at45dbx/at45dbx_mem.d \ +src/asf/common/services/clock/uc3b0_b1/sysclk.d \ +src/asf/common/services/sleepmgr/uc3/sleepmgr.d \ +src/asf/common/services/spi/uc3_spi/spi_master.d \ +src/asf/common/services/storage/ctrl_access/ctrl_access.d \ +src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.d \ +src/asf/common/services/usb/class/composite/device/udi_composite_desc.d \ +src/asf/common/services/usb/class/hid/device/kbd/udi_hid_kbd.d \ +src/asf/common/services/usb/class/hid/device/udi_hid.d \ +src/asf/common/services/usb/class/msc/device/udi_msc.d \ +src/asf/common/services/usb/udc/udc.d \ +src/main.d + + +OUTPUT_FILE_PATH +=One_Button_Hardcode_USBDrive.elf + +OUTPUT_FILE_PATH_AS_ARGS +=One_Button_Hardcode_USBDrive.elf + +ADDITIONAL_DEPENDENCIES:= + +OUTPUT_FILE_DEP:= ./makedep.mk + +# AVR32/GNU C Compiler + +src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/%.o: ../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/services/freq_detect/%.o: ../src/asf/avr32/services/freq_detect/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/boards/evk1101/%.o: ../src/asf/avr32/boards/evk1101/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/eic/%.o: ../src/asf/avr32/drivers/eic/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/flashc/%.o: ../src/asf/avr32/drivers/flashc/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/gpio/%.o: ../src/asf/avr32/drivers/gpio/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/intc/%.o: ../src/asf/avr32/drivers/intc/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/pm/%.o: ../src/asf/avr32/drivers/pm/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/spi/%.o: ../src/asf/avr32/drivers/spi/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/usbb/%.o: ../src/asf/avr32/drivers/usbb/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/components/memory/data_flash/at45dbx/%.o: ../src/asf/common/components/memory/data_flash/at45dbx/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/clock/uc3b0_b1/%.o: ../src/asf/common/services/clock/uc3b0_b1/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/sleepmgr/uc3/%.o: ../src/asf/common/services/sleepmgr/uc3/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/spi/uc3_spi/%.o: ../src/asf/common/services/spi/uc3_spi/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/storage/ctrl_access/%.o: ../src/asf/common/services/storage/ctrl_access/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/%.o: ../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/usb/class/composite/device/%.o: ../src/asf/common/services/usb/class/composite/device/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/usb/class/hid/device/kbd/%.o: ../src/asf/common/services/usb/class/hid/device/kbd/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/usb/class/hid/device/%.o: ../src/asf/common/services/usb/class/hid/device/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/usb/class/msc/device/%.o: ../src/asf/common/services/usb/class/msc/device/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/common/services/usb/udc/%.o: ../src/asf/common/services/usb/udc/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/%.o: ../src/%.c + @echo Building file: $< + @echo Invoking: AVR32/GNU C Compiler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -DBOARD=EVK1101 -DAT45DBX_ENABLE -DACCESS_USB_ENABLED -DUDD_ENABLE -DSD_MMC_SPI_ENABLE $(INCLUDES) -I"../src/asf/common/services/usb" -I"../src/asf/common/services/storage/ctrl_access" -I"../src/asf/common/services/spi/uc3_spi" -I"../src/asf/avr32/components/joystick/skrhabe010" -I"../src/asf/common/services/sleepmgr" -I"../src/asf/avr32/drivers/pm" -I"../src/asf/avr32/drivers/usbb" -I"../src/asf/common/boards" -I"../src/asf/common/services/usb/class/composite/device/example3" -I"../src/asf/common/services/clock" -I"../src/asf/common/services/usb/class/hid/device" -I"../src/asf/avr32/boards" -I"../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I"../src/asf/avr32/drivers/spi" -I"../src/asf/common/services/usb/class/hid/device/kbd" -I"../src/asf/common/services/usb/udc" -I"../src/asf/avr32/utils/preprocessor" -I"../src/asf/avr32/drivers/flashc" -I"../src/asf/avr32/boards/evk1101" -I"../src/asf/common/services/usb/class/msc" -I"../src/asf/common/services/usb/class/hid" -I"../src/asf/avr32/drivers/intc" -I"../src/asf/avr32/utils" -I"../src/asf/common/utils" -I"../src/asf/common/services/usb/class/composite/device" -I"../src/asf/avr32/drivers/gpio" -I"../src/asf/common/components/memory/data_flash/at45dbx" -I"../src/asf/avr32/drivers/eic" -I"../src/asf/common/services/spi" -I"../src/asf/common/services/usb/class/msc/device" -I"../src" -I"../src/config" -I"../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I"../src/asf/avr32/services/freq_detect" -Os -fdata-sections -ffunction-sections -masm-addr-pseudos -Wall -c -Werror-implicit-function-declaration -Wmissing-prototypes -Wpointer-arith -Wstrict-prototypes -mno-cond-exec-before-reload -mrelax -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + + + +# AVR32/GNU Preprocessing Assembler + +src/asf/avr32/drivers/intc/%.o: ../src/asf/avr32/drivers/intc/%.S + @echo Building file: $< + @echo Invoking: AVR32/GNU Preprocessing Assembler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -x assembler-with-cpp -c -DACCESS_USB_ENABLED -DAT45DBX_ENABLE -DBOARD=EVK1101 -DUDD_ENABLE -mrelax -DSD_MMC_SPI_ENABLE $(INCLUDES) -I "../src/asf/common/services/usb" -I "../src/asf/common/services/storage/ctrl_access" -I "../src/asf/common/services/spi/uc3_spi" -I "../src/asf/avr32/components/joystick/skrhabe010" -I "../src/asf/common/services/sleepmgr" -I "../src/asf/avr32/drivers/pm" -I "../src/asf/avr32/drivers/usbb" -I "../src/asf/common/boards" -I "../src/asf/common/services/usb/class/composite/device/example3" -I "../src/asf/common/services/clock" -I "../src/asf/common/services/usb/class/hid/device" -I "../src/asf/avr32/boards" -I "../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I "../src/asf/avr32/drivers/spi" -I "../src/asf/common/services/usb/class/hid/device/kbd" -I "../src/asf/common/services/usb/udc" -I "../src/asf/avr32/utils/preprocessor" -I "../src/asf/avr32/drivers/flashc" -I "../src/asf/avr32/boards/evk1101" -I "../src/asf/common/services/usb/class/msc" -I "../src/asf/common/services/usb/class/hid" -I "../src/asf/avr32/drivers/intc" -I "../src/asf/avr32/utils" -I "../src/asf/common/utils" -I "../src/asf/common/services/usb/class/composite/device" -I "../src/asf/avr32/drivers/gpio" -I "../src/asf/common/components/memory/data_flash/at45dbx" -I "../src/asf/avr32/drivers/eic" -I "../src/asf/common/services/spi" -I "../src/asf/common/services/usb/class/msc/device" -I "../src" -I "../src/config" -I "../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I "../src/asf/avr32/services/freq_detect" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/intc/%.o: ../src/asf/avr32/drivers/intc/%.x + @echo Building file: $< + @echo Invoking: AVR32/GNU Preprocessing Assembler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -x assembler-with-cpp -c -DACCESS_USB_ENABLED -DAT45DBX_ENABLE -DBOARD=EVK1101 -DUDD_ENABLE -mrelax -DSD_MMC_SPI_ENABLE $(INCLUDES) -I "../src/asf/common/services/usb" -I "../src/asf/common/services/storage/ctrl_access" -I "../src/asf/common/services/spi/uc3_spi" -I "../src/asf/avr32/components/joystick/skrhabe010" -I "../src/asf/common/services/sleepmgr" -I "../src/asf/avr32/drivers/pm" -I "../src/asf/avr32/drivers/usbb" -I "../src/asf/common/boards" -I "../src/asf/common/services/usb/class/composite/device/example3" -I "../src/asf/common/services/clock" -I "../src/asf/common/services/usb/class/hid/device" -I "../src/asf/avr32/boards" -I "../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I "../src/asf/avr32/drivers/spi" -I "../src/asf/common/services/usb/class/hid/device/kbd" -I "../src/asf/common/services/usb/udc" -I "../src/asf/avr32/utils/preprocessor" -I "../src/asf/avr32/drivers/flashc" -I "../src/asf/avr32/boards/evk1101" -I "../src/asf/common/services/usb/class/msc" -I "../src/asf/common/services/usb/class/hid" -I "../src/asf/avr32/drivers/intc" -I "../src/asf/avr32/utils" -I "../src/asf/common/utils" -I "../src/asf/common/services/usb/class/composite/device" -I "../src/asf/avr32/drivers/gpio" -I "../src/asf/common/components/memory/data_flash/at45dbx" -I "../src/asf/avr32/drivers/eic" -I "../src/asf/common/services/spi" -I "../src/asf/common/services/usb/class/msc/device" -I "../src" -I "../src/config" -I "../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I "../src/asf/avr32/services/freq_detect" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/drivers/intc/%.o: ../src/asf/avr32/drivers/intc/%.X + @echo Building file: $< + @echo Invoking: AVR32/GNU Preprocessing Assembler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -x assembler-with-cpp -c -DACCESS_USB_ENABLED -DAT45DBX_ENABLE -DBOARD=EVK1101 -DUDD_ENABLE -mrelax -DSD_MMC_SPI_ENABLE $(INCLUDES) -I "../src/asf/common/services/usb" -I "../src/asf/common/services/storage/ctrl_access" -I "../src/asf/common/services/spi/uc3_spi" -I "../src/asf/avr32/components/joystick/skrhabe010" -I "../src/asf/common/services/sleepmgr" -I "../src/asf/avr32/drivers/pm" -I "../src/asf/avr32/drivers/usbb" -I "../src/asf/common/boards" -I "../src/asf/common/services/usb/class/composite/device/example3" -I "../src/asf/common/services/clock" -I "../src/asf/common/services/usb/class/hid/device" -I "../src/asf/avr32/boards" -I "../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I "../src/asf/avr32/drivers/spi" -I "../src/asf/common/services/usb/class/hid/device/kbd" -I "../src/asf/common/services/usb/udc" -I "../src/asf/avr32/utils/preprocessor" -I "../src/asf/avr32/drivers/flashc" -I "../src/asf/avr32/boards/evk1101" -I "../src/asf/common/services/usb/class/msc" -I "../src/asf/common/services/usb/class/hid" -I "../src/asf/avr32/drivers/intc" -I "../src/asf/avr32/utils" -I "../src/asf/common/utils" -I "../src/asf/common/services/usb/class/composite/device" -I "../src/asf/avr32/drivers/gpio" -I "../src/asf/common/components/memory/data_flash/at45dbx" -I "../src/asf/avr32/drivers/eic" -I "../src/asf/common/services/spi" -I "../src/asf/common/services/usb/class/msc/device" -I "../src" -I "../src/config" -I "../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I "../src/asf/avr32/services/freq_detect" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/utils/startup/%.o: ../src/asf/avr32/utils/startup/%.S + @echo Building file: $< + @echo Invoking: AVR32/GNU Preprocessing Assembler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -x assembler-with-cpp -c -DACCESS_USB_ENABLED -DAT45DBX_ENABLE -DBOARD=EVK1101 -DUDD_ENABLE -mrelax -DSD_MMC_SPI_ENABLE $(INCLUDES) -I "../src/asf/common/services/usb" -I "../src/asf/common/services/storage/ctrl_access" -I "../src/asf/common/services/spi/uc3_spi" -I "../src/asf/avr32/components/joystick/skrhabe010" -I "../src/asf/common/services/sleepmgr" -I "../src/asf/avr32/drivers/pm" -I "../src/asf/avr32/drivers/usbb" -I "../src/asf/common/boards" -I "../src/asf/common/services/usb/class/composite/device/example3" -I "../src/asf/common/services/clock" -I "../src/asf/common/services/usb/class/hid/device" -I "../src/asf/avr32/boards" -I "../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I "../src/asf/avr32/drivers/spi" -I "../src/asf/common/services/usb/class/hid/device/kbd" -I "../src/asf/common/services/usb/udc" -I "../src/asf/avr32/utils/preprocessor" -I "../src/asf/avr32/drivers/flashc" -I "../src/asf/avr32/boards/evk1101" -I "../src/asf/common/services/usb/class/msc" -I "../src/asf/common/services/usb/class/hid" -I "../src/asf/avr32/drivers/intc" -I "../src/asf/avr32/utils" -I "../src/asf/common/utils" -I "../src/asf/common/services/usb/class/composite/device" -I "../src/asf/avr32/drivers/gpio" -I "../src/asf/common/components/memory/data_flash/at45dbx" -I "../src/asf/avr32/drivers/eic" -I "../src/asf/common/services/spi" -I "../src/asf/common/services/usb/class/msc/device" -I "../src" -I "../src/config" -I "../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I "../src/asf/avr32/services/freq_detect" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/utils/startup/%.o: ../src/asf/avr32/utils/startup/%.x + @echo Building file: $< + @echo Invoking: AVR32/GNU Preprocessing Assembler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -x assembler-with-cpp -c -DACCESS_USB_ENABLED -DAT45DBX_ENABLE -DBOARD=EVK1101 -DUDD_ENABLE -mrelax -DSD_MMC_SPI_ENABLE $(INCLUDES) -I "../src/asf/common/services/usb" -I "../src/asf/common/services/storage/ctrl_access" -I "../src/asf/common/services/spi/uc3_spi" -I "../src/asf/avr32/components/joystick/skrhabe010" -I "../src/asf/common/services/sleepmgr" -I "../src/asf/avr32/drivers/pm" -I "../src/asf/avr32/drivers/usbb" -I "../src/asf/common/boards" -I "../src/asf/common/services/usb/class/composite/device/example3" -I "../src/asf/common/services/clock" -I "../src/asf/common/services/usb/class/hid/device" -I "../src/asf/avr32/boards" -I "../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I "../src/asf/avr32/drivers/spi" -I "../src/asf/common/services/usb/class/hid/device/kbd" -I "../src/asf/common/services/usb/udc" -I "../src/asf/avr32/utils/preprocessor" -I "../src/asf/avr32/drivers/flashc" -I "../src/asf/avr32/boards/evk1101" -I "../src/asf/common/services/usb/class/msc" -I "../src/asf/common/services/usb/class/hid" -I "../src/asf/avr32/drivers/intc" -I "../src/asf/avr32/utils" -I "../src/asf/common/utils" -I "../src/asf/common/services/usb/class/composite/device" -I "../src/asf/avr32/drivers/gpio" -I "../src/asf/common/components/memory/data_flash/at45dbx" -I "../src/asf/avr32/drivers/eic" -I "../src/asf/common/services/spi" -I "../src/asf/common/services/usb/class/msc/device" -I "../src" -I "../src/config" -I "../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I "../src/asf/avr32/services/freq_detect" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + +src/asf/avr32/utils/startup/%.o: ../src/asf/avr32/utils/startup/%.X + @echo Building file: $< + @echo Invoking: AVR32/GNU Preprocessing Assembler : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -x assembler-with-cpp -c -DACCESS_USB_ENABLED -DAT45DBX_ENABLE -DBOARD=EVK1101 -DUDD_ENABLE -mrelax -DSD_MMC_SPI_ENABLE $(INCLUDES) -I "../src/asf/common/services/usb" -I "../src/asf/common/services/storage/ctrl_access" -I "../src/asf/common/services/spi/uc3_spi" -I "../src/asf/avr32/components/joystick/skrhabe010" -I "../src/asf/common/services/sleepmgr" -I "../src/asf/avr32/drivers/pm" -I "../src/asf/avr32/drivers/usbb" -I "../src/asf/common/boards" -I "../src/asf/common/services/usb/class/composite/device/example3" -I "../src/asf/common/services/clock" -I "../src/asf/common/services/usb/class/hid/device" -I "../src/asf/avr32/boards" -I "../src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101" -I "../src/asf/avr32/drivers/spi" -I "../src/asf/common/services/usb/class/hid/device/kbd" -I "../src/asf/common/services/usb/udc" -I "../src/asf/avr32/utils/preprocessor" -I "../src/asf/avr32/drivers/flashc" -I "../src/asf/avr32/boards/evk1101" -I "../src/asf/common/services/usb/class/msc" -I "../src/asf/common/services/usb/class/hid" -I "../src/asf/avr32/drivers/intc" -I "../src/asf/avr32/utils" -I "../src/asf/common/utils" -I "../src/asf/common/services/usb/class/composite/device" -I "../src/asf/avr32/drivers/gpio" -I "../src/asf/common/components/memory/data_flash/at45dbx" -I "../src/asf/avr32/drivers/eic" -I "../src/asf/common/services/spi" -I "../src/asf/common/services/usb/class/msc/device" -I "../src" -I "../src/config" -I "../src/asf/avr32/components/memory/sd_mmc/sd_mmc_spi" -I "../src/asf/avr32/services/freq_detect" -mpart=uc3b0256 -o"$@" "$<" + @echo Finished building: $< + + + +# AVR32/GNU Assembler + + + + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +endif + +# Add inputs and outputs from these tool invocations to the build variables + +# All Target +all: $(OUTPUT_FILE_PATH) $(ADDITIONAL_DEPENDENCIES) + +$(OUTPUT_FILE_PATH): $(OBJS) $(USER_OBJS) $(OUTPUT_FILE_DEP) + @echo Building target: $@ + @echo Invoking: AVR32/GNU Linker : AVR_32_bit_GNU_Toolchain_3.4.1_348 4.4.3 + avr32-gcc -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -nostartfiles -Wl,-Map="One_Button_Hardcode_USBDrive.map" -Wl,--start-group -lm -Wl,--end-group -Wl,--gc-sections --rodata-writable -Wl,--direct-data -T../src/asf/avr32/utils/linker_scripts/at32uc3b/0256/gcc/link_uc3b0256.lds -Wl,--relax -Wl,-e,_trampoline -mpart=uc3b0256 + @echo Finished building target: $@ + "avr32-objcopy" -O ihex -R .eeprom -R .fuse -R .lock -R .signature "One_Button_Hardcode_USBDrive.elf" "One_Button_Hardcode_USBDrive.hex" + "avr32-objcopy" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "One_Button_Hardcode_USBDrive.elf" "One_Button_Hardcode_USBDrive.eep" || exit 0 + "avr32-objdump" -h -S "One_Button_Hardcode_USBDrive.elf" > "One_Button_Hardcode_USBDrive.lss" + "avr32-objcopy" -O srec -R .eeprom -R .fuse -R .lock -R .signature "One_Button_Hardcode_USBDrive.elf" "One_Button_Hardcode_USBDrive.srec" + "avr32-size" "One_Button_Hardcode_USBDrive.elf" + +# Other Targets +clean: + -$(RM) $(OBJS_AS_ARGS)$(C_DEPS_AS_ARGS) $(EXECUTABLES) + rm -rf "One_Button_Hardcode_USBDrive.elf" "One_Button_Hardcode_USBDrive.a" "One_Button_Hardcode_USBDrive.hex" "One_Button_Hardcode_USBDrive.lss" "One_Button_Hardcode_USBDrive.eep" "One_Button_Hardcode_USBDrive.map" "One_Button_Hardcode_USBDrive.srec" + diff -u -r a/Composite_Duck/src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.c b/One_Button_Hardcode_USBDrive/src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.c --- a/Composite_Duck/src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.c 1970-01-01 00:00:00.000000000 +0000 +++ b/One_Button_Hardcode_USBDrive/src/asf/common/services/usb/class/composite/device/example3/at32uc3b0256_evk1101/ui.c 1970-01-01 00:00:00.000000000 +0000 @@ -101,6 +101,19 @@ {false,false,HID_CAPS_LOCK}, }; +uint16_t ui_sequence_index; +// state machine enum +typedef enum injectState { + state_IDLE, + state_START_INJECT, + state_INJECTING, + state_KEY_DOWN, + state_KEY_UP, + state_MOD_DOWN, + state_MOD_UP, + state_WAIT +} injectState_t; + // Interrupt on "pin change" from switch to do wakeup on USB // Note: // This interrupt is enable when the USB host enable remotewakeup feature @@ -124,7 +137,7 @@ AVR32_GPIO_IRQ_0 + (GPIO_JOYSTICK_PUSH / 8), 0); cpu_irq_restore(flags); - LED_On(LED0); + //LED_On(LED0); LED_Off(LED1); } @@ -187,12 +200,12 @@ void ui_wakeup(void) { - LED_On(LED0); + //LED_On(LED0); } void ui_start_read(void) { - LED_On(LED1); + //LED_On(LED1); } void ui_stop_read(void) @@ -202,7 +215,7 @@ void ui_start_write(void) { - LED_On(LED0); + //LED_On(LED0); } void ui_stop_write(void) @@ -212,64 +225,101 @@ void ui_process(uint16_t framenumber) { - bool b_btn_state, sucess; - static bool btn_last_state = false; - static bool sequence_running = false; - static uint8_t u8_sequence_pos = 0; + static uint8_t cpt_sof = 0; + static injectState_t state = state_IDLE; + //static injectState_t state = state_START_INJECT; + static uint8_t wait = 0; + static uint16_t debounce = 0; + static uint8_t injectTokenVal = 0x00; + static bool injectTokenDown; + static bool injectTokenMod; uint8_t u8_value; - static uint16_t cpt_sof = 0; - - if ((framenumber % 1000) == 0) { - LED_On(LED1); - } - if ((framenumber % 1000) == 500) { - LED_Off(LED1); - } + // Scan process running each 2ms cpt_sof++; - if ((cpt_sof%2)==0) { - return; - } - - // Scan buttons on switch 0 to send keys sequence - //b_btn_state = (!gpio_get_pin_value(GPIO_PUSH_BUTTON_0)) ? true : false; - b_btn_state = (!gpio_get_pin_value(GPIO_JOYSTICK_PUSH)) ? true : false; - if (b_btn_state != btn_last_state) { - btn_last_state = b_btn_state; - sequence_running = true; - } - - // Sequence process running each 200ms - if (200 > cpt_sof) { - return; - } + if( 2 > cpt_sof ) + return; cpt_sof = 0; - - if (sequence_running) { - // Send next key - u8_value = ui_sequence[u8_sequence_pos].u8_value; - if (ui_sequence[u8_sequence_pos].b_modifier) { - if (ui_sequence[u8_sequence_pos].b_down) { - sucess = udi_hid_kbd_modifier_down(u8_value); - } else { - sucess = udi_hid_kbd_modifier_up(u8_value); - } - } else { - if (ui_sequence[u8_sequence_pos].b_down) { - sucess = udi_hid_kbd_down(u8_value); - } else { - sucess = udi_hid_kbd_up(u8_value); + + // debounce switch + if( debounce > 0 ) --debounce; + + // injection state machine + switch(state) { + + case state_IDLE: + // check switch + if( gpio_get_pin_value(GPIO_JOYSTICK_PUSH) == GPIO_JOYSTICK_PUSH_PRESSED ){ + // debounce + if( debounce == 0 ){ + state = state_START_INJECT; + debounce = 250; } } - if (!sucess) { - return; // Retry it on next schedule + break; + + case state_START_INJECT: + ui_sequence_index = 0; + state = state_INJECTING; + break; + + case state_INJECTING: + if (ui_sequence_index >= + sizeof(ui_sequence) / sizeof(ui_sequence[0])) { + ui_sequence_index = 0; + state = state_IDLE; + break; + } + + injectTokenVal = ui_sequence[ui_sequence_index].u8_value; + injectTokenDown = ui_sequence[ui_sequence_index].b_down; + injectTokenMod = ui_sequence[ui_sequence_index].b_modifier; + ui_sequence_index++; + + if( ( injectTokenVal ) == 0x00 ) { + wait = 100; + state = state_WAIT; + }else if( injectTokenDown && !injectTokenMod) { + state = state_KEY_DOWN; + }else if( !injectTokenDown && !injectTokenMod) { + state = state_KEY_UP; + }else if( injectTokenDown && injectTokenMod) { + state = state_MOD_DOWN; + }else if( !injectTokenDown && injectTokenMod) { + state = state_MOD_UP; + }else { + state = state_IDLE; } - // Valid sequence position - u8_sequence_pos++; - if (u8_sequence_pos>=sizeof(ui_sequence)/sizeof(ui_sequence[0])) { - u8_sequence_pos=0; - sequence_running=false; + break; + + case state_KEY_DOWN: + udi_hid_kbd_down(injectTokenVal); + state = state_INJECTING; + break; + + case state_KEY_UP: + udi_hid_kbd_up(injectTokenVal); + state = state_INJECTING; + break; + + case state_MOD_DOWN: + udi_hid_kbd_modifier_down(injectTokenVal); + state = state_INJECTING; + break; + + case state_MOD_UP: + udi_hid_kbd_modifier_up(injectTokenVal); + state = state_INJECTING; + break; + + case state_WAIT: + if( --wait == 0 ) { + state = state_INJECTING; } + break; + + default: + state = state_IDLE; } } diff -u -r a/Composite_Duck/src/config/conf_usb.h b/One_Button_Hardcode_USBDrive/src/config/conf_usb.h --- a/Composite_Duck/src/config/conf_usb.h 1970-01-01 00:00:00.000000000 +0000 +++ b/One_Button_Hardcode_USBDrive/src/config/conf_usb.h 1970-01-01 00:00:00.000000000 +0000 @@ -52,10 +52,12 @@ */ //! Device definition (mandatory) -#define USB_DEVICE_VENDOR_ID USB_VID_ATMEL -#define USB_DEVICE_PRODUCT_ID USB_PID_ATMEL_ASF_MSC_HIDKEYBOARD -#define USB_DEVICE_MAJOR_VERSION 1 -#define USB_DEVICE_MINOR_VERSION 0 +#define USB_DEVICE_VENDOR_ID 0x0936 +//USB_VID_ATMEL +#define USB_DEVICE_PRODUCT_ID 0x0030 +//USB_PID_ATMEL_ASF_MSC_HIDKEYBOARD +#define USB_DEVICE_MAJOR_VERSION 0x50 +#define USB_DEVICE_MINOR_VERSION 0xDA #define USB_DEVICE_POWER 100 // Consumption on Vbus line (mA) #define USB_DEVICE_ATTR \ (USB_CONFIG_ATTR_BUS_POWERED) @@ -65,9 +67,9 @@ //! USB Device string definitions (Optional) -#define USB_DEVICE_MANUFACTURE_NAME "Ducky" -#define USB_DEVICE_PRODUCT_NAME "HID Keyboard and MSC" -#define USB_DEVICE_SERIAL_NAME "123123123123" // Disk SN for MSC +#define USB_DEVICE_MANUFACTURE_NAME "Bad" +#define USB_DEVICE_PRODUCT_NAME "Muther Fucka" +#define USB_DEVICE_SERIAL_NAME "121212121212" // Disk SN for MSC /** * Device speeds support Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.