summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/console/85c30.h
blob: 7fb9df75c208539e4757e32c90cf5c07ce2a30db (plain) (blame)
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
/*  85c30.h
 *
 *  This include file contains z85c30 chip information.
 *
 *  COPYRIGHT (c) 1989-2009.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */

#ifndef __85c30_H
#define __85c30_H

/*
 * Clock Speed Definations
 */

#define Z8530_x1_CLOCK                        0x00
#define Z8530_x16_CLOCK                       0x40
#define Z8530_x32_CLOCK                       0x80
#define Z8530_x64_CLOCK                       0xC0

/*
 * Number of Stop Bits.
 */
#define Z8530_STOP_BITS_1                     0x04
#define Z8530_STOP_BITS_1_AND_A_HALF          0x08
#define Z8530_STOP_BITS_2                     0x0C

/*
 * PARITY
 */
#define Z8530_PARITY_NONE                     0x00
#define Z8530_PARITY_ODD                      0x01
#define Z8530_PARITY_EVEN                     0x03

/*
 * Character Bits
 */
#define Z8530_READ_CHARACTER_BITS_8           0xC0
#define Z8530_READ_CHARACTER_BITS_7           0x40
#define Z8530_READ_CHARACTER_BITS_6           0x80
#define Z8530_READ_CHARACTER_BITS_5           0x00

#define Z8530_WRITE_CHARACTER_BITS_8          0x60
#define Z8530_WRITE_CHARACTER_BITS_7          0x20
#define Z8530_WRITE_CHARACTER_BITS_6          0x40
#define Z8530_WRITE_CHARACTER_BITS_5          0x00

#endif