📄 lm3s9b96.h
字号:
//*****************************************************************************
//
// lm3s9b96.h - LM3S9B96 Register Definitions
//
// Copyright (c) 2009 Luminary Micro, Inc. All rights reserved.
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws. All rights are reserved. You may not combine
// this software with "viral" open-source software in order to form a larger
// program. Any use in violation of the foregoing restrictions may subject
// the user to criminal sanctions under applicable laws, as well as to civil
// liability for the breach of the terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 5228 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
#ifndef __LM3S9B96_H__
#define __LM3S9B96_H__
//*****************************************************************************
//
// Watchdog Timers (WATCHDOG0)
//
//*****************************************************************************
#define WATCHDOG0_LOAD_R (*((volatile unsigned long *)0x40000000))
#define WATCHDOG0_VALUE_R (*((volatile unsigned long *)0x40000004))
#define WATCHDOG0_CTL_R (*((volatile unsigned long *)0x40000008))
#define WATCHDOG0_ICR_R (*((volatile unsigned long *)0x4000000C))
#define WATCHDOG0_RIS_R (*((volatile unsigned long *)0x40000010))
#define WATCHDOG0_MIS_R (*((volatile unsigned long *)0x40000014))
#define WATCHDOG0_TEST_R (*((volatile unsigned long *)0x40000418))
#define WATCHDOG0_LOCK_R (*((volatile unsigned long *)0x40000C00))
//*****************************************************************************
//
// Watchdog Timers (WATCHDOG1)
//
//*****************************************************************************
#define WATCHDOG1_LOAD_R (*((volatile unsigned long *)0x40001000))
#define WATCHDOG1_VALUE_R (*((volatile unsigned long *)0x40001004))
#define WATCHDOG1_CTL_R (*((volatile unsigned long *)0x40001008))
#define WATCHDOG1_ICR_R (*((volatile unsigned long *)0x4000100C))
#define WATCHDOG1_RIS_R (*((volatile unsigned long *)0x40001010))
#define WATCHDOG1_MIS_R (*((volatile unsigned long *)0x40001014))
#define WATCHDOG1_TEST_R (*((volatile unsigned long *)0x40001418))
#define WATCHDOG1_LOCK_R (*((volatile unsigned long *)0x40001C00))
//*****************************************************************************
//
// General-Purpose Input/Outputs (PORTA)
//
//*****************************************************************************
#define GPIO_PORTA_DATA_BITS_R ((volatile unsigned long *)0x40004000)
#define GPIO_PORTA_DATA_R (*((volatile unsigned long *)0x400043FC))
#define GPIO_PORTA_DIR_R (*((volatile unsigned long *)0x40004400))
#define GPIO_PORTA_IS_R (*((volatile unsigned long *)0x40004404))
#define GPIO_PORTA_IBE_R (*((volatile unsigned long *)0x40004408))
#define GPIO_PORTA_IEV_R (*((volatile unsigned long *)0x4000440C))
#define GPIO_PORTA_IM_R (*((volatile unsigned long *)0x40004410))
#define GPIO_PORTA_RIS_R (*((volatile unsigned long *)0x40004414))
#define GPIO_PORTA_MIS_R (*((volatile unsigned long *)0x40004418))
#define GPIO_PORTA_ICR_R (*((volatile unsigned long *)0x4000441C))
#define GPIO_PORTA_AFSEL_R (*((volatile unsigned long *)0x40004420))
#define GPIO_PORTA_DR2R_R (*((volatile unsigned long *)0x40004500))
#define GPIO_PORTA_DR4R_R (*((volatile unsigned long *)0x40004504))
#define GPIO_PORTA_DR8R_R (*((volatile unsigned long *)0x40004508))
#define GPIO_PORTA_ODR_R (*((volatile unsigned long *)0x4000450C))
#define GPIO_PORTA_PUR_R (*((volatile unsigned long *)0x40004510))
#define GPIO_PORTA_PDR_R (*((volatile unsigned long *)0x40004514))
#define GPIO_PORTA_SLR_R (*((volatile unsigned long *)0x40004518))
#define GPIO_PORTA_DEN_R (*((volatile unsigned long *)0x4000451C))
#define GPIO_PORTA_LOCK_R (*((volatile unsigned long *)0x40004520))
#define GPIO_PORTA_CR_R (*((volatile unsigned long *)0x40004524))
#define GPIO_PORTA_AMSEL_R (*((volatile unsigned long *)0x40004528))
#define GPIO_PORTA_PCTL_R (*((volatile unsigned long *)0x4000452C))
//*****************************************************************************
//
// General-Purpose Input/Outputs (PORTB)
//
//*****************************************************************************
#define GPIO_PORTB_DATA_BITS_R ((volatile unsigned long *)0x40005000)
#define GPIO_PORTB_DATA_R (*((volatile unsigned long *)0x400053FC))
#define GPIO_PORTB_DIR_R (*((volatile unsigned long *)0x40005400))
#define GPIO_PORTB_IS_R (*((volatile unsigned long *)0x40005404))
#define GPIO_PORTB_IBE_R (*((volatile unsigned long *)0x40005408))
#define GPIO_PORTB_IEV_R (*((volatile unsigned long *)0x4000540C))
#define GPIO_PORTB_IM_R (*((volatile unsigned long *)0x40005410))
#define GPIO_PORTB_RIS_R (*((volatile unsigned long *)0x40005414))
#define GPIO_PORTB_MIS_R (*((volatile unsigned long *)0x40005418))
#define GPIO_PORTB_ICR_R (*((volatile unsigned long *)0x4000541C))
#define GPIO_PORTB_AFSEL_R (*((volatile unsigned long *)0x40005420))
#define GPIO_PORTB_DR2R_R (*((volatile unsigned long *)0x40005500))
#define GPIO_PORTB_DR4R_R (*((volatile unsigned long *)0x40005504))
#define GPIO_PORTB_DR8R_R (*((volatile unsigned long *)0x40005508))
#define GPIO_PORTB_ODR_R (*((volatile unsigned long *)0x4000550C))
#define GPIO_PORTB_PUR_R (*((volatile unsigned long *)0x40005510))
#define GPIO_PORTB_PDR_R (*((volatile unsigned long *)0x40005514))
#define GPIO_PORTB_SLR_R (*((volatile unsigned long *)0x40005518))
#define GPIO_PORTB_DEN_R (*((volatile unsigned long *)0x4000551C))
#define GPIO_PORTB_LOCK_R (*((volatile unsigned long *)0x40005520))
#define GPIO_PORTB_CR_R (*((volatile unsigned long *)0x40005524))
#define GPIO_PORTB_AMSEL_R (*((volatile unsigned long *)0x40005528))
#define GPIO_PORTB_PCTL_R (*((volatile unsigned long *)0x4000552C))
//*****************************************************************************
//
// General-Purpose Input/Outputs (PORTC)
//
//*****************************************************************************
#define GPIO_PORTC_DATA_BITS_R ((volatile unsigned long *)0x40006000)
#define GPIO_PORTC_DATA_R (*((volatile unsigned long *)0x400063FC))
#define GPIO_PORTC_DIR_R (*((volatile unsigned long *)0x40006400))
#define GPIO_PORTC_IS_R (*((volatile unsigned long *)0x40006404))
#define GPIO_PORTC_IBE_R (*((volatile unsigned long *)0x40006408))
#define GPIO_PORTC_IEV_R (*((volatile unsigned long *)0x4000640C))
#define GPIO_PORTC_IM_R (*((volatile unsigned long *)0x40006410))
#define GPIO_PORTC_RIS_R (*((volatile unsigned long *)0x40006414))
#define GPIO_PORTC_MIS_R (*((volatile unsigned long *)0x40006418))
#define GPIO_PORTC_ICR_R (*((volatile unsigned long *)0x4000641C))
#define GPIO_PORTC_AFSEL_R (*((volatile unsigned long *)0x40006420))
#define GPIO_PORTC_DR2R_R (*((volatile unsigned long *)0x40006500))
#define GPIO_PORTC_DR4R_R (*((volatile unsigned long *)0x40006504))
#define GPIO_PORTC_DR8R_R (*((volatile unsigned long *)0x40006508))
#define GPIO_PORTC_ODR_R (*((volatile unsigned long *)0x4000650C))
#define GPIO_PORTC_PUR_R (*((volatile unsigned long *)0x40006510))
#define GPIO_PORTC_PDR_R (*((volatile unsigned long *)0x40006514))
#define GPIO_PORTC_SLR_R (*((volatile unsigned long *)0x40006518))
#define GPIO_PORTC_DEN_R (*((volatile unsigned long *)0x4000651C))
#define GPIO_PORTC_LOCK_R (*((volatile unsigned long *)0x40006520))
#define GPIO_PORTC_CR_R (*((volatile unsigned long *)0x40006524))
#define GPIO_PORTC_AMSEL_R (*((volatile unsigned long *)0x40006528))
#define GPIO_PORTC_PCTL_R (*((volatile unsigned long *)0x4000652C))
//*****************************************************************************
//
// General-Purpose Input/Outputs (PORTD)
//
//*****************************************************************************
#define GPIO_PORTD_DATA_BITS_R ((volatile unsigned long *)0x40007000)
#define GPIO_PORTD_DATA_R (*((volatile unsigned long *)0x400073FC))
#define GPIO_PORTD_DIR_R (*((volatile unsigned long *)0x40007400))
#define GPIO_PORTD_IS_R (*((volatile unsigned long *)0x40007404))
#define GPIO_PORTD_IBE_R (*((volatile unsigned long *)0x40007408))
#define GPIO_PORTD_IEV_R (*((volatile unsigned long *)0x4000740C))
#define GPIO_PORTD_IM_R (*((volatile unsigned long *)0x40007410))
#define GPIO_PORTD_RIS_R (*((volatile unsigned long *)0x40007414))
#define GPIO_PORTD_MIS_R (*((volatile unsigned long *)0x40007418))
#define GPIO_PORTD_ICR_R (*((volatile unsigned long *)0x4000741C))
#define GPIO_PORTD_AFSEL_R (*((volatile unsigned long *)0x40007420))
#define GPIO_PORTD_DR2R_R (*((volatile unsigned long *)0x40007500))
#define GPIO_PORTD_DR4R_R (*((volatile unsigned long *)0x40007504))
#define GPIO_PORTD_DR8R_R (*((volatile unsigned long *)0x40007508))
#define GPIO_PORTD_ODR_R (*((volatile unsigned long *)0x4000750C))
#define GPIO_PORTD_PUR_R (*((volatile unsigned long *)0x40007510))
#define GPIO_PORTD_PDR_R (*((volatile unsigned long *)0x40007514))
#define GPIO_PORTD_SLR_R (*((volatile unsigned long *)0x40007518))
#define GPIO_PORTD_DEN_R (*((volatile unsigned long *)0x4000751C))
#define GPIO_PORTD_LOCK_R (*((volatile unsigned long *)0x40007520))
#define GPIO_PORTD_CR_R (*((volatile unsigned long *)0x40007524))
#define GPIO_PORTD_AMSEL_R (*((volatile unsigned long *)0x40007528))
#define GPIO_PORTD_PCTL_R (*((volatile unsigned long *)0x4000752C))
//*****************************************************************************
//
// Synchronous Serial Interface (SSI0)
//
//*****************************************************************************
#define SSI0_CR0_R (*((volatile unsigned long *)0x40008000))
#define SSI0_CR1_R (*((volatile unsigned long *)0x40008004))
#define SSI0_DR_R (*((volatile unsigned long *)0x40008008))
#define SSI0_SR_R (*((volatile unsigned long *)0x4000800C))
#define SSI0_CPSR_R (*((volatile unsigned long *)0x40008010))
#define SSI0_IM_R (*((volatile unsigned long *)0x40008014))
#define SSI0_RIS_R (*((volatile unsigned long *)0x40008018))
#define SSI0_MIS_R (*((volatile unsigned long *)0x4000801C))
#define SSI0_ICR_R (*((volatile unsigned long *)0x40008020))
#define SSI0_DMACTL_R (*((volatile unsigned long *)0x40008024))
//*****************************************************************************
//
// Synchronous Serial Interface (SSI1)
//
//*****************************************************************************
#define SSI1_CR0_R (*((volatile unsigned long *)0x40009000))
#define SSI1_CR1_R (*((volatile unsigned long *)0x40009004))
#define SSI1_DR_R (*((volatile unsigned long *)0x40009008))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -