collab/mm20
git clone https://git.julia.blue/collab/mm20
a795158
firmware
1#include <stdbool.h> 2#include <stdint.h> 3//***************************************************************************** 4// 5// hw_memmap.h - Macros defining the memory map of the device. 6// 7// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved. 8// Software License Agreement 9// 10// Redistribution and use in source and binary forms, with or without 11// modification, are permitted provided that the following conditions 12// are met: 13// 14// Redistributions of source code must retain the above copyright 15// notice, this list of conditions and the following disclaimer. 16// 17// Redistributions in binary form must reproduce the above copyright 18// notice, this list of conditions and the following disclaimer in the 19// documentation and/or other materials provided with the 20// distribution. 21// 22// Neither the name of Texas Instruments Incorporated nor the names of 23// its contributors may be used to endorse or promote products derived 24// from this software without specific prior written permission. 25// 26// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 28// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 29// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 30// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 32// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 33// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37// 38// This is part of revision 2.1.4.178 of the Tiva Firmware Development Package. 39// 40//***************************************************************************** 41 42#ifndef __HW_MEMMAP_H__ 43#define __HW_MEMMAP_H__ 44 45//***************************************************************************** 46// 47// The following are defines for the base address of the memories and 48// peripherals. 49// 50//***************************************************************************** 51#define FLASH_BASE 0x00000000 // FLASH memory 52#define SRAM_BASE 0x20000000 // SRAM memory 53#define WATCHDOG0_BASE 0x40000000 // Watchdog0 54#define WATCHDOG1_BASE 0x40001000 // Watchdog1 55#define GPIO_PORTA_BASE 0x40004000 // GPIO Port A 56#define GPIO_PORTB_BASE 0x40005000 // GPIO Port B 57#define GPIO_PORTC_BASE 0x40006000 // GPIO Port C 58#define GPIO_PORTD_BASE 0x40007000 // GPIO Port D 59#define SSI0_BASE 0x40008000 // SSI0 60#define SSI1_BASE 0x40009000 // SSI1 61#define SSI2_BASE 0x4000A000 // SSI2 62#define SSI3_BASE 0x4000B000 // SSI3 63#define UART0_BASE 0x4000C000 // UART0 64#define UART1_BASE 0x4000D000 // UART1 65#define UART2_BASE 0x4000E000 // UART2 66#define UART3_BASE 0x4000F000 // UART3 67#define UART4_BASE 0x40010000 // UART4 68#define UART5_BASE 0x40011000 // UART5 69#define UART6_BASE 0x40012000 // UART6 70#define UART7_BASE 0x40013000 // UART7 71#define I2C0_BASE 0x40020000 // I2C0 72#define I2C1_BASE 0x40021000 // I2C1 73#define I2C2_BASE 0x40022000 // I2C2 74#define I2C3_BASE 0x40023000 // I2C3 75#define GPIO_PORTE_BASE 0x40024000 // GPIO Port E 76#define GPIO_PORTF_BASE 0x40025000 // GPIO Port F 77#define GPIO_PORTG_BASE 0x40026000 // GPIO Port G 78#define GPIO_PORTH_BASE 0x40027000 // GPIO Port H 79#define PWM0_BASE 0x40028000 // Pulse Width Modulator (PWM) 80#define PWM1_BASE 0x40029000 // Pulse Width Modulator (PWM) 81#define QEI0_BASE 0x4002C000 // QEI0 82#define QEI1_BASE 0x4002D000 // QEI1 83#define TIMER0_BASE 0x40030000 // Timer0 84#define TIMER1_BASE 0x40031000 // Timer1 85#define TIMER2_BASE 0x40032000 // Timer2 86#define TIMER3_BASE 0x40033000 // Timer3 87#define TIMER4_BASE 0x40034000 // Timer4 88#define TIMER5_BASE 0x40035000 // Timer5 89#define WTIMER0_BASE 0x40036000 // Wide Timer0 90#define WTIMER1_BASE 0x40037000 // Wide Timer1 91#define ADC0_BASE 0x40038000 // ADC0 92#define ADC1_BASE 0x40039000 // ADC1 93#define COMP_BASE 0x4003C000 // Analog comparators 94#define GPIO_PORTJ_BASE 0x4003D000 // GPIO Port J 95#define CAN0_BASE 0x40040000 // CAN0 96#define CAN1_BASE 0x40041000 // CAN1 97#define WTIMER2_BASE 0x4004C000 // Wide Timer2 98#define WTIMER3_BASE 0x4004D000 // Wide Timer3 99#define WTIMER4_BASE 0x4004E000 // Wide Timer4 100#define WTIMER5_BASE 0x4004F000 // Wide Timer5 101#define USB0_BASE 0x40050000 // USB 0 Controller 102#define GPIO_PORTA_AHB_BASE 0x40058000 // GPIO Port A (high speed) 103#define GPIO_PORTB_AHB_BASE 0x40059000 // GPIO Port B (high speed) 104#define GPIO_PORTC_AHB_BASE 0x4005A000 // GPIO Port C (high speed) 105#define GPIO_PORTD_AHB_BASE 0x4005B000 // GPIO Port D (high speed) 106#define GPIO_PORTE_AHB_BASE 0x4005C000 // GPIO Port E (high speed) 107#define GPIO_PORTF_AHB_BASE 0x4005D000 // GPIO Port F (high speed) 108#define GPIO_PORTG_AHB_BASE 0x4005E000 // GPIO Port G (high speed) 109#define GPIO_PORTH_AHB_BASE 0x4005F000 // GPIO Port H (high speed) 110#define GPIO_PORTJ_AHB_BASE 0x40060000 // GPIO Port J (high speed) 111#define GPIO_PORTK_BASE 0x40061000 // GPIO Port K 112#define GPIO_PORTL_BASE 0x40062000 // GPIO Port L 113#define GPIO_PORTM_BASE 0x40063000 // GPIO Port M 114#define GPIO_PORTN_BASE 0x40064000 // GPIO Port N 115#define GPIO_PORTP_BASE 0x40065000 // GPIO Port P 116#define GPIO_PORTQ_BASE 0x40066000 // GPIO Port Q 117#define GPIO_PORTR_BASE 0x40067000 // General-Purpose Input/Outputs 118// (GPIOs) 119#define GPIO_PORTS_BASE 0x40068000 // General-Purpose Input/Outputs 120// (GPIOs) 121#define GPIO_PORTT_BASE 0x40069000 // General-Purpose Input/Outputs 122// (GPIOs) 123#define EEPROM_BASE 0x400AF000 // EEPROM memory 124#define ONEWIRE0_BASE 0x400B6000 // 1-Wire Master Module 125#define I2C8_BASE 0x400B8000 // I2C8 126#define I2C9_BASE 0x400B9000 // I2C9 127#define I2C4_BASE 0x400C0000 // I2C4 128#define I2C5_BASE 0x400C1000 // I2C5 129#define I2C6_BASE 0x400C2000 // I2C6 130#define I2C7_BASE 0x400C3000 // I2C7 131#define EPI0_BASE 0x400D0000 // EPI0 132#define TIMER6_BASE 0x400E0000 // General-Purpose Timers 133#define TIMER7_BASE 0x400E1000 // General-Purpose Timers 134#define EMAC0_BASE 0x400EC000 // Ethernet Controller 135#define SYSEXC_BASE 0x400F9000 // System Exception Module 136#define HIB_BASE 0x400FC000 // Hibernation Module 137#define FLASH_CTRL_BASE 0x400FD000 // FLASH Controller 138#define SYSCTL_BASE 0x400FE000 // System Control 139#define UDMA_BASE 0x400FF000 // uDMA Controller 140#define CCM0_BASE 0x44030000 // Cyclical Redundancy Check (CRC) 141#define SHAMD5_BASE 0x44034000 // SHA/MD5 Accelerator 142#define AES_BASE 0x44036000 // Advance Encryption 143// Hardware-Accelerated Module 144#define DES_BASE 0x44038000 // Data Encryption Standard 145// Accelerator (DES) 146#define LCD0_BASE 0x44050000 // LCD Controller 147#define ITM_BASE 0xE0000000 // Instrumentation Trace Macrocell 148#define DWT_BASE 0xE0001000 // Data Watchpoint and Trace 149#define FPB_BASE 0xE0002000 // FLASH Patch and Breakpoint 150#define NVIC_BASE 0xE000E000 // Nested Vectored Interrupt Ctrl 151#define TPIU_BASE 0xE0040000 // Trace Port Interface Unit 152 153#endif // __HW_MEMMAP_H__