firmware/main.c File Reference

Firmware for the USB-Servo. More...

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <util/delay.h>
#include "usbdrv.h"
#include "oddebug.h"
#include "usbservo.h"

Go to the source code of this file.

Functions

uchar usbFunctionSetup (uchar data[8])
 USB-Setup-Handler.
int main (void)
 Main-function.


Detailed Description

Firmware for the USB-Servo.

Author:
Ronald Schaten
Version:
Id
main.c,v 1.1 2006/10/28 12:40:42 rschaten Exp
License: See documentation.

Definition in file main.c.


Function Documentation

int main ( void   ) 

Main-function.

Initializes the hardware and starts the main loop of the application.

Returns:
An integer. Whatever... :-)

Definition at line 79 of file main.c.

uchar usbFunctionSetup ( uchar  data[8]  ) 

USB-Setup-Handler.

Handles setup-calls that are received from the USB-Interface.

Parameters:
data Eight bytes of data.
Returns:
The number of returned bytes (in replyBuffer[]).

Definition at line 46 of file main.c.

References CMD_ECHO, CMD_GET, CMD_SET, msgErr, and msgOK.


Generated on Sat Oct 28 14:48:23 2006 for USB-Servo by  doxygen 1.4.7