aboutsummaryrefslogtreecommitdiff
path: root/ROMTransfer/Source/ROM_Transfer.h
blob: 3bc9b2ab055e28481dec7b2ddb412e292b67a286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* -*- mode: C++; tab-width: 4 -*- */
/* ===================================================================== *\
	Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries.
	All rights reserved.

	This file is part of the Palm OS Emulator.

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.
\* ===================================================================== */

#ifndef ROM_TRANSFER_H
#define ROM_TRANSFER_H


#include "SerialPortTools.h"


// Constants.

#define kItem_1200		9
#define kItem_2400		8
#define kItem_4800		7
#define kItem_9600		6
#define kItem_14400		5
#define kItem_19200		4
#define kItem_28800		3
#define kItem_38400		2
#define kItem_57600		1
#define kItem_115200	0

// Error macros.

#define Throw_IfNil(iHandle,iError)		{ if ((iHandle) == NULL) ErrThrow (iError); }
#define Throw_IfError(iCode,iError)		{ if ((iCode) != 0) ErrThrow (iError); }

// Function prototypes.

UInt32		PilotMain				(UInt16 iCommand,
									 void* iCommandParams,
									 UInt16 iLaunchFlags);

void		InitializeApplication	(void);

void		DisposeApplication		(void);

void		ExecuteApplication		(void);

Boolean		ProcessEvent			(EventPtr iEvent);

void		TransferROM				(void);

#endif