hw_memmap.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //###########################################################################
  2. //
  3. // FILE: hw_memmap.h
  4. //
  5. // TITLE: Macros defining the memory map of the C28x.
  6. //
  7. //###########################################################################
  8. // $TI Release: F2837xD Support Library v3.05.00.00 $
  9. // $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
  10. // $Copyright:
  11. // Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
  12. //
  13. // Redistribution and use in source and binary forms, with or without
  14. // modification, are permitted provided that the following conditions
  15. // are met:
  16. //
  17. // Redistributions of source code must retain the above copyright
  18. // notice, this list of conditions and the following disclaimer.
  19. //
  20. // Redistributions in binary form must reproduce the above copyright
  21. // notice, this list of conditions and the following disclaimer in the
  22. // documentation and/or other materials provided with the
  23. // distribution.
  24. //
  25. // Neither the name of Texas Instruments Incorporated nor the names of
  26. // its contributors may be used to endorse or promote products derived
  27. // from this software without specific prior written permission.
  28. //
  29. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  30. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  31. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  32. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  33. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  34. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  35. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  36. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  37. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  38. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  39. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. // $
  41. //###########################################################################
  42. #ifndef __HW_MEMMAP_H__
  43. #define __HW_MEMMAP_H__
  44. //*****************************************************************************
  45. //
  46. // The following are defines for the base address of the memories and
  47. // peripherals.
  48. //
  49. //*****************************************************************************
  50. #define USB0_BASE 0x00040000 // USB 0 Controller
  51. #define ADCA_RESULT_BASE 0x00000B00 // ADC-A Result
  52. #define ADCB_RESULT_BASE 0x00000B20 // ADC-B Result
  53. #define ADCC_RESULT_BASE 0x00000B40 // ADC-C Result
  54. #define ADCD_RESULT_BASE 0x00000B60 // ADC-D Result
  55. #define ADCA_BASE 0x00007400 // ADC-A
  56. #define ADCB_BASE 0x00007480 // ADC-B
  57. #define ADCC_BASE 0x00007500 // ADC-C
  58. #define ADCD_BASE 0x00007580 // ADC-D
  59. #define CMPSS1_BASE 0x00005C80 // CMPSS-1
  60. #define CMPSS2_BASE 0x00005CA0 // CMPSS-2
  61. #define CMPSS3_BASE 0x00005CC0 // CMPSS-3
  62. #define CMPSS4_BASE 0x00005CE0 // CMPSS-4
  63. #define CMPSS5_BASE 0x00005D00 // CMPSS-5
  64. #define CMPSS6_BASE 0x00005D20 // CMPSS-6
  65. #define CMPSS7_BASE 0x00005D40 // CMPSS-7
  66. #define CMPSS8_BASE 0x00005D60 // CMPSS-8
  67. #define I2CA_BASE 0x00007300 // I2C-A
  68. #define I2CB_BASE 0x00007340 // I2C-B
  69. #define UARTA_BASE 0x00007200 // SCI-A
  70. #define UARTB_BASE 0x00007210 // SCI-B
  71. #define UARTC_BASE 0x00007220 // SCI-C
  72. #define UARTD_BASE 0x00007230 // SCI-D
  73. #define EQEP1_BASE 0x00005100 // Enhanced EQEP-1
  74. #define EQEP2_BASE 0x00005140 // Enhanced EQEP-2
  75. #define EQEP3_BASE 0x00005180 // Enhanced EQEP-3
  76. #define SPIA_BASE 0x00006100 // SPI-A
  77. #define SPIB_BASE 0x00006110 // SPI-B
  78. #define SPIC_BASE 0x00006120 // SPI-C
  79. #define CANA_BASE 0x00048000 // CAN-A
  80. #define CANB_BASE 0x0004A000 // CAN-B
  81. #define CANA_MSG_RAM 0x00049000
  82. #define CANB_MSG_RAM 0x0004B000
  83. #endif // __HW_MEMMAP_H__