Contiki-NG
ti-lib-rom.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, Texas Instruments Incorporated - http://www.ti.com/
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the copyright holder nor the names of its
14  * contributors may be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21  * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28  * OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30 /*---------------------------------------------------------------------------*/
31 /**
32  * \addtogroup cc26xx-ti-lib
33  * @{
34  *
35  * \file
36  * Header file with CC13xxware/CC26xxware ROM API.
37  */
38 /*---------------------------------------------------------------------------*/
39 #ifndef TI_LIB_ROM_H_
40 #define TI_LIB_ROM_H_
41 /*---------------------------------------------------------------------------*/
42 /* rom.h */
43 #include "driverlib/rom.h"
44 
45 /* AON API */
46 #define ti_lib_rom_aon_event_mcu_wake_up_set ROM_AONEventMcuWakeUpSet
47 #define ti_lib_rom_aon_event_mcu_wake_up_get ROM_AONEventMcuWakeUpGet
48 #define ti_lib_rom_aon_event_aux_wake_up_set ROM_AONEventAuxWakeUpSet
49 #define ti_lib_rom_aon_event_aux_wake_up_get ROM_AONEventAuxWakeUpGet
50 #define ti_lib_rom_aon_event_mcu_set ROM_AONEventMcuSet
51 #define ti_lib_rom_aon_event_mcu_get ROM_AONEventMcuGet
52 
53 /* AON_WUC API */
54 #define ti_lib_rom_aon_wuc_aux_reset ROM_AONWUCAuxReset
55 #define ti_lib_rom_aon_wuc_recharge_ctrl_config_set ROM_AONWUCRechargeCtrlConfigSet
56 #define ti_lib_rom_aon_wuc_osc_config ROM_AONWUCOscConfig
57 
58 /* AUX_TDC API */
59 #define ti_lib_rom_aux_tdc_config_set ROM_AUXTDCConfigSet
60 #define ti_lib_rom_aux_tdc_measurement_done ROM_AUXTDCMeasurementDone
61 
62 /* AUX_WUC API */
63 #define ti_lib_rom_aux_wuc_clock_enable ROM_AUXWUCClockEnable
64 #define ti_lib_rom_aux_wuc_clock_disable ROM_AUXWUCClockDisable
65 #define ti_lib_rom_aux_wuc_clock_status ROM_AUXWUCClockStatus
66 #define ti_lib_rom_aux_wuc_power_ctrl ROM_AUXWUCPowerCtrl
67 
68 /* FLASH API */
69 #define ti_lib_rom_flash_power_mode_get ROM_FlashPowerModeGet
70 #define ti_lib_rom_flash_protection_set ROM_FlashProtectionSet
71 #define ti_lib_rom_flash_protection_get ROM_FlashProtectionGet
72 #define ti_lib_rom_flash_protection_save ROM_FlashProtectionSave
73 #define ti_lib_rom_flash_efuse_read_row ROM_FlashEfuseReadRow
74 #define ti_lib_rom_flash_disable_sectors_for_write ROM_FlashDisableSectorsForWrite
75 
76 /* I2C API */
77 #define ti_lib_rom_i2c_master_init_exp_clk ROM_I2CMasterInitExpClk
78 #define ti_lib_rom_i2c_master_err ROM_I2CMasterErr
79 
80 /* INTERRUPT API */
81 #define ti_lib_rom_int_priority_grouping_set ROM_IntPriorityGroupingSet
82 #define ti_lib_rom_int_priority_grouping_get ROM_IntPriorityGroupingGet
83 #define ti_lib_rom_int_priority_set ROM_IntPrioritySet
84 #define ti_lib_rom_int_priority_get ROM_IntPriorityGet
85 #define ti_lib_rom_int_enable ROM_IntEnable
86 #define ti_lib_rom_int_disable ROM_IntDisable
87 #define ti_lib_rom_int_pend_set ROM_IntPendSet
88 #define ti_lib_rom_int_pend_get ROM_IntPendGet
89 #define ti_lib_rom_int_pend_clear ROM_IntPendClear
90 
91 /* IOC API */
92 #define ti_lib_rom_ioc_port_configure_set ROM_IOCPortConfigureSet
93 #define ti_lib_rom_ioc_port_configure_get ROM_IOCPortConfigureGet
94 #define ti_lib_rom_ioc_io_shutdown_set ROM_IOCIOShutdownSet
95 #define ti_lib_rom_ioc_io_mode_set ROM_IOCIOModeSet
96 #define ti_lib_rom_ioc_io_int_set ROM_IOCIOIntSet
97 #define ti_lib_rom_ioc_io_port_pull_set ROM_IOCIOPortPullSet
98 #define ti_lib_rom_ioc_io_hyst_set ROM_IOCIOHystSet
99 #define ti_lib_rom_ioc_io_input_set ROM_IOCIOInputSet
100 #define ti_lib_rom_ioc_io_slew_ctrl_set ROM_IOCIOSlewCtrlSet
101 #define ti_lib_rom_ioc_io_drv_strength_set ROM_IOCIODrvStrengthSet
102 #define ti_lib_rom_ioc_io_port_id_set ROM_IOCIOPortIdSet
103 #define ti_lib_rom_ioc_int_enable ROM_IOCIntEnable
104 #define ti_lib_rom_ioc_int_disable ROM_IOCIntDisable
105 #define ti_lib_rom_ioc_pin_type_gpio_input ROM_IOCPinTypeGpioInput
106 #define ti_lib_rom_ioc_pin_type_gpio_output ROM_IOCPinTypeGpioOutput
107 #define ti_lib_rom_ioc_pin_type_uart ROM_IOCPinTypeUart
108 #define ti_lib_rom_ioc_pin_type_ssi_master ROM_IOCPinTypeSsiMaster
109 #define ti_lib_rom_ioc_pin_type_ssi_slave ROM_IOCPinTypeSsiSlave
110 #define ti_lib_rom_ioc_pin_type_i2c ROM_IOCPinTypeI2c
111 #define ti_lib_rom_ioc_pin_type_aux ROM_IOCPinTypeAux
112 
113 /* PRCM API */
114 #define ti_lib_rom_prcm_inf_clock_configure_set ROM_PRCMInfClockConfigureSet
115 #define ti_lib_rom_prcm_inf_clock_configure_get ROM_PRCMInfClockConfigureGet
116 #define ti_lib_rom_prcm_audio_clock_config_set ROM_PRCMAudioClockConfigSet
117 #define ti_lib_rom_prcm_power_domain_on ROM_PRCMPowerDomainOn
118 #define ti_lib_rom_prcm_power_domain_off ROM_PRCMPowerDomainOff
119 #define ti_lib_rom_prcm_peripheral_run_enable ROM_PRCMPeripheralRunEnable
120 #define ti_lib_rom_prcm_peripheral_run_disable ROM_PRCMPeripheralRunDisable
121 #define ti_lib_rom_prcm_peripheral_sleep_enable ROM_PRCMPeripheralSleepEnable
122 #define ti_lib_rom_prcm_peripheral_sleep_disable ROM_PRCMPeripheralSleepDisable
123 #define ti_lib_rom_prcm_peripheral_deep_sleep_enable ROM_PRCMPeripheralDeepSleepEnable
124 #define ti_lib_rom_prcm_peripheral_deep_sleep_disable ROM_PRCMPeripheralDeepSleepDisable
125 #define ti_lib_rom_prcm_power_domain_status ROM_PRCMPowerDomainStatus
126 #define ti_lib_rom_prcm_deep_sleep ROM_PRCMDeepSleep
127 
128 /* SMPH API */
129 #define ti_lib_rom_smph_acquire ROM_SMPHAcquire
130 
131 /* SSI API */
132 #define ti_lib_rom_ssi_config_set_exp_clk ROM_SSIConfigSetExpClk
133 #define ti_lib_rom_ssi_data_put ROM_SSIDataPut
134 #define ti_lib_rom_ssi_data_put_non_blocking ROM_SSIDataPutNonBlocking
135 #define ti_lib_rom_ssi_data_get ROM_SSIDataGet
136 #define ti_lib_rom_ssi_data_get_non_blocking ROM_SSIDataGetNonBlocking
137 
138 /* TIMER API */
139 #define ti_lib_rom_timer_configure ROM_TimerConfigure
140 #define ti_lib_rom_timer_level_control ROM_TimerLevelControl
141 #define ti_lib_rom_timer_stall_control ROM_TimerStallControl
142 #define ti_lib_rom_timer_wait_on_trigger_control ROM_TimerWaitOnTriggerControl
143 
144 /* TRNG API */
145 #define ti_lib_rom_trng_number_get ROM_TRNGNumberGet
146 
147 /* UART API */
148 #define ti_lib_rom_uart_fifo_level_get ROM_UARTFIFOLevelGet
149 #define ti_lib_rom_uart_config_set_exp_clk ROM_UARTConfigSetExpClk
150 #define ti_lib_rom_uart_config_get_exp_clk ROM_UARTConfigGetExpClk
151 #define ti_lib_rom_uart_disable ROM_UARTDisable
152 #define ti_lib_rom_uart_char_get_non_blocking ROM_UARTCharGetNonBlocking
153 #define ti_lib_rom_uart_char_get ROM_UARTCharGet
154 #define ti_lib_rom_uart_char_put_non_blocking ROM_UARTCharPutNonBlocking
155 #define ti_lib_rom_uart_char_put ROM_UARTCharPut
156 
157 /* UDMA API */
158 #define ti_lib_rom_udma_channel_attribute_enable ROM_uDMAChannelAttributeEnable
159 #define ti_lib_rom_udma_channel_attribute_disable ROM_uDMAChannelAttributeDisable
160 #define ti_lib_rom_udma_channel_attribute_get ROM_uDMAChannelAttributeGet
161 #define ti_lib_rom_udma_channel_control_set ROM_uDMAChannelControlSet
162 #define ti_lib_rom_udma_channel_transfer_set ROM_uDMAChannelTransferSet
163 #define ti_lib_rom_udma_channel_scatter_gather_set ROM_uDMAChannelScatterGatherSet
164 #define ti_lib_rom_udma_channel_size_get ROM_uDMAChannelSizeGet
165 #define ti_lib_rom_udma_channel_mode_get ROM_uDMAChannelModeGet
166 
167 /* VIMS API */
168 #define ti_lib_rom_vims_configure ROM_VIMSConfigure
169 #define ti_lib_rom_vims_mode_set ROM_VIMSModeSet
170 
171 /* HAPI */
172 #define ti_lib_hapi_crc32(a, b, c) HapiCrc32(a, b, c)
173 #define ti_lib_hapi_get_flash_size() HapiGetFlashSize()
174 #define ti_lib_hapi_get_chip_id() HapiGetChipId()
175 #define ti_lib_hapi_sector_erase(a) HapiSectorErase(a)
176 #define ti_lib_hapi_program_flash(a, b, c) HapiProgramFlash(a, b, c)
177 #define ti_lib_hapi_reset_device() HapiResetDevice()
178 #define ti_lib_hapi_fletcher32(a, b, c) HapiFletcher32(a, b, c)
179 #define ti_lib_hapi_min_value(a, b) HapiMinValue(a,b)
180 #define ti_lib_hapi_max_value(a, b) HapiMaxValue(a,b)
181 #define ti_lib_hapi_mean_value(a, b) HapiMeanValue(a,b)
182 #define ti_lib_hapi_stand_deviation_value(a, b) HapiStandDeviationValue(a,b)
183 #define ti_lib_hapi_hf_source_safe_switch() HapiHFSourceSafeSwitch()
184 #define ti_lib_hapi_select_comp_a_input(a) HapiSelectCompAInput(a)
185 #define ti_lib_hapi_select_comp_a_ref(a) HapiSelectCompARef(a)
186 #define ti_lib_hapi_select_adc_comp_b_input(a) HapiSelectADCCompBInput(a)
187 #define ti_lib_hapi_select_comp_b_ref(a) HapiSelectCompBRef(a)
188 /*---------------------------------------------------------------------------*/
189 #endif /* TI_LIB_ROM_H_ */
190 /*---------------------------------------------------------------------------*/
191 /**
192  * @}
193  */