1 /*
2  *  Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
3  *
4  *  Redistribution and use in source and binary forms, with or without
5  *  modification, are permitted provided that the following conditions
6  *  are met:
7  *
8  *    Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  *
11  *    Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the
14  *    distribution.
15  *
16  *    Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
33 //*****************************************************************************
34 //
35 //  rom_patch.h - Macros to facilitate patching driverlib API's in the ROM.
36 //
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 
45 #ifndef __ROM_PATCH_H__
46 #define __ROM_PATCH_H__
47 
48 #if defined(TARGET_IS_CC3200) || defined(USE_CC3200_ROM_DRV_API)
49 #undef ROM_ADCIntClear
50 #undef ROM_IntEnable
51 #undef ROM_IntDisable
52 #undef ROM_IntPendSet
53 #undef ROM_SDHostCardErrorMaskSet
54 #undef ROM_SDHostCardErrorMaskGet
55 #undef ROM_TimerConfigure
56 #undef ROM_TimerDMAEventSet
57 #undef ROM_TimerDMAEventGet
58 #undef ROM_SDHostDataNonBlockingWrite
59 #undef ROM_SDHostDataWrite
60 #undef ROM_SDHostDataRead
61 #undef ROM_SDHostDataNonBlockingRead
62 #undef ROM_PRCMSysResetCauseGet
63 #undef ROM_PRCMPeripheralClkEnable
64 #undef ROM_PRCMLPDSWakeUpGPIOSelect
65 #undef ROM_PRCMHibernateWakeupSourceEnable
66 #undef ROM_PRCMHibernateWakeupSourceDisable
67 #undef ROM_PRCMHibernateWakeupCauseGet
68 #undef ROM_PRCMHibernateIntervalSet
69 #undef ROM_PRCMHibernateWakeUpGPIOSelect
70 #undef ROM_PRCMHibernateEnter
71 #undef ROM_PRCMSlowClkCtrGet
72 #undef ROM_PRCMSlowClkCtrMatchSet
73 #undef ROM_PRCMSlowClkCtrMatchGet
74 #undef ROM_PRCMOCRRegisterWrite
75 #undef ROM_PRCMOCRRegisterRead
76 #undef ROM_PRCMIntEnable
77 #undef ROM_PRCMIntDisable
78 #undef ROM_PRCMRTCInUseSet
79 #undef ROM_PRCMRTCInUseGet
80 #undef ROM_PRCMRTCSet
81 #undef ROM_PRCMRTCGet
82 #undef ROM_PRCMRTCMatchSet
83 #undef ROM_PRCMRTCMatchGet
84 #undef ROM_PRCMPeripheralClkDisable
85 #undef ROM_PRCMPeripheralReset
86 #undef ROM_PRCMPeripheralStatusGet
87 #undef ROM_SPIConfigSetExpClk
88 #undef ROM_AESDataProcess
89 #undef ROM_DESDataProcess
90 #undef ROM_I2SEnable
91 #undef ROM_I2SConfigSetExpClk
92 #undef ROM_PinConfigSet
93 #undef ROM_PRCMLPDSEnter
94 #undef ROM_PRCMCC3200MCUInit
95 #undef ROM_SDHostIntStatus
96 #undef ROM_SDHostBlockCountSet
97 #undef ROM_UARTModemControlSet
98 #undef ROM_UARTModemControlClear
99 #undef ROM_CameraXClkSet
100 #undef ROM_PRCMMCUReset
101 #undef ROM_PRCMPeripheralClkEnable
102 #undef ROM_SPIDmaDisable
103 #undef ROM_PRCMPeripheralClockGet
104 #endif
105 
106 #if defined(USE_CC3220_ROM_DRV_API)
107 #undef ROM_PRCMDeviceTypeGet
108 #undef ROM_SDHostDataNonBlockingRead
109 #undef ROM_PRCMIORetentionEnable
110 #undef ROM_PRCMIORetentionDisable
111 #undef ROM_PRCMPeripheralClockGet
112 #undef ROM_PRCMCC3200MCUInit
113 #undef ROM_SHAMD5ConfigSet
114 #undef ROM_SHAMD5HMACKeySet
115 #undef ROM_PinConfigSet
116 #undef ROM_PinModeSet
117 #endif
118 
119 #endif // __ROM_PATCH_H__
120