CC3200 Peripheral Driver Library User's Guide  1.2.0
rom_patch.h
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 - https://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 //
42 // List of API's in the ROM that need to be patched.
43 // For e.g. to patch ROM_UARTCharPut add the line #undef ROM_UARTCharPut
44 //*****************************************************************************
45 #undef ROM_ADCIntClear
46 #undef ROM_IntEnable
47 #undef ROM_IntDisable
48 #undef ROM_IntPendSet
49 #undef ROM_PRCMHibernateWakeUpGPIOSelect
50 #undef ROM_SDHostCardErrorMaskSet
51 #undef ROM_SDHostCardErrorMaskGet
52 #undef ROM_TimerConfigure
53 #undef ROM_TimerDMAEventSet
54 #undef ROM_TimerDMAEventGet
55 #undef ROM_SDHostDataNonBlockingWrite
56 #undef ROM_SDHostDataWrite
57 #undef ROM_SDHostDataRead
58 #undef ROM_SDHostDataNonBlockingRead
59 #undef ROM_PRCMSysResetCauseGet
60 #undef ROM_PRCMPeripheralClkEnable
61 #undef ROM_PRCMLPDSWakeUpGPIOSelect
62 #undef ROM_PRCMHibernateWakeupSourceEnable
63 #undef ROM_PRCMHibernateWakeupSourceDisable
64 #undef ROM_PRCMHibernateWakeupCauseGet
65 #undef ROM_PRCMHibernateIntervalSet
66 #undef ROM_PRCMHibernateWakeUpGPIOSelect
67 #undef ROM_PRCMHibernateEnter
68 #undef ROM_PRCMSlowClkCtrGet
69 #undef ROM_PRCMSlowClkCtrMatchSet
70 #undef ROM_PRCMSlowClkCtrMatchGet
71 #undef ROM_PRCMOCRRegisterWrite
72 #undef ROM_PRCMOCRRegisterRead
73 #undef ROM_PRCMIntEnable
74 #undef ROM_PRCMIntDisable
75 #undef ROM_PRCMRTCInUseSet
76 #undef ROM_PRCMRTCInUseGet
77 #undef ROM_PRCMRTCSet
78 #undef ROM_PRCMRTCGet
79 #undef ROM_PRCMRTCMatchSet
80 #undef ROM_PRCMRTCMatchGet
81 #undef ROM_PRCMPeripheralClkDisable
82 #undef ROM_PRCMPeripheralReset
83 #undef ROM_PRCMPeripheralStatusGet
84 #undef ROM_SPIConfigSetExpClk
85 #undef ROM_AESDataProcess
86 #undef ROM_DESDataProcess
87 #undef ROM_I2SEnable
88 #undef ROM_I2SConfigSetExpClk
89 #undef ROM_PinConfigSet
90 #undef ROM_PRCMLPDSEnter
91 #undef ROM_PRCMCC3200MCUInit
92 #undef ROM_SDHostIntStatus
93 #undef ROM_SDHostBlockCountSet
94 #undef ROM_UARTModemControlSet
95 #undef ROM_UARTModemControlClear
96 #undef ROM_CameraXClkSet
97 #undef ROM_PRCMMCUReset
98 #undef ROM_SPIDmaDisable
99 #undef ROM_PRCMSRAMRetentionEnable
100 #undef ROM_PRCMSRAMRetentionDisable
101 #undef ROM_PRCMDeepSleepEnter