U08232.h, U08led.h, U08232.h u08led.h – Motorola USB08 User Manual

Page 96: Source code files

Advertising
background image

Designer Reference Manual

USB08 Evaluation Board

96

Source Code Files

MOTOROLA

Source Code Files

U08232.H

//============================================================================

// File: U08_232.H

// Func: Header File for RS232 Module of USB08 Demo App

// Ver.: 1.00

// Auth: (C)2000,2001 by Oliver Thamm

// MCT Elektronikladen GbR

// http://hc08web.de/usb08

// Rem.: View/Edit this File with TAB-Size=4

//============================================================================

//-- Function Prototypes -----------------------------------------------------

void initSSCI();

void putSSCI(char c);

char getSSCI();

//============================================================================

U08LED.H

//============================================================================

// File: U08LED.H

// Func: LED Functions for USB08

// Auth: (C)2000 by MCT Elektronikladen GbR, Oliver Thamm

// http://www.elektronikladen.de/mct

//============================================================================

// No code in this Module - just Macros!

#define initLED()

(DDRD |= 0x07)

#define toggleLED(x)

(PTD ^= (1 << (x-1)))

#define offLED(x)

(PTD |= (1 << (x-1)))

#define onLED(x)

(PTD &= ~(1 << (x-1)))

//============================================================================

Advertising