new header
This commit is contained in:
parent
170ef9f5c6
commit
1c8c3dc244
@ -1,3 +1,27 @@
|
|||||||
|
# =====================================================================================
|
||||||
|
#
|
||||||
|
# ________ .__ __ ________ ____ ________
|
||||||
|
# \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
|
# / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
|
# / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
|
# \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
# \__> \/ \/ \/ \/ \/
|
||||||
|
# ___.
|
||||||
|
# __ __ _____\_ |__
|
||||||
|
# | | \/ ___/| __ \
|
||||||
|
# | | /\___ \ | \_\ \
|
||||||
|
# |____//____ >|___ /
|
||||||
|
# \/ \/
|
||||||
|
#
|
||||||
|
# www.optixx.org
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Version: 1.0
|
||||||
|
# Created: 07/21/2009 03:32:16 PM
|
||||||
|
# Author: david@optixx.org
|
||||||
|
# Based on: custom-class, a basic USB example
|
||||||
|
# Author: Christian Starkjohann
|
||||||
|
# =====================================================================================
|
||||||
|
|
||||||
TTY = /dev/tty.PL2303-00002126
|
TTY = /dev/tty.PL2303-00002126
|
||||||
DEVICE = atmega644
|
DEVICE = atmega644
|
||||||
@ -18,8 +42,8 @@ COMPILE = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CFLAGS) -mmcu=$(DEVICE)
|
|||||||
FUSE_L = 0xf7
|
FUSE_L = 0xf7
|
||||||
FUSE_H = 0xda
|
FUSE_H = 0xda
|
||||||
|
|
||||||
|
all: hex
|
||||||
|
|
||||||
# symbolic targets:
|
|
||||||
help:
|
help:
|
||||||
@echo "This Makefile has no default rule. Use one of the following:"
|
@echo "This Makefile has no default rule. Use one of the following:"
|
||||||
@echo "make hex ....... to build main.hex"
|
@echo "make hex ....... to build main.hex"
|
||||||
@ -28,8 +52,6 @@ help:
|
|||||||
@echo "make flash ..... to flash the firmware (use this on metaboard)"
|
@echo "make flash ..... to flash the firmware (use this on metaboard)"
|
||||||
@echo "make clean ..... to delete objects and hex file"
|
@echo "make clean ..... to delete objects and hex file"
|
||||||
|
|
||||||
all: hex
|
|
||||||
|
|
||||||
hex: main.hex
|
hex: main.hex
|
||||||
@echo "==============================="
|
@echo "==============================="
|
||||||
@echo "$(TARGET) compiled for: $(DEVICE)"
|
@echo "$(TARGET) compiled for: $(DEVICE)"
|
||||||
|
|||||||
@ -1,15 +1,31 @@
|
|||||||
/*
|
/*
|
||||||
* Name: opendevice.c Project: V-USB host-side library Author: Christian
|
* =====================================================================================
|
||||||
* Starkjohann Creation Date: 2008-04-10 Tabsize: 4 Copyright: (c) 2008 by
|
*
|
||||||
* OBJECTIVE DEVELOPMENT Software GmbH License: GNU GPL v2 (see License.txt),
|
* ________ .__ __ ________ ____ ________
|
||||||
* GNU GPL v3 or proprietary (CommercialLicense.txt) This Revision: $Id:
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* opendevice.c 740 2009-04-13 18:23:31Z cs $
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
|
*
|
||||||
|
* www.optixx.org
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Version: 1.0
|
||||||
|
* Created: 07/21/2009 03:32:16 PM
|
||||||
|
* Author: david@optixx.org
|
||||||
|
* Based on: custom-class, a basic USB example
|
||||||
|
* Author: Christian Starkjohann
|
||||||
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* General Description: The functions in this module can be used to find and
|
|
||||||
* open a device based on libusb or libusb-win32.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@ -1,25 +1,32 @@
|
|||||||
/* Name: opendevice.h
|
|
||||||
* Project: V-USB host-side library
|
|
||||||
* Author: Christian Starkjohann
|
|
||||||
* Creation Date: 2008-04-10
|
|
||||||
* Tabsize: 4
|
|
||||||
* Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
|
|
||||||
* License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
|
|
||||||
* This Revision: $Id: opendevice.h 740 2009-04-13 18:23:31Z cs $
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
General Description:
|
* =====================================================================================
|
||||||
This module offers additional functionality for host side drivers based on
|
*
|
||||||
libusb or libusb-win32. It includes a function to find and open a device
|
* ________ .__ __ ________ ____ ________
|
||||||
based on numeric IDs and textual description. It also includes a function to
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
obtain textual descriptions from a device.
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
To use this functionality, simply copy opendevice.c and opendevice.h into your
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
project and add them to your Makefile. You may modify and redistribute these
|
* \__> \/ \/ \/ \/ \/
|
||||||
files according to the GNU General Public License (GPL) version 2 or 3.
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
|
*
|
||||||
|
* www.optixx.org
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Version: 1.0
|
||||||
|
* Created: 07/21/2009 03:32:16 PM
|
||||||
|
* Author: david@optixx.org
|
||||||
|
* Based on: custom-class, a basic USB example
|
||||||
|
* Author: Christian Starkjohann
|
||||||
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __OPENDEVICE_H_INCLUDED__
|
#ifndef __OPENDEVICE_H_INCLUDED__
|
||||||
#define __OPENDEVICE_H_INCLUDED__
|
#define __OPENDEVICE_H_INCLUDED__
|
||||||
|
|
||||||
|
|||||||
@ -1,17 +1,28 @@
|
|||||||
/*
|
/*
|
||||||
* Name: set-led.c Project: custom-class, a basic USB example Author:
|
* =====================================================================================
|
||||||
* Christian Starkjohann Creation Date: 2008-04-10 Tabsize: 4 Copyright: (c)
|
*
|
||||||
* 2008 by OBJECTIVE DEVELOPMENT Software GmbH License: GNU GPL v2 (see
|
* ________ .__ __ ________ ____ ________
|
||||||
* License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) This
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* Revision: $Id: set-led.c 692 2008-11-07 15:07:40Z cs $
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
*/
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
/*
|
* \__> \/ \/ \/ \/ \/
|
||||||
* General Description: This is the host-side driver for the custom-class
|
* ___.
|
||||||
* example device. It searches the USB for the LEDControl device and sends the
|
* __ __ _____\_ |__
|
||||||
* requests understood by this device. This program must be linked with libusb
|
* | | \/ ___/| __ \
|
||||||
* on Unix and libusb-win32 on Windows. See http://libusb.sourceforge.net/ or
|
* | | /\___ \ | \_\ \
|
||||||
* http://libusb-win32.sourceforge.net/ respectively.
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
|
*
|
||||||
|
* www.optixx.org
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Version: 1.0
|
||||||
|
* Created: 07/21/2009 03:32:16 PM
|
||||||
|
* Author: david@optixx.org
|
||||||
|
* Based on: custom-class, a basic USB example
|
||||||
|
* Author: Christian Starkjohann
|
||||||
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -17,8 +24,6 @@
|
|||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,8 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __CRC_H__
|
#ifndef __CRC_H__
|
||||||
#define __CRC_H__
|
#define __CRC_H__
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -16,9 +23,6 @@
|
|||||||
*
|
*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -17,8 +24,6 @@
|
|||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -17,8 +24,6 @@
|
|||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __DUMP_H__
|
#ifndef __DUMP_H__
|
||||||
#define __DUMP_H__
|
#define __DUMP_H__
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -16,9 +23,6 @@
|
|||||||
*
|
*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __FIFO_H__
|
#ifndef __FIFO_H__
|
||||||
#define __FIFO_H__
|
#define __FIFO_H__
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,27 @@
|
|||||||
/* avr-huffman-decode.c */
|
|
||||||
/*
|
/*
|
||||||
This file is part of the AVR-Huffman.
|
* =====================================================================================
|
||||||
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
|
*
|
||||||
|
* ________ .__ __ ________ ____ ________
|
||||||
This program is free software: you can redistribute it and/or modify
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
it under the terms of the GNU General Public License as published by
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
(at your option) any later version.
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
This program is distributed in the hope that it will be useful,
|
* ___.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* __ __ _____\_ |__
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* | | \/ ___/| __ \
|
||||||
GNU General Public License for more details.
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
You should have received a copy of the GNU General Public License
|
* \/ \/
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
*
|
||||||
|
* www.optixx.org
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Version: 1.0
|
||||||
|
* Created: 07/21/2009 03:32:16 PM
|
||||||
|
* Author: david@optixx.org
|
||||||
|
* Based on: Daniel Otte (daniel.otte@rub.de)
|
||||||
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "huffman-decode.h"
|
#include "huffman-decode.h"
|
||||||
|
|||||||
@ -1,20 +1,27 @@
|
|||||||
/* avr-huffman-decode.h */
|
|
||||||
/*
|
/*
|
||||||
This file is part of the AVR-Huffman.
|
* =====================================================================================
|
||||||
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
|
*
|
||||||
|
* ________ .__ __ ________ ____ ________
|
||||||
This program is free software: you can redistribute it and/or modify
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
it under the terms of the GNU General Public License as published by
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
(at your option) any later version.
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
This program is distributed in the hope that it will be useful,
|
* ___.
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* __ __ _____\_ |__
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* | | \/ ___/| __ \
|
||||||
GNU General Public License for more details.
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
You should have received a copy of the GNU General Public License
|
* \/ \/
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
*
|
||||||
|
* www.optixx.org
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Version: 1.0
|
||||||
|
* Created: 07/21/2009 03:32:16 PM
|
||||||
|
* Author: david@optixx.org
|
||||||
|
* Based on: Daniel Otte (daniel.otte@rub.de)
|
||||||
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
#ifndef AVR_HUFFMAN_DECODE_H_
|
#ifndef AVR_HUFFMAN_DECODE_H_
|
||||||
#define AVR_HUFFMAN_DECODE_H_
|
#define AVR_HUFFMAN_DECODE_H_
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <avr/interrupt.h> /* for sei() */
|
#include <avr/interrupt.h> /* for sei() */
|
||||||
#include <util/delay.h> /* for _delay_ms() */
|
#include <util/delay.h> /* for _delay_ms() */
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -17,23 +24,6 @@
|
|||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Name: requests.h
|
|
||||||
* Project: custom-class, a basic USB example
|
|
||||||
* Author: Christian Starkjohann
|
|
||||||
* Creation Date: 2008-04-09
|
|
||||||
* Tabsize: 4
|
|
||||||
* Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
|
|
||||||
* License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
|
|
||||||
* This Revision: $Id: requests.h 692 2008-11-07 15:07:40Z cs $
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* This header is shared between the firmware and the host software. It
|
|
||||||
* defines the USB request numbers (and optionally data types) used to
|
|
||||||
* communicate between the host and the device.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __REQUESTS_H__
|
#ifndef __REQUESTS_H__
|
||||||
#define __REQUESTS_H__
|
#define __REQUESTS_H__
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* =====================================================================================
|
||||||
|
*
|
||||||
|
* ________ .__ __ ________ ____ ________
|
||||||
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
|
*
|
||||||
|
* www.optixx.org
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Version: 1.0
|
||||||
|
* Created: 07/21/2009 03:32:16 PM
|
||||||
|
* Author: david@optixx.org
|
||||||
|
*
|
||||||
|
* =====================================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@ -1,3 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* =====================================================================================
|
||||||
|
*
|
||||||
|
* ________ .__ __ ________ ____ ________
|
||||||
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
|
*
|
||||||
|
* www.optixx.org
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Version: 1.0
|
||||||
|
* Created: 07/21/2009 03:32:16 PM
|
||||||
|
* Author: david@optixx.org
|
||||||
|
*
|
||||||
|
* =====================================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __SRAM_H__
|
||||||
|
#define __SRAM_H__
|
||||||
|
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
|
||||||
uint8_t rle_decode(PGM_VOID_P in_addr,uint32_t in_len, uint32_t out_addr);
|
uint8_t rle_decode(PGM_VOID_P in_addr,uint32_t in_len, uint32_t out_addr);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -17,8 +24,6 @@
|
|||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __SRAM_H__
|
#ifndef __SRAM_H__
|
||||||
#define __SRAM_H__
|
#define __SRAM_H__
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -17,10 +24,11 @@
|
|||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __TIMER_H__
|
||||||
|
#define __TIMER_H__
|
||||||
|
|
||||||
|
|
||||||
|
int16_t timer_start( void );
|
||||||
|
|
||||||
uint16_t timer_start( void );
|
|
||||||
double timer_stop( void );
|
double timer_stop( void );
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -17,8 +24,6 @@
|
|||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __UART_H__
|
#ifndef __UART_H__
|
||||||
#define __UART_H__
|
#define __UART_H__
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,8 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <avr/pgmspace.h> /* required by usbdrv.h */
|
#include <avr/pgmspace.h> /* required by usbdrv.h */
|
||||||
#include <avr/interrupt.h> /* for sei() */
|
#include <avr/interrupt.h> /* for sei() */
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,8 +25,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef __USB_BULK_H__
|
||||||
|
#define __USB_BULK_H__
|
||||||
|
|
||||||
|
|
||||||
uint8_t usbFunctionWrite(uint8_t * data, uint8_t len);
|
uint8_t usbFunctionWrite(uint8_t * data, uint8_t len);
|
||||||
uint8_t usbFunctionRead(uint8_t * data, uint8_t len);
|
uint8_t usbFunctionRead(uint8_t * data, uint8_t len);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Name: usbconfig.h
|
/* Name: usbconfig.h
|
||||||
* Project: V-USB, virtual USB port for Atmel's(r) AVR(r) microcontrollers
|
* Project: V-USB, virtual USB port for Atmel's(r) AVR(r) microcontrollers
|
||||||
* Author: Christian Starkjohann
|
* Author: Christian Starkjohann
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -18,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "watchdog.h"
|
#include "watchdog.h"
|
||||||
|
|
||||||
void wdt_init(void)
|
void wdt_init(void)
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* =====================================================================================
|
* =====================================================================================
|
||||||
*
|
*
|
||||||
* .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
|
* ________ .__ __ ________ ____ ________
|
||||||
* 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
|
* \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
|
||||||
* "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
|
* / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
|
||||||
* X88 888 888 Y8b. X88 888 888 888 888 888 888
|
* / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
|
||||||
* 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
|
* \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
|
||||||
|
* \__> \/ \/ \/ \/ \/
|
||||||
|
* ___.
|
||||||
|
* __ __ _____\_ |__
|
||||||
|
* | | \/ ___/| __ \
|
||||||
|
* | | /\___ \ | \_\ \
|
||||||
|
* |____//____ >|___ /
|
||||||
|
* \/ \/
|
||||||
*
|
*
|
||||||
* www.optixx.org
|
* www.optixx.org
|
||||||
*
|
*
|
||||||
@ -19,6 +26,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <avr/wdt.h>
|
#include <avr/wdt.h>
|
||||||
|
|
||||||
#ifndef __WATCHDOG_H__
|
#ifndef __WATCHDOG_H__
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user