rom_patch.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. //*****************************************************************************
  2. //
  3. // rom_patch.h
  4. //
  5. // Macros to facilitate patching driverlib API's in the ROM.
  6. //
  7. // Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
  8. //
  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. //*****************************************************************************
  39. //*****************************************************************************
  40. //
  41. // List of API's in the ROM that need to be patched.
  42. // For e.g. to patch ROM_UARTCharPut add the line #undef ROM_UARTCharPut
  43. //*****************************************************************************
  44. #undef ROM_ADCIntClear
  45. #undef ROM_IntEnable
  46. #undef ROM_IntDisable
  47. #undef ROM_IntPendSet
  48. #undef ROM_SDHostCardErrorMaskSet
  49. #undef ROM_SDHostCardErrorMaskGet
  50. #undef ROM_TimerConfigure
  51. #undef ROM_TimerDMAEventSet
  52. #undef ROM_TimerDMAEventGet
  53. #undef ROM_SDHostDataNonBlockingWrite
  54. #undef ROM_SDHostDataWrite
  55. #undef ROM_SDHostDataRead
  56. #undef ROM_SDHostDataNonBlockingRead
  57. #undef ROM_PRCMSysResetCauseGet
  58. #undef ROM_PRCMPeripheralClkEnable
  59. #undef ROM_PRCMLPDSWakeUpGPIOSelect
  60. #undef ROM_PRCMHibernateWakeupSourceEnable
  61. #undef ROM_PRCMHibernateWakeupSourceDisable
  62. #undef ROM_PRCMHibernateWakeupCauseGet
  63. #undef ROM_PRCMHibernateIntervalSet
  64. #undef ROM_PRCMHibernateWakeUpGPIOSelect
  65. #undef ROM_PRCMHibernateEnter
  66. #undef ROM_PRCMSlowClkCtrGet
  67. #undef ROM_PRCMSlowClkCtrMatchSet
  68. #undef ROM_PRCMSlowClkCtrMatchGet
  69. #undef ROM_PRCMOCRRegisterWrite
  70. #undef ROM_PRCMOCRRegisterRead
  71. #undef ROM_PRCMIntEnable
  72. #undef ROM_PRCMIntDisable
  73. #undef ROM_PRCMRTCInUseSet
  74. #undef ROM_PRCMRTCInUseGet
  75. #undef ROM_PRCMRTCSet
  76. #undef ROM_PRCMRTCGet
  77. #undef ROM_PRCMRTCMatchSet
  78. #undef ROM_PRCMRTCMatchGet
  79. #undef ROM_PRCMPeripheralClkDisable
  80. #undef ROM_PRCMPeripheralReset
  81. #undef ROM_PRCMPeripheralStatusGet
  82. #undef ROM_SPIConfigSetExpClk
  83. #undef ROM_GPIODirModeGet
  84. #undef ROM_GPIOIntTypeGet
  85. #undef ROM_I2CMasterInitExpClk
  86. #undef ROM_AESDataProcess
  87. #undef ROM_DESDataProcess
  88. #undef ROM_I2SEnable
  89. #undef ROM_I2SConfigSetExpClk
  90. #undef ROM_PinConfigSet
  91. #undef ROM_PRCMLPDSEnter
  92. #undef ROM_PRCMCC3200MCUInit
  93. #undef ROM_SDHostIntStatus
  94. #undef ROM_SDHostBlockCountSet
  95. #undef ROM_UARTModemControlSet
  96. #undef ROM_UARTModemControlClear