Line 1... |
Line 1... |
|
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Filename: dev.i
|
|
//
|
|
// Project: XuLA2 board
|
|
//
|
|
// Purpose: Defines where the various registers are on the board by name,
|
|
// so that henceforth they can be referenced by name.
|
|
//
|
|
//
|
|
// Creator: Dan Gisselquist, Ph.D.
|
|
// Gisselquist Technology, LLC
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2015, Gisselquist Technology, LLC
|
|
//
|
|
// This program is free software (firmware): 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 3 of the License, or (at
|
|
// your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful, but WITHOUT
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
// for more details.
|
|
//
|
|
// License: GPL, v3, as defined and found on www.gnu.org,
|
|
// http://www.gnu.org/licenses/gpl.html
|
|
//
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
//
|
dev.base equ 0x0100
|
dev.base equ 0x0100
|
dev.version equ 2
|
dev.version equ 0x0102
|
dev.pic equ 3
|
dev.pic equ 0x0103
|
dev.buserr equ 4
|
dev.buserr equ 0x0104
|
dev.rtc.date equ 5
|
; dev.rtc.date equ 0x0105
|
dev.gpio equ 6
|
dev.gpio equ 0x0106
|
dev.uart.ctrl equ 7
|
dev.uart.ctrl equ 0x0107
|
dev.pwm equ 8
|
dev.pwm equ 0x0108
|
dev.uart.rx equ 10
|
dev.uart.rx equ 0x010a
|
dev.uart.tx equ 11
|
dev.uart.tx equ 0x010b
|
dev.qspi equ 12
|
dev.qspi equ 0x010c
|
dev.rtc.clock equ 16
|
dev.rtc.clock equ 0x0110
|
dev.rtc.timer equ 17
|
dev.rtc.timer equ 0x0111
|
dev.rtc.stopwatch equ 18
|
dev.rtc.stopwatch equ 0x0112
|
dev.rtc.alarm equ 19
|
dev.rtc.alarm equ 0x0113
|
dev.fscope equ 0x01c
|
dev.scope equ 0x0118
|
dev.ramscope equ 0x01e
|
dev.flashscope equ 0x011c
|
|
dev.cfgscope equ 0x011a
|
|
dev.ramscope equ 0x011c
|
|
dev.zipscope equ 0x011e
|
|
dev.cfg equ 0x0140
|
|
dev.cfg.cmd equ 0x0145
|
|
dev.cfg.wbstarlo equ 0x0153 // GENERAL 1, p134
|
dev.mem.base equ 0x0002000
|
dev.mem.base equ 0x0002000
|
dev.mem.last equ 0x0003fff
|
dev.mem.last equ 0x0003fff
|
dev.flash.base equ 0x0040000
|
dev.flash.base equ 0x0040000
|
dev.sdram.base equ 0x0800000
|
dev.sdram.base equ 0x0800000
|