USB-BDI
Functions | Variables
M:/USB-BDI/USB-BDI/Firmware/MPC555-USB-BDI/src/usbpdi_main.c File Reference

This file contains the main method. More...

#include "usb_common.h"
#include "usbpdi_common.h"
#include "usbpdi_main.h"
#include "BDI_555.h"
#include "UART.h"
#include "fx2regs.h"
#include "usbpdi_regs.h"
#include "timer.h"
#include "isr.h"
#include "fx2utils.h"
#include "virtual_com_port.h"

Go to the source code of this file.

Functions

void toggleLED ()
 this method toggles a LED
void update_speed_led (void)
 this method sets a LED2 if highspeed is granted
static void isr_tick (void)
 interrupt service routine for timer2 called at 100 Hz
void main (void)
 application entry point

Variables

volatile unsigned char timer_count = 0

Detailed Description

This file contains the main method.

Author:
Tinner Marco
Version:
1.1
Date:
04.1.2012

Definition in file usbpdi_main.c.


Function Documentation

static void isr_tick ( void  ) [static]

interrupt service routine for timer2 called at 100 Hz

used to Toggle led 0.

Definition at line 78 of file usbpdi_main.c.

void main ( void  )

application entry point

This is the main routine of this device. It contains the initialization of the different parts of the device and a endless loop. The loop calls the different Methods to handle the packages of the different endpoints and toggles a LED.

Definition at line 111 of file usbpdi_main.c.


Variable Documentation

volatile unsigned char timer_count = 0

counter to toggle the LED with a lower frequency

Definition at line 39 of file usbpdi_main.c.

 All Files Functions Variables Defines