U08Main.c - Motorola USB08 Reference Manual

Universal serial bus evaluation board using the mc68hc908jb8
Table of Contents

Advertisement

U08MAIN.C

//============================================================================
// File: U08MAIN.C
// Func: Main Module for USB08 Demo Application
// Ver.: 1.00
// Auth: (C)2000,2001 by Oliver Thamm, MCT Elektronikladen GbR
//
http://hc08web.de/usb08
// Make: Build the project using U08MAIN.C, U08KEY.C,
//
and VECJB8.C, use CRTSJB8.S as C-Startup Module
// Rem.: View/Edit this File with TAB-Size=4
//============================================================================
//-- Select Interface! -------------------------------------------------------
#define USE_USB_PIPE
//-- Includes ----------------------------------------------------------------
#include "hc08jb8.h"
#include "u08key.h"
#include "u08led.h"
#include "u08adc.h"
//-- Compiler-dependent Stuff ------------------------------------------------
#define cli()
#define nop()
//-- Data Type Definitions ---------------------------------------------------
typedef unsigned char uchar;
//-- Code Starts here --------------------------------------------------------
#ifdef USE_USB_PIPE
#include "u08usb.c"
#define initPipe
#define getPipe
#define putPipe
#else
#include "u08232.c"
#define initPipe
#define getPipe
#define putPipe
@interrupt void isrUSB() { }
#endif
//----------------------------------------------------------------------------
USB08 Evaluation Board
MOTOROLA
// by defining or NOT defining this
// label before compiling, you can
// select the communication interface
// (if defined => USB, if not => RS232)
// HC908JB8 Register and Bitmap Definitions
// Keyboard Module Header File
// LED Module Header File (just Macros)
// Soft ADC Module Header File
_asm("cli")
_asm("nop")
// use USB implementation
initUSB
getUSB
putUSB
// use RS232 implementation
initSSCI
getSSCI
putSSCI
Source Code Files
Source Code Files
Contents
Designer Reference Manual
97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68hc908jb8

Table of Contents