mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-30 10:24:41 +00:00
01e36532c2
This commit: * Moves all cpu files from cpu/cc26xx to cpu/cc26xx-cc13xx * Bumps the CC26xxware submodule to the latest TI release * Adds CC13xxware as a submodule * Adds support for sub-ghz mode / IEEE 802.15.4g * Splits the driver into multiple files for clarity. We now have the following structure: * A common module that handles access to the RF core, interrupts etc * A module that takes care of BLE functionality * A netstack radio driver for IEEE mode (2.4GHz) * A netstack radio driver for PROP mode (sub-ghz - multiple bands) This commit also adds tick suppression functionality, applicable to all chips of the CC26xx and CC13xx families. Instead waking up on every clock tick simply to increment our software counter, we now only wake up just in time to service the next scheduled etimer. ContikiMAC-triggered wakeups are unaffected. Laslty, this commit also applies a number of minor changes: * Addition of missing includes * Removal of stub functions * Removal of a woraround for a CC26xxware bug that has now been fixed
691 lines
44 KiB
C
691 lines
44 KiB
C
/*
|
|
* Copyright (c) 2014, Texas Instruments Incorporated - http://www.ti.com/
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
* 3. Neither the name of the copyright holder nor the names of its
|
|
* contributors may be used to endorse or promote products derived
|
|
* from this software without specific prior written permission.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
/**
|
|
* \addtogroup cc26xx
|
|
* @{
|
|
*
|
|
* \defgroup cc26xx-ti-lib TI CC26xxware/CC13xxware Glue
|
|
*
|
|
* Glue file which renames TI CC26xxware functions. Thus, for example,
|
|
* PowerCtrlIOFreezeDisable() becomes power_ctrl_io_freeze_disable()
|
|
*
|
|
* This is not strictly required and a call to the former will work perfectly
|
|
* correctly. However, in using those macros, we make the core of the Contiki
|
|
* port match the naming convention.
|
|
*
|
|
* Since all functions are prefixed with ti_lib, it also becomes clear to the
|
|
* reader that this is a call to TI driverlib's sources and not a call to a
|
|
* function inside Contiki
|
|
*
|
|
* @{
|
|
*
|
|
* \file
|
|
* Header file with macros which rename TI CC26xxware functions.
|
|
*/
|
|
#ifndef TI_LIB_H_
|
|
#define TI_LIB_H_
|
|
/*---------------------------------------------------------------------------*/
|
|
/* aon_batmon.h */
|
|
#include "driverlib/aon_batmon.h"
|
|
|
|
#define ti_lib_aon_batmon_enable(...) AONBatMonEnable(__VA_ARGS__)
|
|
#define ti_lib_aon_batmon_disable(...) AONBatMonDisable(__VA_ARGS__)
|
|
#define ti_lib_aon_batmon_temperature_get_deg_c(...) AONBatMonTemperatureGetDegC(__VA_ARGS__)
|
|
#define ti_lib_aon_batmon_battery_voltage_get(...) AONBatMonBatteryVoltageGet(__VA_ARGS__)
|
|
#define ti_lib_aon_batmon_new_battery_measure_ready(...) AONBatMonNewBatteryMeasureReady(__VA_ARGS__)
|
|
#define ti_lib_aon_batmon_new_temp_measure_ready(...) AONBatMonNewTempMeasureReady(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* aon_event.h */
|
|
#include "driverlib/aon_event.h"
|
|
|
|
#define ti_lib_aon_event_mcu_wake_up_set(...) AONEventMcuWakeUpSet(__VA_ARGS__)
|
|
#define ti_lib_aon_event_mcu_wake_up_get(...) AONEventMcuWakeUpGet(__VA_ARGS__)
|
|
#define ti_lib_aon_event_aux_wake_up_set(...) AONEventAuxWakeUpSet(__VA_ARGS__)
|
|
#define ti_lib_aon_event_aux_wake_up_get(...) AONEventAuxWakeUpGet(__VA_ARGS__)
|
|
#define ti_lib_aon_event_mcu_set(...) AONEventMcuSet(__VA_ARGS__)
|
|
#define ti_lib_aon_event_mcu_get(...) AONEventMcuGet(__VA_ARGS__)
|
|
#define ti_lib_aon_event_rtc_set(...) AONEventRtcSet(__VA_ARGS__)
|
|
#define ti_lib_aon_event_rtc_get(...) AONEventRtcGet(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* aon_ioc.h */
|
|
#include "driverlib/aon_ioc.h"
|
|
|
|
#define ti_lib_aon_ioc_drive_strength_set(...) AONIOCDriveStrengthSet(__VA_ARGS__)
|
|
#define ti_lib_aon_ioc_drive_strength_get(...) AONIOCDriveStrengthGet(__VA_ARGS__)
|
|
#define ti_lib_aon_ioc_freeze_enable(...) AONIOCFreezeEnable(__VA_ARGS__)
|
|
#define ti_lib_aon_ioc_freeze_disable(...) AONIOCFreezeDisable(__VA_ARGS__)
|
|
#define ti_lib_aon_ioc_32_khz_output_disable(...) AONIOC32kHzOutputDisable(__VA_ARGS__)
|
|
#define ti_lib_aon_ioc_32_khz_output_enable(...) AONIOC32kHzOutputEnable(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* aon_rtc.h */
|
|
#include "driverlib/aon_rtc.h"
|
|
|
|
#define ti_lib_aon_rtc_enable(...) AONRTCEnable(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_disable(...) AONRTCDisable(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_active(...) AONRTCActive(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_channel_active(...) AONRTCChannelActive(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_reset(...) AONRTCReset(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_delay_config(...) AONRTCDelayConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_combined_event_config(...) AONRTCCombinedEventConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_event_clear(...) AONRTCEventClear(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_event_get(...) AONRTCEventGet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_sec_get(...) AONRTCSecGet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_fraction_get(...) AONRTCFractionGet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_sub_sec_incr_get(...) AONRTCSubSecIncrGet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_mode_ch1_set(...) AONRTCModeCh1Set(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_mode_ch1_get(...) AONRTCModeCh1Get(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_mode_ch2_set(...) AONRTCModeCh2Set(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_mode_ch2_get(...) AONRTCModeCh2Get(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_channel_enable(...) AONRTCChannelEnable(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_channel_disable(...) AONRTCChannelDisable(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_compare_value_set(...) AONRTCCompareValueSet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_compare_value_get(...) AONRTCCompareValueGet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_current_compare_value_get(...) AONRTCCurrentCompareValueGet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_current_64_bit_value_get(...) AONRTCCurrent64BitValueGet(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_inc_value_ch2_set(...) AONRTCIncValueCh2Set(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_inc_value_ch2_get(...) AONRTCIncValueCh2Get(__VA_ARGS__)
|
|
#define ti_lib_aon_rtc_capture_value_ch1_get(...) AONRTCCaptureValueCh1Get(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* aon_wuc.h */
|
|
#include "driverlib/aon_wuc.h"
|
|
|
|
#define ti_lib_aon_wuc_mcu_wake_up_config(...) AONWUCMcuWakeUpConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_mcu_power_down_config(...) AONWUCMcuPowerDownConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_mcu_power_off_config(...) AONWUCMcuPowerOffConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_mcu_sram_config(...) AONWUCMcuSRamConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_clock_config_get(...) AONWUCAuxClockConfigGet(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_power_down_config(...) AONWUCAuxPowerDownConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_wake_up_config(...) AONWUCAuxWakeUpConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_sram_config(...) AONWUCAuxSRamConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_wakeup_event(...) AONWUCAuxWakeupEvent(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_image_valid(...) AONWUCAuxImageValid(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_image_invalid(...) AONWUCAuxImageInvalid(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_aux_reset(...) AONWUCAuxReset(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_power_status_get(...) AONWUCPowerStatusGet(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_shut_down_enable(...) AONWUCShutDownEnable(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_domain_power_down_enable(...) AONWUCDomainPowerDownEnable(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_domain_power_down_disable(...) AONWUCDomainPowerDownDisable(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_mcu_reset_status_get(...) AONWUCMcuResetStatusGet(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_mcu_reset_clear(...) AONWUCMcuResetClear(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_recharge_ctrl_config_set(...) AONWUCRechargeCtrlConfigSet(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_recharge_ctrl_config_get(...) AONWUCRechargeCtrlConfigGet(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_osc_config(...) AONWUCOscConfig(__VA_ARGS__)
|
|
#define ti_lib_aon_wuc_jtag_power_off(...) AONWUCJtagPowerOff(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* aux_wuc.h */
|
|
#include "driverlib/aux_wuc.h"
|
|
|
|
#define ti_lib_aux_wuc_clock_enable(...) AUXWUCClockEnable(__VA_ARGS__)
|
|
#define ti_lib_aux_wuc_clock_disable(...) AUXWUCClockDisable(__VA_ARGS__)
|
|
#define ti_lib_aux_wuc_clock_status(...) AUXWUCClockStatus(__VA_ARGS__)
|
|
#define ti_lib_aux_wuc_clock_freq_req(...) AUXWUCClockFreqReq(__VA_ARGS__)
|
|
#define ti_lib_aux_wuc_power_ctrl(...) AUXWUCPowerCtrl(__VA_ARGS__)
|
|
#define ti_lib_aux_wuc_freeze_enable(...) AUXWUCFreezeEnable(__VA_ARGS__)
|
|
#define ti_lib_aux_wuc_freeze_disable(...) AUXWUCFreezeDisable(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* cpu.h */
|
|
#include "driverlib/cpu.h"
|
|
|
|
#define ti_lib_cpu_cpsid(...) CPUcpsid(__VA_ARGS__)
|
|
#define ti_lib_cpu_cpsie(...) CPUcpsie(__VA_ARGS__)
|
|
#define ti_lib_cpu_primask(...) CPUprimask(__VA_ARGS__)
|
|
#define ti_lib_cpu_wfi(...) CPUwfi(__VA_ARGS__)
|
|
#define ti_lib_cpu_wfe(...) CPUwfe(__VA_ARGS__)
|
|
#define ti_lib_cpu_sev(...) CPUsev(__VA_ARGS__)
|
|
#define ti_lib_cpu_base_pri_get(...) CPUbasepriGet(__VA_ARGS__)
|
|
#define ti_lib_cpu_base_pri_set(...) CPUbasepriSet(__VA_ARGS__)
|
|
#define ti_lib_cpu_delay(...) CPUdelay(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* chipinfo.h */
|
|
#include "driverlib/chipinfo.h"
|
|
|
|
#define ti_lib_chipinfo_get_supported_protocol_bv(...) ChipInfo_GetSupportedProtocol_BV(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_supports_ble(...) ChipInfo_SupportsBLE(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_supports_ieee_802_15_4(...) ChipInfo_SupportsIEEE_802_15_4(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_supports_proprietary(...) ChipInfo_SupportsPROPRIETARY(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_get_package_type(...) ChipInfo_GetPackageType(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_package_type_is_4x4(...) ChipInfo_PackageTypeIs4x4(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_package_type_is_5x5(...) ChipInfo_PackageTypeIs5x5(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_package_type_is_7x7(...) ChipInfo_PackageTypeIs7x7(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_get_device_id_hw_rev_code(...) ChipInfo_GetDeviceIdHwRevCode(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_get_chip_family(...) ChipInfo_GetChipFamily(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_chip_family_is_cc26xx(...) ChipInfo_ChipFamilyIsCC26xx(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_chip_family_is_cc13xx(...) ChipInfo_ChipFamilyIsCC13xx(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_get_hw_revision(...) ChipInfo_GetHwRevision(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_hw_revision_is_1_0(...) ChipInfo_HwRevisionIs_1_0(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_hw_revision_is_gteq_2_0(...) ChipInfo_HwRevisionIs_GTEQ_2_0(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_hw_revision_is_2_0(...) ChipInfo_HwRevisionIs_2_0(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_hw_revision_is_2_1(...) ChipInfo_HwRevisionIs_2_1(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_hw_revision_is_2_2(...) ChipInfo_HwRevisionIs_2_2(__VA_ARGS__)
|
|
#define ti_lib_chipinfo_hw_revision_is_gteq_2_2(...) ChipInfo_HwRevisionIs_GTEQ_2_2( __VA_ARGS__ )
|
|
/*---------------------------------------------------------------------------*/
|
|
/* ddi.h */
|
|
#include "driverlib/ddi.h"
|
|
|
|
#define ti_lib_aux_adi_ddi_safe_write(...) AuxAdiDdiSafeWrite(__VA_ARGS__)
|
|
#define ti_lib_aux_adi_ddi_safe_read(...) AuxAdiDdiSafeRead(__VA_ARGS__)
|
|
#define ti_lib_ddi_32_reg_write(...) DDI32RegWrite(__VA_ARGS__)
|
|
#define ti_lib_ddi_32_reg_read(...) DDI32RegRead(__VA_ARGS__)
|
|
#define ti_lib_ddi_32_bits_set(...) DDI32BitsSet(__VA_ARGS__)
|
|
#define ti_lib_ddi_32_bits_clear(...) DDI32BitsClear(__VA_ARGS__)
|
|
#define ti_lib_ddi_8_set_val_bit(...) DDI8SetValBit(__VA_ARGS__)
|
|
#define ti_lib_ddi_16_set_val_bit(...) DDI16SetValBit(__VA_ARGS__)
|
|
#define ti_lib_ddi_16_bit_write(...) DDI16BitWrite(__VA_ARGS__)
|
|
#define ti_lib_ddi_16_bit_field_write(...) DDI16BitfieldWrite(__VA_ARGS__)
|
|
#define ti_lib_ddi_16_bit_read(...) DDI16BitRead(__VA_ARGS__)
|
|
#define ti_lib_ddi_16_bitfield_read(...) DDI16BitfieldRead(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* gpio.h */
|
|
#include "driverlib/gpio.h"
|
|
|
|
#define ti_lib_gpio_dir_mode_set(...) GPIODirModeSet(__VA_ARGS__)
|
|
#define ti_lib_gpio_dir_mode_get(...) GPIODirModeGet(__VA_ARGS__)
|
|
#define ti_lib_gpio_pin_write(...) GPIOPinWrite(__VA_ARGS__)
|
|
#define ti_lib_gpio_pin_read(...) GPIOPinRead(__VA_ARGS__)
|
|
#define ti_lib_gpio_pin_clear(...) GPIOPinClear(__VA_ARGS__)
|
|
#define ti_lib_gpio_pin_toggle(...) GPIOPinToggle(__VA_ARGS__)
|
|
#define ti_lib_gpio_event_get(...) GPIOEventGet(__VA_ARGS__)
|
|
#define ti_lib_gpio_event_clear(...) GPIOEventClear(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* i2c.h */
|
|
#include "driverlib/i2c.h"
|
|
|
|
#define ti_lib_i2c_int_register(...) I2CIntRegister(__VA_ARGS__)
|
|
#define ti_lib_i2c_int_unregister(...) I2CIntUnregister(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_bus_busy(...) I2CMasterBusBusy(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_busy(...) I2CMasterBusy(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_control(...) I2CMasterControl(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_data_get(...) I2CMasterDataGet(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_data_put(...) I2CMasterDataPut(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_disable(...) I2CMasterDisable(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_enable(...) I2CMasterEnable(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_err(...) I2CMasterErr(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_init_exp_clk(...) I2CMasterInitExpClk(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_int_clear(...) I2CMasterIntClear(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_int_disable(...) I2CMasterIntDisable(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_int_enable(...) I2CMasterIntEnable(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_int_status(...) I2CMasterIntStatus(__VA_ARGS__)
|
|
#define ti_lib_i2c_master_slave_addr_set(...) I2CMasterSlaveAddrSet(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_data_get(...) I2CSlaveDataGet(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_data_put(...) I2CSlaveDataPut(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_disable(...) I2CSlaveDisable(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_enable(...) I2CSlaveEnable(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_init(...) I2CSlaveInit(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_address_set(...) I2CSlaveAddressSet(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_int_clear(...) I2CSlaveIntClear(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_int_disable(...) I2CSlaveIntDisable(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_int_enable(...) I2CSlaveIntEnable(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_int_status(...) I2CSlaveIntStatus(__VA_ARGS__)
|
|
#define ti_lib_i2c_slave_status(...) I2CSlaveStatus(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* interrupt.h */
|
|
#include "driverlib/interrupt.h"
|
|
|
|
#define ti_lib_int_master_enable(...) IntMasterEnable(__VA_ARGS__)
|
|
#define ti_lib_int_master_disable(...) IntMasterDisable(__VA_ARGS__)
|
|
#define ti_lib_int_register(...) IntRegister(__VA_ARGS__);
|
|
#define ti_lib_int_unregsiter(...) IntUnregister(__VA_ARGS__)
|
|
#define ti_lib_int_priority_grouping_set(...) IntPriorityGroupingSet(__VA_ARGS__)
|
|
#define ti_lib_int_priority_grouping_get(...) IntPriorityGroupingGet(__VA_ARGS__)
|
|
#define ti_lib_int_priority_set(...) IntPrioritySet(__VA_ARGS__)
|
|
#define ti_lib_int_priority_get(...) IntPriorityGet(__VA_ARGS__)
|
|
#define ti_lib_int_enable(...) IntEnable(__VA_ARGS__)
|
|
#define ti_lib_int_disable(...) IntDisable(__VA_ARGS__)
|
|
#define ti_lib_int_pend_set(...) IntPendSet(__VA_ARGS__)
|
|
#define ti_lib_int_pend_get(...) IntPendGet(__VA_ARGS__)
|
|
#define ti_lib_int_pend_clear(...) IntPendClear(__VA_ARGS__)
|
|
#define ti_lib_int_mask_set(...) IntPriorityMaskSet(__VA_ARGS__)
|
|
#define ti_lib_int_mask_get(...) IntPriorityMaskGet(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* ioc.h */
|
|
#include "driverlib/ioc.h"
|
|
|
|
#define ti_lib_ioc_port_configure_set(...) IOCPortConfigureSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_port_configure_get(...) IOCPortConfigureGet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_shutdown_set(...) IOCIOShutdownSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_mode_set(...) IOCIOModeSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_port_pull_set(...) IOCIOPortPullSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_hyst_set(...) IOCIOHystSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_input_set(...) IOCIOInputSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_slew_ctrl_set(...) IOCIOSlewCtrlSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_drv_strength_set(...) IOCIODrvStrengthSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_port_id_set(...) IOCIOPortIdSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_io_int_set(...) IOCIOIntSet(__VA_ARGS__)
|
|
#define ti_lib_ioc_int_register(...) IOCIntRegister(__VA_ARGS__);
|
|
#define ti_lib_ioc_int_unregister(...) IOCIntUnregister(__VA_ARGS__)
|
|
#define ti_lib_ioc_int_enable(...) IOCIntEnable(__VA_ARGS__)
|
|
#define ti_lib_ioc_int_disable(...) IOCIntDisable(__VA_ARGS__)
|
|
#define ti_lib_ioc_int_clear(...) IOCIntClear(__VA_ARGS__)
|
|
#define ti_lib_ioc_int_status(...) IOCIntStatus(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_gpio_input(...) IOCPinTypeGpioInput(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_gpio_output(...) IOCPinTypeGpioOutput(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_uart(...) IOCPinTypeUart(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_ssi_master(...) IOCPinTypeSsiMaster(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_ssi_slave(...) IOCPinTypeSsiSlave(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_i2c(...) IOCPinTypeI2c(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_aux(...) IOCPinTypeAux(__VA_ARGS__)
|
|
#define ti_lib_ioc_pin_type_spis(...) IOCPinTypeSpis(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* osc.h */
|
|
#include "driverlib/osc.h"
|
|
|
|
#define ti_lib_osc_xhf_power_mode_set(...) OSCXHfPowerModeSet(__VA_ARGS__)
|
|
#define ti_lib_osc_clock_source_set(...) OSCClockSourceSet(__VA_ARGS__)
|
|
#define ti_lib_osc_clock_source_get(...) OSCClockSourceGet(__VA_ARGS__)
|
|
#define ti_lib_osc_hf_source_ready(...) OSCHfSourceReady(__VA_ARGS__)
|
|
#define ti_lib_osc_hf_source_switch(...) OSCHfSourceSwitch(__VA_ARGS__)
|
|
#define ti_lib_osc_interface_enable(...) OSCInterfaceEnable(__VA_ARGS__)
|
|
#define ti_lib_osc_interface_disable(...) OSCInterfaceDisable(__VA_ARGS__)
|
|
#define ti_lib_osc_hf_get_startup_time(...) OSCHF_GetStartupTime(__VA_ARGS__)
|
|
#define ti_lib_osc_hf_turn_on_xosc(...) OSCHF_TurnOnXosc(__VA_ARGS__)
|
|
#define ti_lib_osc_hf_attempt_to_switch_to_xosc(...) OSCHF_AttemptToSwitchToXosc(__VA_ARGS__)
|
|
#define ti_lib_osc_hf_switch_to_rc_osc_turn_off_xosc(...) OSCHF_SwitchToRcOscTurnOffXosc(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* prcm.h */
|
|
#include "driverlib/prcm.h"
|
|
|
|
#define ti_lib_prcm_inf_clock_configure_set(...) PRCMInfClockConfigureSet(__VA_ARGS__)
|
|
#define ti_lib_prcm_inf_clock_configure_get(...) PRCMInfClockConfigureGet(__VA_ARGS__)
|
|
#define ti_lib_prcm_mcu_power_off(...) PRCMMcuPowerOff(__VA_ARGS__)
|
|
#define ti_lib_prcm_mcu_power_off_cancel(...) PRCMMcuPowerOffCancel(__VA_ARGS__)
|
|
#define ti_lib_prcm_mcu_uldo_configure(...) PRCMMcuUldoConfigure(__VA_ARGS__)
|
|
#define ti_lib_prcm_audio_clock_enable(...) PRCMAudioClockEnable(__VA_ARGS__)
|
|
#define ti_lib_prcm_audio_clock_disable(...) PRCMAudioClockDisable(__VA_ARGS__)
|
|
#define ti_lib_prcm_audio_clock_config_set(...) PRCMAudioClockConfigSet(__VA_ARGS__)
|
|
#define ti_lib_prcm_load_set(...) PRCMLoadSet(__VA_ARGS__)
|
|
#define ti_lib_prcm_load_get(...) PRCMLoadGet(__VA_ARGS__)
|
|
#define ti_lib_prcm_domain_enable(...) PRCMDomainEnable(__VA_ARGS__)
|
|
#define ti_lib_prcm_domain_disable(...) PRCMDomainDisable(__VA_ARGS__)
|
|
#define ti_lib_prcm_power_domain_on(...) PRCMPowerDomainOn(__VA_ARGS__)
|
|
#define ti_lib_prcm_power_domain_off(...) PRCMPowerDomainOff(__VA_ARGS__)
|
|
#define ti_lib_prcm_rf_power_down_when_idle(...) PRCMRfPowerDownWhenIdle(__VA_ARGS__)
|
|
#define ti_lib_prcm_peripheral_run_enable(...) PRCMPeripheralRunEnable(__VA_ARGS__)
|
|
#define ti_lib_prcm_peripheral_run_disable(...) PRCMPeripheralRunDisable(__VA_ARGS__)
|
|
#define ti_lib_prcm_peripheral_sleep_enable(...) PRCMPeripheralSleepEnable(__VA_ARGS__)
|
|
#define ti_lib_prcm_peripheral_sleep_disable(...) PRCMPeripheralSleepDisable(__VA_ARGS__)
|
|
#define ti_lib_prcm_peripheral_deep_sleep_enable(...) PRCMPeripheralDeepSleepEnable(__VA_ARGS__)
|
|
#define ti_lib_prcm_peripheral_deep_sleep_disable(...) PRCMPeripheralDeepSleepDisable(__VA_ARGS__)
|
|
#define ti_lib_prcm_power_domain_status(...) PRCMPowerDomainStatus(__VA_ARGS__)
|
|
#define ti_lib_prcm_rf_ready(...) PRCMRfReady(__VA_ARGS__)
|
|
#define ti_lib_prcm_sleep(...) PRCMSleep(__VA_ARGS__)
|
|
#define ti_lib_prcm_deep_sleep(...) PRCMDeepSleep(__VA_ARGS__)
|
|
#define ti_lib_prcm_cache_retention_enable(...) PRCMCacheRetentionEnable(__VA_ARGS__)
|
|
#define ti_lib_prcm_cache_retention_disable(...) PRCMCacheRetentionDisable(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* sys_ctrl.h */
|
|
#include "driverlib/pwr_ctrl.h"
|
|
|
|
#define ti_lib_pwr_ctrl_state_set(...) PowerCtrlStateSet(__VA_ARGS__)
|
|
#define ti_lib_pwr_ctrl_source_set(...) PowerCtrlSourceSet(__VA_ARGS__)
|
|
#define ti_lib_pwr_ctrl_source_get(...) PowerCtrlSourceGet(__VA_ARGS__)
|
|
#define ti_lib_pwr_ctrl_reset_source_get(...) PowerCtrlResetSourceGet(__VA_ARGS__)
|
|
#define ti_lib_pwr_ctrl_reset_source_clear(...) PowerCtrlResetSourceClear(__VA_ARGS__)
|
|
#define ti_lib_pwr_ctrl_io_freeze_enable(...) PowerCtrlIOFreezeEnable(__VA_ARGS__)
|
|
#define ti_lib_pwr_ctrl_io_freeze_disable(...) PowerCtrlIOFreezeDisable(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* rom.h */
|
|
#include "driverlib/rom.h"
|
|
|
|
/* AON API */
|
|
#define ti_lib_rom_aon_event_mcu_wake_up_set ROM_AONEventMcuWakeUpSet
|
|
#define ti_lib_rom_aon_event_mcu_wake_up_get ROM_AONEventMcuWakeUpGet
|
|
#define ti_lib_rom_aon_event_aux_wake_up_set ROM_AONEventAuxWakeUpSet
|
|
#define ti_lib_rom_aon_event_aux_wake_up_get ROM_AONEventAuxWakeUpGet
|
|
#define ti_lib_rom_aon_event_mcu_set ROM_AONEventMcuSet
|
|
#define ti_lib_rom_aon_event_mcu_get ROM_AONEventMcuGet
|
|
|
|
/* AON_IOC API */
|
|
#define ti_lib_rom_aon_ioc_drive_strength_set ROM_AONIOCDriveStrengthSet
|
|
#define ti_lib_rom_aon_ioc_drive_strength_get ROM_AONIOCDriveStrengthGet
|
|
|
|
/* AON_RTC API */
|
|
#define ti_lib_rom_aon_rtc_status ROM_AONRTCStatus
|
|
#define ti_lib_rom_aon_rtc_event_clear ROM_AONRTCEventClear
|
|
#define ti_lib_rom_aon_rtc_event_get ROM_AONRTCEventGet
|
|
#define ti_lib_rom_aon_rtc_mode_ch1_set ROM_AONRTCModeCh1Set
|
|
#define ti_lib_rom_aon_rtc_mode_ch1_get ROM_AONRTCModeCh1Get
|
|
#define ti_lib_rom_aon_rtc_mode_ch2_set ROM_AONRTCModeCh2Set
|
|
#define ti_lib_rom_aon_rtc_mode_ch2_get ROM_AONRTCModeCh2Get
|
|
#define ti_lib_rom_aon_rtc_channel_enable ROM_AONRTCChannelEnable
|
|
#define ti_lib_rom_aon_rtc_channel_disable ROM_AONRTCChannelDisable
|
|
#define ti_lib_rom_aon_rtc_compare_value_set ROM_AONRTCCompareValueSet
|
|
#define ti_lib_rom_aon_rtc_compare_value_get ROM_AONRTCCompareValueGet
|
|
#define ti_lib_rom_aon_rtc_current_compare_value_get ROM_AONRTCCurrentCompareValueGet
|
|
|
|
/* AON_WUC API */
|
|
#define ti_lib_rom_aon_wuc_aux_s_ram_config ROM_AONWUCAuxSRamConfig
|
|
#define ti_lib_rom_aon_wuc_aux_wakeup_event ROM_AONWUCAuxWakeupEvent
|
|
#define ti_lib_rom_aon_wuc_aux_reset ROM_AONWUCAuxReset
|
|
#define ti_lib_rom_aon_wuc_recharge_ctrl_config_set ROM_AONWUCRechargeCtrlConfigSet
|
|
#define ti_lib_rom_aon_wuc_osc_config ROM_AONWUCOscConfig
|
|
|
|
/* AUX_TDC API */
|
|
#define ti_lib_rom_aux_tdc_config_set ROM_AUXTDCConfigSet
|
|
#define ti_lib_rom_aux_tdc_measurement_done ROM_AUXTDCMeasurementDone
|
|
|
|
/* AUX_TIMER API */
|
|
#define ti_lib_rom_aux_timer_configure ROM_AUXTimerConfigure
|
|
#define ti_lib_rom_aux_timer_start ROM_AUXTimerStart
|
|
#define ti_lib_rom_aux_timer_stop ROM_AUXTimerStop
|
|
#define ti_lib_rom_aux_timer_prescale_set ROM_AUXTimerPrescaleSet
|
|
#define ti_lib_rom_aux_timer_prescale_get ROM_AUXTimerPrescaleGet
|
|
|
|
/* AUX_WUC API */
|
|
#define ti_lib_rom_aux_wuc_clock_enable ROM_AUXWUCClockEnable
|
|
#define ti_lib_rom_aux_wuc_clock_disable ROM_AUXWUCClockDisable
|
|
#define ti_lib_rom_aux_wuc_clock_status ROM_AUXWUCClockStatus
|
|
#define ti_lib_rom_aux_wuc_power_ctrl ROM_AUXWUCPowerCtrl
|
|
|
|
/* FLASH API */
|
|
#define ti_lib_rom_flash_power_mode_get ROM_FlashPowerModeGet
|
|
#define ti_lib_rom_flash_protection_set ROM_FlashProtectionSet
|
|
#define ti_lib_rom_flash_protection_get ROM_FlashProtectionGet
|
|
#define ti_lib_rom_flash_protection_save ROM_FlashProtectionSave
|
|
#define ti_lib_rom_flash_efuse_read_row ROM_FlashEfuseReadRow
|
|
#define ti_lib_rom_flash_disable_sectors_for_write ROM_FlashDisableSectorsForWrite
|
|
|
|
/* I2C API */
|
|
#define ti_lib_rom_i2c_master_init_exp_clk ROM_I2CMasterInitExpClk
|
|
#define ti_lib_rom_i2c_master_err ROM_I2CMasterErr
|
|
|
|
/* INTERRUPT API */
|
|
#define ti_lib_rom_int_priority_grouping_set ROM_IntPriorityGroupingSet
|
|
#define ti_lib_rom_int_priority_grouping_get ROM_IntPriorityGroupingGet
|
|
#define ti_lib_rom_int_priority_set ROM_IntPrioritySet
|
|
#define ti_lib_rom_int_priority_get ROM_IntPriorityGet
|
|
#define ti_lib_rom_int_enable ROM_IntEnable
|
|
#define ti_lib_rom_int_disable ROM_IntDisable
|
|
#define ti_lib_rom_int_pend_set ROM_IntPendSet
|
|
#define ti_lib_rom_int_pend_get ROM_IntPendGet
|
|
#define ti_lib_rom_int_pend_clear ROM_IntPendClear
|
|
|
|
/* IOC API */
|
|
#define ti_lib_rom_ioc_port_configure_set ROM_IOCPortConfigureSet
|
|
#define ti_lib_rom_ioc_port_configure_get ROM_IOCPortConfigureGet
|
|
#define ti_lib_rom_ioc_io_shutdown_set ROM_IOCIOShutdownSet
|
|
#define ti_lib_rom_ioc_io_jtag_set ROM_IOCIOJTagSet
|
|
#define ti_lib_rom_ioc_io_mode_set ROM_IOCIOModeSet
|
|
#define ti_lib_rom_ioc_io_int_set ROM_IOCIOIntSet
|
|
#define ti_lib_rom_ioc_io_port_pull_set ROM_IOCIOPortPullSet
|
|
#define ti_lib_rom_ioc_io_hyst_set ROM_IOCIOHystSet
|
|
#define ti_lib_rom_ioc_io_input_set ROM_IOCIOInputSet
|
|
#define ti_lib_rom_ioc_io_slew_ctrl_set ROM_IOCIOSlewCtrlSet
|
|
#define ti_lib_rom_ioc_io_drv_strength_set ROM_IOCIODrvStrengthSet
|
|
#define ti_lib_rom_ioc_io_port_id_set ROM_IOCIOPortIdSet
|
|
#define ti_lib_rom_ioc_int_enable ROM_IOCIntEnable
|
|
#define ti_lib_rom_ioc_int_disable ROM_IOCIntDisable
|
|
#define ti_lib_rom_ioc_pin_type_gpio_input ROM_IOCPinTypeGpioInput
|
|
#define ti_lib_rom_ioc_pin_type_gpio_output ROM_IOCPinTypeGpioOutput
|
|
#define ti_lib_rom_ioc_pin_type_uart ROM_IOCPinTypeUart
|
|
#define ti_lib_rom_ioc_pin_type_ssi_master ROM_IOCPinTypeSsiMaster
|
|
#define ti_lib_rom_ioc_pin_type_ssi_slave ROM_IOCPinTypeSsiSlave
|
|
#define ti_lib_rom_ioc_pin_type_i2c ROM_IOCPinTypeI2c
|
|
#define ti_lib_rom_ioc_pin_type_spis ROM_IOCPinTypeSpis
|
|
#define ti_lib_rom_ioc_pin_type_aux ROM_IOCPinTypeAux
|
|
|
|
/* PRCM API */
|
|
#define ti_lib_rom_prcm_inf_clock_configure_set ROM_PRCMInfClockConfigureSet
|
|
#define ti_lib_rom_prcm_inf_clock_configure_get ROM_PRCMInfClockConfigureGet
|
|
#define ti_lib_rom_prcm_audio_clock_config_set ROM_PRCMAudioClockConfigSet
|
|
#define ti_lib_rom_prcm_power_domain_on ROM_PRCMPowerDomainOn
|
|
#define ti_lib_rom_prcm_power_domain_off ROM_PRCMPowerDomainOff
|
|
#define ti_lib_rom_prcm_peripheral_run_enable ROM_PRCMPeripheralRunEnable
|
|
#define ti_lib_rom_prcm_peripheral_run_disable ROM_PRCMPeripheralRunDisable
|
|
#define ti_lib_rom_prcm_peripheral_sleep_enable ROM_PRCMPeripheralSleepEnable
|
|
#define ti_lib_rom_prcm_peripheral_sleep_disable ROM_PRCMPeripheralSleepDisable
|
|
#define ti_lib_rom_prcm_peripheral_deep_sleep_enable ROM_PRCMPeripheralDeepSleepEnable
|
|
#define ti_lib_rom_prcm_peripheral_deep_sleep_disable ROM_PRCMPeripheralDeepSleepDisable
|
|
#define ti_lib_rom_prcm_power_domain_status ROM_PRCMPowerDomainStatus
|
|
#define ti_lib_rom_prcm_deep_sleep ROM_PRCMDeepSleep
|
|
|
|
/* SMPH API */
|
|
#define ti_lib_rom_smph_acquire ROM_SMPHAcquire
|
|
|
|
/* SPIS API */
|
|
#define ti_lib_rom_spis_data_put ROM_SPISDataPut
|
|
#define ti_lib_rom_spis_tx_get_value ROM_SPISTxGetValue
|
|
#define ti_lib_rom_spis_data_get ROM_SPISDataGet
|
|
#define ti_lib_rom_spis_rx_get_value ROM_SPISRxGetValue
|
|
#define ti_lib_rom_spis_int_status ROM_SPISIntStatus
|
|
|
|
/* SSI API */
|
|
#define ti_lib_rom_ssi_config_set_exp_clk ROM_SSIConfigSetExpClk
|
|
#define ti_lib_rom_ssi_data_put ROM_SSIDataPut
|
|
#define ti_lib_rom_ssi_data_put_non_blocking ROM_SSIDataPutNonBlocking
|
|
#define ti_lib_rom_ssi_data_get ROM_SSIDataGet
|
|
#define ti_lib_rom_ssi_data_get_non_blocking ROM_SSIDataGetNonBlocking
|
|
|
|
/* TIMER API */
|
|
#define ti_lib_rom_timer_configure ROM_TimerConfigure
|
|
#define ti_lib_rom_timer_level_control ROM_TimerLevelControl
|
|
#define ti_lib_rom_timer_trigger_control ROM_TimerTriggerControl
|
|
#define ti_lib_rom_timer_stall_control ROM_TimerStallControl
|
|
#define ti_lib_rom_timer_wait_on_trigger_control ROM_TimerWaitOnTriggerControl
|
|
|
|
/* TRNG API */
|
|
#define ti_lib_rom_trng_configure ROM_TRNGConfigure
|
|
#define ti_lib_rom_trng_number_get ROM_TRNGNumberGet
|
|
|
|
/* UART API */
|
|
#define ti_lib_rom_uart_fifo_level_get ROM_UARTFIFOLevelGet
|
|
#define ti_lib_rom_uart_config_set_exp_clk ROM_UARTConfigSetExpClk
|
|
#define ti_lib_rom_uart_config_get_exp_clk ROM_UARTConfigGetExpClk
|
|
#define ti_lib_rom_uart_disable ROM_UARTDisable
|
|
#define ti_lib_rom_uart_char_get_non_blocking ROM_UARTCharGetNonBlocking
|
|
#define ti_lib_rom_uart_char_get ROM_UARTCharGet
|
|
#define ti_lib_rom_uart_char_put_non_blocking ROM_UARTCharPutNonBlocking
|
|
#define ti_lib_rom_uart_char_put ROM_UARTCharPut
|
|
|
|
/* UDMA API */
|
|
#define ti_lib_rom_udma_channel_attribute_enable ROM_uDMAChannelAttributeEnable
|
|
#define ti_lib_rom_udma_channel_attribute_disable ROM_uDMAChannelAttributeDisable
|
|
#define ti_lib_rom_udma_channel_attribute_get ROM_uDMAChannelAttributeGet
|
|
#define ti_lib_rom_udma_channel_control_set ROM_uDMAChannelControlSet
|
|
#define ti_lib_rom_udma_channel_transfer_set ROM_uDMAChannelTransferSet
|
|
#define ti_lib_rom_udma_channel_scatter_gather_set ROM_uDMAChannelScatterGatherSet
|
|
#define ti_lib_rom_udma_channel_size_get ROM_uDMAChannelSizeGet
|
|
#define ti_lib_rom_udma_channel_mode_get ROM_uDMAChannelModeGet
|
|
|
|
/* VIMS API */
|
|
#define ti_lib_rom_vims_configure ROM_VIMSConfigure
|
|
#define ti_lib_rom_vims_mode_set ROM_VIMSModeSet
|
|
#define ti_lib_rom_vims_mode_get ROM_VIMSModeGet
|
|
|
|
/* HAPI */
|
|
#define ti_lib_hapi_crc32(a, b, c) HapiCrc32(a, b, c)
|
|
#define ti_lib_hapi_get_chip_id() HapiGetChipId()
|
|
#define ti_lib_hapi_reset_device() HapiResetDevice()
|
|
#define ti_lib_hapi_fletcher32(a, b, c) HapiFletcher32(a, b, c)
|
|
#define ti_lib_hapi_min_value(a, b) HapiMinValue(a,b)
|
|
#define ti_lib_hapi_max_value(a, b) HapiMaxValue(a,b)
|
|
#define ti_lib_hapi_mean_value(a, b) HapiMeanValue(a,b)
|
|
#define ti_lib_hapi_stand_deviation_value(a, b) HapiStandDeviationValue(a,b)
|
|
#define ti_lib_hapi_hf_source_safe_switch() HapiHFSourceSafeSwitch()
|
|
#define ti_lib_hapi_select_comp_a_input(a) HapiSelectCompAInput(a)
|
|
#define ti_lib_hapi_select_comp_a_ref(a) HapiSelectCompARef(a)
|
|
#define ti_lib_hapi_select_adc_comp_b_input(a) HapiSelectADCCompBInput(a)
|
|
#define ti_lib_hapi_select_comp_b_ref(a) HapiSelectCompBRef(a)
|
|
#define ti_lib_hapi_get_flash_size() HapiGetFlashSize()
|
|
#define ti_lib_hapi_sector_erase(a) HapiSectorErase(a)
|
|
#define ti_lib_hapi_program_flash(a, b, c) HapiProgramFlash(a, b, c)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* sys_ctrl.h */
|
|
#include "driverlib/sys_ctrl.h"
|
|
|
|
#define ti_lib_sys_ctrl_power_everything(...) SysCtrlPowerEverything(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_powerdown(...) SysCtrlPowerdown(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_standby(...) SysCtrlStandby(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_shutdown(...) SysCtrlShutdown(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_clock_get(...) SysCtrlClockGet(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_aon_sync(...) SysCtrlAonSync(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_aon_update(...) SysCtrlAonUpdate(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_set_recharge_before_power_down(...) SysCtrlSetRechargeBeforePowerDown(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_adjust_recharge_after_power_down(...) SysCtrlAdjustRechargeAfterPowerDown(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_dcdc_voltage_conditional_control(...) SysCtrl_DCDC_VoltageConditionalControl(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_reset_source_get(...) SysCtrlResetSourceGet(__VA_ARGS__)
|
|
#define ti_lib_sys_ctrl_system_reset(...) SysCtrlSystemReset(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* ssi.h */
|
|
#include "driverlib/ssi.h"
|
|
|
|
#define ti_lib_ssi_config_set_exp_clk(...) SSIConfigSetExpClk(__VA_ARGS__)
|
|
#define ti_lib_ssi_enable(...) SSIEnable(__VA_ARGS__)
|
|
#define ti_lib_ssi_disable(...) SSIDisable(__VA_ARGS__)
|
|
#define ti_lib_ssi_data_put(...) SSIDataPut(__VA_ARGS__)
|
|
#define ti_lib_ssi_data_put_non_blocking(...) SSIDataPutNonBlocking(__VA_ARGS__)
|
|
#define ti_lib_ssi_data_get(...) SSIDataGet(__VA_ARGS__)
|
|
#define ti_lib_ssi_data_get_non_blocking(...) SSIDataGetNonBlocking(__VA_ARGS__)
|
|
#define ti_lib_ssi_busy(...) SSIBusy(__VA_ARGS__)
|
|
#define ti_lib_ssi_status(...) SSIStatus(__VA_ARGS__)
|
|
#define ti_lib_ssi_int_register(...) SSIIntRegister(__VA_ARGS__)
|
|
#define ti_lib_ssi_int_unregister(...) SSIIntUnregister(__VA_ARGS__)
|
|
#define ti_lib_ssi_int_enable(...) SSIIntEnable(__VA_ARGS__)
|
|
#define ti_lib_ssi_int_disable(...) SSIIntDisable(__VA_ARGS__)
|
|
#define ti_lib_ssi_int_clear(...) SSIIntClear(__VA_ARGS__)
|
|
#define ti_lib_ssi_int_status(...) SSIIntStatus(__VA_ARGS__)
|
|
#define ti_lib_ssi_dma_enable(...) SSIDMAEnable(__VA_ARGS__)
|
|
#define ti_lib_ssi_dma_disable(...) SSIDMADisable(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* systick.h */
|
|
#include "driverlib/systick.h"
|
|
|
|
#define ti_lib_systick_enable(...) SysTickEnable(__VA_ARGS__)
|
|
#define ti_lib_systick_disable(...) SysTickDisable(__VA_ARGS__)
|
|
#define ti_lib_systick_int_register(...) SysTickIntRegister(__VA_ARGS__)
|
|
#define ti_lib_systick_int_unregister(...) SysTickIntUnregister(__VA_ARGS__)
|
|
#define ti_lib_systick_int_enable(...) SysTickIntEnable(__VA_ARGS__)
|
|
#define ti_lib_systick_int_disable(...) SysTickIntDisable(__VA_ARGS__)
|
|
#define ti_lib_systick_period_set(...) SysTickPeriodSet(__VA_ARGS__)
|
|
#define ti_lib_systick_period_get(...) SysTickPeriodGet(__VA_ARGS__)
|
|
#define ti_lib_systick_value_get(...) SysTickValueGet(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* timer.h */
|
|
#include "driverlib/timer.h"
|
|
|
|
#define ti_lib_timer_enable(...) TimerEnable(__VA_ARGS__)
|
|
#define ti_lib_timer_disable(...) TimerDisable(__VA_ARGS__)
|
|
#define ti_lib_timer_configure(...) TimerConfigure(__VA_ARGS__)
|
|
#define ti_lib_timer_level_control(...) TimerLevelControl(__VA_ARGS__)
|
|
#define ti_lib_timer_event_control(...) TimerEventControl(__VA_ARGS__)
|
|
#define ti_lib_timer_stall_control(...) TimerStallControl(__VA_ARGS__)
|
|
#define ti_lib_timer_wait_on_trigger_control(...) TimerWaitOnTriggerControl(__VA_ARGS__)
|
|
#define ti_lib_timer_rtc_enable(...) TimerRtcEnable(__VA_ARGS__)
|
|
#define ti_lib_timer_rtc_disable(...) TimerRtcDisable(__VA_ARGS__)
|
|
#define ti_lib_timer_prescale_set(...) TimerPrescaleSet(__VA_ARGS__)
|
|
#define ti_lib_timer_prescale_get(...) TimerPrescaleGet(__VA_ARGS__)
|
|
#define ti_lib_timer_prescale_match_set(...) TimerPrescaleMatchSet(__VA_ARGS__)
|
|
#define ti_lib_timer_prescale_match_get(...) TimerPrescaleMatchGet(__VA_ARGS__)
|
|
#define ti_lib_timer_load_set(...) TimerLoadSet(__VA_ARGS__)
|
|
#define ti_lib_timer_load_get(...) TimerLoadGet(__VA_ARGS__)
|
|
#define ti_lib_timer_value_get(...) TimerValueGet(__VA_ARGS__)
|
|
#define ti_lib_timer_match_set(...) TimerMatchSet(__VA_ARGS__)
|
|
#define ti_lib_timer_match_get(...) TimerMatchGet(__VA_ARGS__)
|
|
#define ti_lib_timer_int_register(...) TimerIntRegister(__VA_ARGS__)
|
|
#define ti_lib_timer_int_unregister(...) TimerIntUnregister(__VA_ARGS__)
|
|
#define ti_lib_timer_int_enable(...) TimerIntEnable(__VA_ARGS__)
|
|
#define ti_lib_timer_int_disable(...) TimerIntDisable(__VA_ARGS__)
|
|
#define ti_lib_timer_int_status(...) TimerIntStatus(__VA_ARGS__)
|
|
#define ti_lib_timer_int_clear(...) TimerIntClear(__VA_ARGS__)
|
|
#define ti_lib_timer_synchronize(...) TimerSynchronize(__VA_ARGS__)
|
|
#define ti_lib_timer_ccp_combine_enable(...) TimerCcpCombineEnable(__VA_ARGS__)
|
|
#define ti_lib_timer_ccp_combine_disable(...) TimerCcpCombineDisable(__VA_ARGS__)
|
|
#define ti_lib_timer_match_update_mode(...) TimerMatchUpdateMode(__VA_ARGS__)
|
|
#define ti_lib_timer_interval_load_mode(...) TimerIntervalLoadMode(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* uart.h */
|
|
#include "driverlib/uart.h"
|
|
|
|
#define ti_lib_uart_parity_mode_set(...) UARTParityModeSet(__VA_ARGS__)
|
|
#define ti_lib_uart_parity_mode_get(...) UARTParityModeGet(__VA_ARGS__)
|
|
#define ti_lib_uart_fifo_level_set(...) UARTFIFOLevelSet(__VA_ARGS__)
|
|
#define ti_lib_uart_fifo_level_get(...) UARTFIFOLevelGet(__VA_ARGS__)
|
|
#define ti_lib_uart_config_set_exp_clk(...) UARTConfigSetExpClk(__VA_ARGS__)
|
|
#define ti_lib_uart_config_get_exp_clk(...) UARTConfigGetExpClk(__VA_ARGS__)
|
|
#define ti_lib_uart_enable(...) UARTEnable(__VA_ARGS__)
|
|
#define ti_lib_uart_disable(...) UARTDisable(__VA_ARGS__)
|
|
#define ti_lib_uart_fifo_enable(...) UARTFIFOEnable(__VA_ARGS__)
|
|
#define ti_lib_uart_fifo_disable(...) UARTFIFODisable(__VA_ARGS__)
|
|
#define ti_lib_uart_chars_avail(...) UARTCharsAvail(__VA_ARGS__)
|
|
#define ti_lib_uart_space_avail(...) UARTSpaceAvail(__VA_ARGS__)
|
|
#define ti_lib_uart_char_get_non_blocking(...) UARTCharGetNonBlocking(__VA_ARGS__)
|
|
#define ti_lib_uart_char_get(...) UARTCharGet(__VA_ARGS__)
|
|
#define ti_lib_uart_char_put_non_blocking(...) UARTCharPutNonBlocking(__VA_ARGS__)
|
|
#define ti_lib_uart_char_put(...) UARTCharPut(__VA_ARGS__)
|
|
#define ti_lib_uart_break_ctl(...) UARTBreakCtl(__VA_ARGS__)
|
|
#define ti_lib_uart_busy(...) UARTBusy(__VA_ARGS__)
|
|
#define ti_lib_uart_int_register(...) UARTIntRegister(__VA_ARGS__)
|
|
#define ti_lib_uart_int_unregister(...) UARTIntUnregister(__VA_ARGS__)
|
|
#define ti_lib_uart_int_enable(...) UARTIntEnable(__VA_ARGS__)
|
|
#define ti_lib_uart_int_disable(...) UARTIntDisable(__VA_ARGS__)
|
|
#define ti_lib_uart_int_status(...) UARTIntStatus(__VA_ARGS__)
|
|
#define ti_lib_uart_int_clear(...) UARTIntClear(__VA_ARGS__)
|
|
#define ti_lib_uart_dma_enable(...) UARTDMAEnable(__VA_ARGS__)
|
|
#define ti_lib_uart_dma_disable(...) UARTDMADisable(__VA_ARGS__)
|
|
#define ti_lib_uart_rx_error_get(...) UARTRxErrorGet(__VA_ARGS__)
|
|
#define ti_lib_uart_rx_error_clear(...) UARTRxErrorClear(__VA_ARGS__)
|
|
#define ti_lib_uart_hw_flow_control_en(...) UARTHwFlowControlEnable(__VA_ARGS__)
|
|
#define ti_lib_uart_hw_flow_control_dis(...) UARTHwFlowControlDisable(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* vims.h */
|
|
#include "driverlib/vims.h"
|
|
|
|
#define ti_lib_vims_configure(...) VIMSConfigure(__VA_ARGS__)
|
|
#define ti_lib_vims_mode_set(...) VIMSModeSet(__VA_ARGS__)
|
|
#define ti_lib_vims_mode_get(...) VIMSModeGet(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
/* watchdog.h */
|
|
#include "driverlib/watchdog.h"
|
|
|
|
#define ti_lib_watchdog_running(...) WatchdogRunning(__VA_ARGS__)
|
|
#define ti_lib_watchdog_enable(...) WatchdogEnable(__VA_ARGS__)
|
|
#define ti_lib_watchdog_reset_enable(...) WatchdogResetEnable(__VA_ARGS__)
|
|
#define ti_lib_watchdog_reset_disable(...) WatchdogResetDisable(__VA_ARGS__)
|
|
#define ti_lib_watchdog_lock(...) WatchdogLock(__VA_ARGS__)
|
|
#define ti_lib_watchdog_unlock(...) WatchdogUnlock(__VA_ARGS__)
|
|
#define ti_lib_watchdog_lock_state(...) WatchdogLockState(__VA_ARGS__)
|
|
#define ti_lib_watchdog_reload_set(...) WatchdogReloadSet(__VA_ARGS__)
|
|
#define ti_lib_watchdog_reload_get(...) WatchdogReloadGet(__VA_ARGS__)
|
|
#define ti_lib_watchdog_value_get(...) WatchdogValueGet(__VA_ARGS__)
|
|
#define ti_lib_watchdog_int_register(...) WatchdogIntRegister(__VA_ARGS__)
|
|
#define ti_lib_watchdog_int_unregister(...) WatchdogIntUnregister(__VA_ARGS__)
|
|
#define ti_lib_watchdog_int_enable(...) WatchdogIntEnable(__VA_ARGS__)
|
|
#define ti_lib_watchdog_int_status(...) WatchdogIntStatus(__VA_ARGS__)
|
|
#define ti_lib_watchdog_int_clear(...) WatchdogIntClear(__VA_ARGS__)
|
|
#define ti_lib_watchdog_int_type_set(...) WatchdogIntTypeSet(__VA_ARGS__)
|
|
#define ti_lib_watchdog_stall_enable(...) WatchdogStallEnable(__VA_ARGS__)
|
|
#define ti_lib_watchdog_stall_disable(...) WatchdogStallDisable(__VA_ARGS__)
|
|
/*---------------------------------------------------------------------------*/
|
|
#endif /* TI_LIB_H_ */
|
|
/*---------------------------------------------------------------------------*/
|
|
/**
|
|
* @}
|
|
* @}
|
|
*/
|