#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 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 |