OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52221_CodeWarrior/] [headers/] [MCF52221_QSPI.h] - Blame information for rev 636

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2008/05/23 Revision: 0.95
6
 *
7
 * (c) Copyright UNIS, a.s. 1997-2008
8
 * UNIS, a.s.
9
 * Jundrovska 33
10
 * 624 00 Brno
11
 * Czech Republic
12
 * http      : www.processorexpert.com
13
 * mail      : info@processorexpert.com
14
 */
15
 
16
#ifndef __MCF52221_QSPI_H__
17
#define __MCF52221_QSPI_H__
18
 
19
 
20
/*********************************************************************
21
*
22
* Queued Serial Peripheral Interface (QSPI)
23
*
24
*********************************************************************/
25
 
26
/* Register read/write macros */
27
#define MCF_QSPI_QMR                         (*(vuint16*)(0x40000340))
28
#define MCF_QSPI_QDLYR                       (*(vuint16*)(0x40000344))
29
#define MCF_QSPI_QWR                         (*(vuint16*)(0x40000348))
30
#define MCF_QSPI_QIR                         (*(vuint16*)(0x4000034C))
31
#define MCF_QSPI_QAR                         (*(vuint16*)(0x40000350))
32
#define MCF_QSPI_QDR                         (*(vuint16*)(0x40000354))
33
 
34
 
35
/* Bit definitions and macros for MCF_QSPI_QMR */
36
#define MCF_QSPI_QMR_BAUD(x)                 (((x)&0xFF)<<0)
37
#define MCF_QSPI_QMR_CPHA                    (0x100)
38
#define MCF_QSPI_QMR_CPOL                    (0x200)
39
#define MCF_QSPI_QMR_BITS(x)                 (((x)&0xF)<<0xA)
40
#define MCF_QSPI_QMR_DOHIE                   (0x4000)
41
#define MCF_QSPI_QMR_MSTR                    (0x8000)
42
 
43
/* Bit definitions and macros for MCF_QSPI_QDLYR */
44
#define MCF_QSPI_QDLYR_DTL(x)                (((x)&0xFF)<<0)
45
#define MCF_QSPI_QDLYR_QCD(x)                (((x)&0x7F)<<0x8)
46
#define MCF_QSPI_QDLYR_SPE                   (0x8000)
47
 
48
/* Bit definitions and macros for MCF_QSPI_QWR */
49
#define MCF_QSPI_QWR_NEWQP(x)                (((x)&0xF)<<0)
50
#define MCF_QSPI_QWR_CPTQP(x)                (((x)&0xF)<<0x4)
51
#define MCF_QSPI_QWR_ENDQP(x)                (((x)&0xF)<<0x8)
52
#define MCF_QSPI_QWR_CSIV                    (0x1000)
53
#define MCF_QSPI_QWR_WRTO                    (0x2000)
54
#define MCF_QSPI_QWR_WREN                    (0x4000)
55
#define MCF_QSPI_QWR_HALT                    (0x8000)
56
 
57
/* Bit definitions and macros for MCF_QSPI_QIR */
58
#define MCF_QSPI_QIR_SPIF                    (0x1)
59
#define MCF_QSPI_QIR_ABRT                    (0x4)
60
#define MCF_QSPI_QIR_WCEF                    (0x8)
61
#define MCF_QSPI_QIR_SPIFE                   (0x100)
62
#define MCF_QSPI_QIR_ABRTE                   (0x400)
63
#define MCF_QSPI_QIR_WCEFE                   (0x800)
64
#define MCF_QSPI_QIR_ABRTL                   (0x1000)
65
#define MCF_QSPI_QIR_ABRTB                   (0x4000)
66
#define MCF_QSPI_QIR_WCEFB                   (0x8000)
67
 
68
/* Bit definitions and macros for MCF_QSPI_QAR */
69
#define MCF_QSPI_QAR_ADDR(x)                 (((x)&0x3F)<<0)
70
#define MCF_QSPI_QAR_TRANS                   (0)
71
#define MCF_QSPI_QAR_RECV                    (0x10)
72
#define MCF_QSPI_QAR_CMD                     (0x20)
73
 
74
/* Bit definitions and macros for MCF_QSPI_QDR */
75
#define MCF_QSPI_QDR_DATA(x)                 (((x)&0xFFFF)<<0)
76
#define MCF_QSPI_QDR_CONT                    (0x8000)
77
#define MCF_QSPI_QDR_BITSE                   (0x4000)
78
#define MCF_QSPI_QDR_DT                      (0x2000)
79
#define MCF_QSPI_QDR_DSCK                    (0x1000)
80
#define MCF_QSPI_QDR_QSPI_CS3                (0x800)
81
#define MCF_QSPI_QDR_QSPI_CS2                (0x400)
82
#define MCF_QSPI_QDR_QSPI_CS1                (0x200)
83
#define MCF_QSPI_QDR_QSPI_CS0                (0x100)
84
 
85
 
86
#endif /* __MCF52221_QSPI_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.