bootloader/main.c File Reference

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/wdt.h>
#include <avr/boot.h>
#include <avr/eeprom.h>
#include <util/delay.h>
#include <string.h>
#include "bootloaderconfig.h"
#include "usbdrv/usbdrv.c"

Go to the source code of this file.

Defines

#define USBASP_FUNC_CONNECT   1
#define USBASP_FUNC_DISCONNECT   2
#define USBASP_FUNC_TRANSMIT   3
#define USBASP_FUNC_READFLASH   4
#define USBASP_FUNC_ENABLEPROG   5
#define USBASP_FUNC_WRITEFLASH   6
#define USBASP_FUNC_READEEPROM   7
#define USBASP_FUNC_WRITEEEPROM   8
#define USBASP_FUNC_SETLONGADDRESS   9
#define ulong   unsigned long
#define uint   unsigned int
#define GICR   MCUCR
#define CURRENT_ADDRESS   currentAddress.w[0]

Functions

uchar usbFunctionSetup (uchar data[8])
uchar usbFunctionWrite (uchar *data, uchar len)
uchar usbFunctionRead (uchar *data, uchar len)
int main (void)

Variables

 longConverter_t


Define Documentation

#define CURRENT_ADDRESS   currentAddress.w[0]

Definition at line 106 of file main.c.

#define GICR   MCUCR

#define uint   unsigned int

#define ulong   unsigned long

#define USBASP_FUNC_CONNECT   1

#define USBASP_FUNC_DISCONNECT   2

#define USBASP_FUNC_ENABLEPROG   5

#define USBASP_FUNC_READEEPROM   7

#define USBASP_FUNC_READFLASH   4

#define USBASP_FUNC_SETLONGADDRESS   9

#define USBASP_FUNC_TRANSMIT   3

#define USBASP_FUNC_WRITEEEPROM   8

#define USBASP_FUNC_WRITEFLASH   6


Function Documentation

int main ( void   ) 

Definition at line 265 of file main.c.

uchar usbFunctionRead ( uchar *  data,
uchar  len 
)

Definition at line 234 of file main.c.

uchar usbFunctionSetup ( uchar  data[8]  ) 

Definition at line 130 of file main.c.

uchar usbFunctionWrite ( uchar *  data,
uchar  len 
)

Definition at line 184 of file main.c.


Variable Documentation

longConverter_t

Definition at line 78 of file main.c.


Generated on Sat Jul 12 22:27:15 2008 for Dulcimer by  doxygen 1.5.4