hw_memmap.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. //*****************************************************************************
  2. //
  3. // hw_memmap.h - Macros defining the memory map of Stellaris.
  4. //
  5. // Copyright (c) 2005-2009 Luminary Micro, Inc. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Luminary Micro, Inc. (LMI) is supplying this software for use solely and
  9. // exclusively on LMI's microcontroller products.
  10. //
  11. // The software is owned by LMI and/or its suppliers, and is protected under
  12. // applicable copyright laws. All rights are reserved. You may not combine
  13. // this software with "viral" open-source software in order to form a larger
  14. // program. Any use in violation of the foregoing restrictions may subject
  15. // the user to criminal sanctions under applicable laws, as well as to civil
  16. // liability for the breach of the terms and conditions of this license.
  17. //
  18. // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
  19. // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  20. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
  21. // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
  22. // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  23. //
  24. // This is part of revision 4694 of the Stellaris Firmware Development Package.
  25. //
  26. //*****************************************************************************
  27. #ifndef __HW_MEMMAP_H__
  28. #define __HW_MEMMAP_H__
  29. //*****************************************************************************
  30. //
  31. // The following are defines for the base address of the memories and
  32. // peripherals.
  33. //
  34. //*****************************************************************************
  35. #define FLASH_BASE 0x00000000 // FLASH memory
  36. #define SRAM_BASE 0x20000000 // SRAM memory
  37. #define WATCHDOG0_BASE 0x40000000 // Watchdog0
  38. #define WATCHDOG1_BASE 0x40001000 // Watchdog1
  39. #define GPIO_PORTA_BASE 0x40004000 // GPIO Port A
  40. #define GPIO_PORTB_BASE 0x40005000 // GPIO Port B
  41. #define GPIO_PORTC_BASE 0x40006000 // GPIO Port C
  42. #define GPIO_PORTD_BASE 0x40007000 // GPIO Port D
  43. #define SSI0_BASE 0x40008000 // SSI0
  44. #define SSI1_BASE 0x40009000 // SSI1
  45. #define UART0_BASE 0x4000C000 // UART0
  46. #define UART1_BASE 0x4000D000 // UART1
  47. #define UART2_BASE 0x4000E000 // UART2
  48. #define I2C0_MASTER_BASE 0x40020000 // I2C0 Master
  49. #define I2C0_SLAVE_BASE 0x40020800 // I2C0 Slave
  50. #define I2C1_MASTER_BASE 0x40021000 // I2C1 Master
  51. #define I2C1_SLAVE_BASE 0x40021800 // I2C1 Slave
  52. #define GPIO_PORTE_BASE 0x40024000 // GPIO Port E
  53. #define GPIO_PORTF_BASE 0x40025000 // GPIO Port F
  54. #define GPIO_PORTG_BASE 0x40026000 // GPIO Port G
  55. #define GPIO_PORTH_BASE 0x40027000 // GPIO Port H
  56. #define PWM_BASE 0x40028000 // PWM
  57. #define QEI0_BASE 0x4002C000 // QEI0
  58. #define QEI1_BASE 0x4002D000 // QEI1
  59. #define TIMER0_BASE 0x40030000 // Timer0
  60. #define TIMER1_BASE 0x40031000 // Timer1
  61. #define TIMER2_BASE 0x40032000 // Timer2
  62. #define TIMER3_BASE 0x40033000 // Timer3
  63. #define ADC0_BASE 0x40038000 // ADC0
  64. #define ADC1_BASE 0x40039000 // ADC1
  65. #define COMP_BASE 0x4003C000 // Analog comparators
  66. #define GPIO_PORTJ_BASE 0x4003D000 // GPIO Port J
  67. #define CAN0_BASE 0x40040000 // CAN0
  68. #define CAN1_BASE 0x40041000 // CAN1
  69. #define CAN2_BASE 0x40042000 // CAN2
  70. #define ETH_BASE 0x40048000 // Ethernet
  71. #define MAC_BASE 0x40048000 // Ethernet
  72. #define USB0_BASE 0x40050000 // USB 0 Controller
  73. #define I2S0_BASE 0x40054000 // I2S0
  74. #define GPIO_PORTA_AHB_BASE 0x40058000 // GPIO Port A (high speed)
  75. #define GPIO_PORTB_AHB_BASE 0x40059000 // GPIO Port B (high speed)
  76. #define GPIO_PORTC_AHB_BASE 0x4005A000 // GPIO Port C (high speed)
  77. #define GPIO_PORTD_AHB_BASE 0x4005B000 // GPIO Port D (high speed)
  78. #define GPIO_PORTE_AHB_BASE 0x4005C000 // GPIO Port E (high speed)
  79. #define GPIO_PORTF_AHB_BASE 0x4005D000 // GPIO Port F (high speed)
  80. #define GPIO_PORTG_AHB_BASE 0x4005E000 // GPIO Port G (high speed)
  81. #define GPIO_PORTH_AHB_BASE 0x4005F000 // GPIO Port H (high speed)
  82. #define GPIO_PORTJ_AHB_BASE 0x40060000 // GPIO Port J (high speed)
  83. #define EPI0_BASE 0x400D0000 // EPI0
  84. #define HIB_BASE 0x400FC000 // Hibernation Module
  85. #define FLASH_CTRL_BASE 0x400FD000 // FLASH Controller
  86. #define SYSCTL_BASE 0x400FE000 // System Control
  87. #define UDMA_BASE 0x400FF000 // uDMA Controller
  88. #define ITM_BASE 0xE0000000 // Instrumentation Trace Macrocell
  89. #define DWT_BASE 0xE0001000 // Data Watchpoint and Trace
  90. #define FPB_BASE 0xE0002000 // FLASH Patch and Breakpoint
  91. #define NVIC_BASE 0xE000E000 // Nested Vectored Interrupt Ctrl
  92. #define TPIU_BASE 0xE0040000 // Trace Port Interface Unit
  93. //*****************************************************************************
  94. //
  95. // The following definitions are deprecated.
  96. //
  97. //*****************************************************************************
  98. #ifndef DEPRECATED
  99. //*****************************************************************************
  100. //
  101. // The following are deprecated defines for the base address of the memories
  102. // and peripherals.
  103. //
  104. //*****************************************************************************
  105. #define WATCHDOG_BASE 0x40000000 // Watchdog
  106. #define SSI_BASE 0x40008000 // SSI
  107. #define I2C_MASTER_BASE 0x40020000 // I2C Master
  108. #define I2C_SLAVE_BASE 0x40020800 // I2C Slave
  109. #define QEI_BASE 0x4002C000 // QEI
  110. #define ADC_BASE 0x40038000 // ADC
  111. #endif
  112. #endif // __HW_MEMMAP_H__