o add gnususb as reference bootloader
o refactor boot loader cpde o
This commit is contained in:
35
tools/gnusb/common/gnusb_cmds.h
Normal file
35
tools/gnusb/common/gnusb_cmds.h
Normal file
@@ -0,0 +1,35 @@
|
||||
// ==============================================================================
|
||||
// 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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user