quickdev16/tools/gnusb/common/gnusb_cmds.h
David Voswinkel aedc6dab5b o add gnususb as reference bootloader
o refactor boot loader  cpde
o
2009-05-06 23:55:56 +02:00

36 lines
1016 B
C

// ==============================================================================
// gnusb_commands.h
//
// Commands shared between the gnusb firmware and host software
//
// License:
// The project is built with AVR USB driver by Objective Development, which is
// published under an own licence based on the GNU General Public License (GPL).
// gnusb is also distributed under this enhanced licence. See Documentation.
//
// created 2007-01-28 Michael Egger me@anyma.ch
// mdified 2007-11-13 "
//
// ==============================================================================
// get values of sensors connected to the gnusb
#define GNUSB_CMD_POLL 2
// Set state of Leds connected to PORTC (8 bit)
#define GNUSB_CMD_SET_PORTC 3
// Set state of Leds connected to PORTB (8 bit)
#define GNUSB_CMD_SET_PORTB 4
#define GNUSB_CMD_INPUT_PORTB 5
#define GNUSB_CMD_INPUT_PORTC 6
#define GNUSB_CMD_SET_SMOOTHING 7
// Start Bootloader for Software updates
#define GNUSB_CMD_START_BOOTLOADER 0xf8