📄 rom_map.h
字号:
//*****************************************************************************
//
// rom_map.h - Macros to facilitate calling functions in the ROM when they are
// available and in flash otherwise.
//
// Copyright (c) 2008 Luminary Micro, Inc. All rights reserved.
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws. All rights are reserved. You may not combine
// this software with "viral" open-source software in order to form a larger
// program. Any use in violation of the foregoing restrictions may subject
// the user to criminal sanctions under applicable laws, as well as to civil
// liability for the breach of the terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 3416 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************
#ifndef __ROM_MAP_H__
#define __ROM_MAP_H__
//*****************************************************************************
//
// Macros for the ADC API.
//
//*****************************************************************************
#ifdef ROM_ADCSequenceDataGet
#define MAP_ADCSequenceDataGet \
ROM_ADCSequenceDataGet
#else
#define MAP_ADCSequenceDataGet \
ADCSequenceDataGet
#endif
#ifdef ROM_ADCIntDisable
#define MAP_ADCIntDisable \
ROM_ADCIntDisable
#else
#define MAP_ADCIntDisable \
ADCIntDisable
#endif
#ifdef ROM_ADCIntEnable
#define MAP_ADCIntEnable \
ROM_ADCIntEnable
#else
#define MAP_ADCIntEnable \
ADCIntEnable
#endif
#ifdef ROM_ADCIntStatus
#define MAP_ADCIntStatus \
ROM_ADCIntStatus
#else
#define MAP_ADCIntStatus \
ADCIntStatus
#endif
#ifdef ROM_ADCIntClear
#define MAP_ADCIntClear \
ROM_ADCIntClear
#else
#define MAP_ADCIntClear \
ADCIntClear
#endif
#ifdef ROM_ADCSequenceEnable
#define MAP_ADCSequenceEnable \
ROM_ADCSequenceEnable
#else
#define MAP_ADCSequenceEnable \
ADCSequenceEnable
#endif
#ifdef ROM_ADCSequenceDisable
#define MAP_ADCSequenceDisable \
ROM_ADCSequenceDisable
#else
#define MAP_ADCSequenceDisable \
ADCSequenceDisable
#endif
#ifdef ROM_ADCSequenceConfigure
#define MAP_ADCSequenceConfigure \
ROM_ADCSequenceConfigure
#else
#define MAP_ADCSequenceConfigure \
ADCSequenceConfigure
#endif
#ifdef ROM_ADCSequenceStepConfigure
#define MAP_ADCSequenceStepConfigure \
ROM_ADCSequenceStepConfigure
#else
#define MAP_ADCSequenceStepConfigure \
ADCSequenceStepConfigure
#endif
#ifdef ROM_ADCSequenceOverflow
#define MAP_ADCSequenceOverflow \
ROM_ADCSequenceOverflow
#else
#define MAP_ADCSequenceOverflow \
ADCSequenceOverflow
#endif
#ifdef ROM_ADCSequenceOverflowClear
#define MAP_ADCSequenceOverflowClear \
ROM_ADCSequenceOverflowClear
#else
#define MAP_ADCSequenceOverflowClear \
ADCSequenceOverflowClear
#endif
#ifdef ROM_ADCSequenceUnderflow
#define MAP_ADCSequenceUnderflow \
ROM_ADCSequenceUnderflow
#else
#define MAP_ADCSequenceUnderflow \
ADCSequenceUnderflow
#endif
#ifdef ROM_ADCSequenceUnderflowClear
#define MAP_ADCSequenceUnderflowClear \
ROM_ADCSequenceUnderflowClear
#else
#define MAP_ADCSequenceUnderflowClear \
ADCSequenceUnderflowClear
#endif
#ifdef ROM_ADCProcessorTrigger
#define MAP_ADCProcessorTrigger \
ROM_ADCProcessorTrigger
#else
#define MAP_ADCProcessorTrigger \
ADCProcessorTrigger
#endif
#ifdef ROM_ADCHardwareOversampleConfigure
#define MAP_ADCHardwareOversampleConfigure \
ROM_ADCHardwareOversampleConfigure
#else
#define MAP_ADCHardwareOversampleConfigure \
ADCHardwareOversampleConfigure
#endif
//*****************************************************************************
//
// Macros for the Comparator API.
//
//*****************************************************************************
#ifdef ROM_ComparatorIntClear
#define MAP_ComparatorIntClear \
ROM_ComparatorIntClear
#else
#define MAP_ComparatorIntClear \
ComparatorIntClear
#endif
#ifdef ROM_ComparatorConfigure
#define MAP_ComparatorConfigure \
ROM_ComparatorConfigure
#else
#define MAP_ComparatorConfigure \
ComparatorConfigure
#endif
#ifdef ROM_ComparatorRefSet
#define MAP_ComparatorRefSet \
ROM_ComparatorRefSet
#else
#define MAP_ComparatorRefSet \
ComparatorRefSet
#endif
#ifdef ROM_ComparatorValueGet
#define MAP_ComparatorValueGet \
ROM_ComparatorValueGet
#else
#define MAP_ComparatorValueGet \
ComparatorValueGet
#endif
#ifdef ROM_ComparatorIntEnable
#define MAP_ComparatorIntEnable \
ROM_ComparatorIntEnable
#else
#define MAP_ComparatorIntEnable \
ComparatorIntEnable
#endif
#ifdef ROM_ComparatorIntDisable
#define MAP_ComparatorIntDisable \
ROM_ComparatorIntDisable
#else
#define MAP_ComparatorIntDisable \
ComparatorIntDisable
#endif
#ifdef ROM_ComparatorIntStatus
#define MAP_ComparatorIntStatus \
ROM_ComparatorIntStatus
#else
#define MAP_ComparatorIntStatus \
ComparatorIntStatus
#endif
//*****************************************************************************
//
// Macros for the Flash API.
//
//*****************************************************************************
#ifdef ROM_FlashProgram
#define MAP_FlashProgram \
ROM_FlashProgram
#else
#define MAP_FlashProgram \
FlashProgram
#endif
#ifdef ROM_FlashUsecGet
#define MAP_FlashUsecGet \
ROM_FlashUsecGet
#else
#define MAP_FlashUsecGet \
FlashUsecGet
#endif
#ifdef ROM_FlashUsecSet
#define MAP_FlashUsecSet \
ROM_FlashUsecSet
#else
#define MAP_FlashUsecSet \
FlashUsecSet
#endif
#ifdef ROM_FlashErase
#define MAP_FlashErase \
ROM_FlashErase
#else
#define MAP_FlashErase \
FlashErase
#endif
#ifdef ROM_FlashProtectGet
#define MAP_FlashProtectGet \
ROM_FlashProtectGet
#else
#define MAP_FlashProtectGet \
FlashProtectGet
#endif
#ifdef ROM_FlashProtectSet
#define MAP_FlashProtectSet \
ROM_FlashProtectSet
#else
#define MAP_FlashProtectSet \
FlashProtectSet
#endif
#ifdef ROM_FlashProtectSave
#define MAP_FlashProtectSave \
ROM_FlashProtectSave
#else
#define MAP_FlashProtectSave \
FlashProtectSave
#endif
#ifdef ROM_FlashUserGet
#define MAP_FlashUserGet \
ROM_FlashUserGet
#else
#define MAP_FlashUserGet \
FlashUserGet
#endif
#ifdef ROM_FlashUserSet
#define MAP_FlashUserSet \
ROM_FlashUserSet
#else
#define MAP_FlashUserSet \
FlashUserSet
#endif
#ifdef ROM_FlashUserSave
#define MAP_FlashUserSave \
ROM_FlashUserSave
#else
#define MAP_FlashUserSave \
FlashUserSave
#endif
#ifdef ROM_FlashIntEnable
#define MAP_FlashIntEnable \
ROM_FlashIntEnable
#else
#define MAP_FlashIntEnable \
FlashIntEnable
#endif
#ifdef ROM_FlashIntDisable
#define MAP_FlashIntDisable \
ROM_FlashIntDisable
#else
#define MAP_FlashIntDisable \
FlashIntDisable
#endif
#ifdef ROM_FlashIntGetStatus
#define MAP_FlashIntGetStatus \
ROM_FlashIntGetStatus
#else
#define MAP_FlashIntGetStatus \
FlashIntGetStatus
#endif
#ifdef ROM_FlashIntClear
#define MAP_FlashIntClear \
ROM_FlashIntClear
#else
#define MAP_FlashIntClear \
FlashIntClear
#endif
//*****************************************************************************
//
// Macros for the GPIO API.
//
//*****************************************************************************
#ifdef ROM_GPIOPinWrite
#define MAP_GPIOPinWrite \
ROM_GPIOPinWrite
#else
#define MAP_GPIOPinWrite \
GPIOPinWrite
#endif
#ifdef ROM_GPIODirModeSet
#define MAP_GPIODirModeSet \
ROM_GPIODirModeSet
#else
#define MAP_GPIODirModeSet \
GPIODirModeSet
#endif
#ifdef ROM_GPIODirModeGet
#define MAP_GPIODirModeGet \
ROM_GPIODirModeGet
#else
#define MAP_GPIODirModeGet \
GPIODirModeGet
#endif
#ifdef ROM_GPIOIntTypeSet
#define MAP_GPIOIntTypeSet \
ROM_GPIOIntTypeSet
#else
#define MAP_GPIOIntTypeSet \
GPIOIntTypeSet
#endif
#ifdef ROM_GPIOIntTypeGet
#define MAP_GPIOIntTypeGet \
ROM_GPIOIntTypeGet
#else
#define MAP_GPIOIntTypeGet \
GPIOIntTypeGet
#endif
#ifdef ROM_GPIOPadConfigSet
#define MAP_GPIOPadConfigSet \
ROM_GPIOPadConfigSet
#else
#define MAP_GPIOPadConfigSet \
GPIOPadConfigSet
#endif
#ifdef ROM_GPIOPadConfigGet
#define MAP_GPIOPadConfigGet \
ROM_GPIOPadConfigGet
#else
#define MAP_GPIOPadConfigGet \
GPIOPadConfigGet
#endif
#ifdef ROM_GPIOPinIntEnable
#define MAP_GPIOPinIntEnable \
ROM_GPIOPinIntEnable
#else
#define MAP_GPIOPinIntEnable \
GPIOPinIntEnable
#endif
#ifdef ROM_GPIOPinIntDisable
#define MAP_GPIOPinIntDisable \
ROM_GPIOPinIntDisable
#else
#define MAP_GPIOPinIntDisable \
GPIOPinIntDisable
#endif
#ifdef ROM_GPIOPinIntStatus
#define MAP_GPIOPinIntStatus \
ROM_GPIOPinIntStatus
#else
#define MAP_GPIOPinIntStatus \
GPIOPinIntStatus
#endif
#ifdef ROM_GPIOPinIntClear
#define MAP_GPIOPinIntClear \
ROM_GPIOPinIntClear
#else
#define MAP_GPIOPinIntClear \
GPIOPinIntClear
#endif
#ifdef ROM_GPIOPinRead
#define MAP_GPIOPinRead \
ROM_GPIOPinRead
#else
#define MAP_GPIOPinRead \
GPIOPinRead
#endif
#ifdef ROM_GPIOPinTypeCAN
#define MAP_GPIOPinTypeCAN \
ROM_GPIOPinTypeCAN
#else
#define MAP_GPIOPinTypeCAN \
GPIOPinTypeCAN
#endif
#ifdef ROM_GPIOPinTypeComparator
#define MAP_GPIOPinTypeComparator \
ROM_GPIOPinTypeComparator
#else
#define MAP_GPIOPinTypeComparator \
GPIOPinTypeComparator
#endif
#ifdef ROM_GPIOPinTypeGPIOInput
#define MAP_GPIOPinTypeGPIOInput \
ROM_GPIOPinTypeGPIOInput
#else
#define MAP_GPIOPinTypeGPIOInput \
GPIOPinTypeGPIOInput
#endif
#ifdef ROM_GPIOPinTypeGPIOOutput
#define MAP_GPIOPinTypeGPIOOutput \
ROM_GPIOPinTypeGPIOOutput
#else
#define MAP_GPIOPinTypeGPIOOutput \
GPIOPinTypeGPIOOutput
#endif
#ifdef ROM_GPIOPinTypeI2C
#define MAP_GPIOPinTypeI2C \
ROM_GPIOPinTypeI2C
#else
#define MAP_GPIOPinTypeI2C \
GPIOPinTypeI2C
#endif
#ifdef ROM_GPIOPinTypePWM
#define MAP_GPIOPinTypePWM \
ROM_GPIOPinTypePWM
#else
#define MAP_GPIOPinTypePWM \
GPIOPinTypePWM
#endif
#ifdef ROM_GPIOPinTypeQEI
#define MAP_GPIOPinTypeQEI \
ROM_GPIOPinTypeQEI
#else
#define MAP_GPIOPinTypeQEI \
GPIOPinTypeQEI
#endif
#ifdef ROM_GPIOPinTypeSSI
#define MAP_GPIOPinTypeSSI \
ROM_GPIOPinTypeSSI
#else
#define MAP_GPIOPinTypeSSI \
GPIOPinTypeSSI
#endif
#ifdef ROM_GPIOPinTypeTimer
#define MAP_GPIOPinTypeTimer \
ROM_GPIOPinTypeTimer
#else
#define MAP_GPIOPinTypeTimer \
GPIOPinTypeTimer
#endif
#ifdef ROM_GPIOPinTypeUART
#define MAP_GPIOPinTypeUART \
ROM_GPIOPinTypeUART
#else
#define MAP_GPIOPinTypeUART \
GPIOPinTypeUART
#endif
#ifdef ROM_GPIOPinTypeGPIOOutputOD
#define MAP_GPIOPinTypeGPIOOutputOD \
ROM_GPIOPinTypeGPIOOutputOD
#else
#define MAP_GPIOPinTypeGPIOOutputOD \
GPIOPinTypeGPIOOutputOD
#endif
//*****************************************************************************
//
// Macros for the I2C API.
//
//*****************************************************************************
#ifdef ROM_I2CMasterDataPut
#define MAP_I2CMasterDataPut \
ROM_I2CMasterDataPut
#else
#define MAP_I2CMasterDataPut \
I2CMasterDataPut
#endif
#ifdef ROM_I2CMasterInitExpClk
#define MAP_I2CMasterInitExpClk \
ROM_I2CMasterInitExpClk
#else
#define MAP_I2CMasterInitExpClk \
I2CMasterInitExpClk
#endif
#ifdef ROM_I2CSlaveInit
#define MAP_I2CSlaveInit \
ROM_I2CSlaveInit
#else
#define MAP_I2CSlaveInit \
I2CSlaveInit
#endif
#ifdef ROM_I2CMasterEnable
#define MAP_I2CMasterEnable \
ROM_I2CMasterEnable
#else
#define MAP_I2CMasterEnable \
I2CMasterEnable
#endif
#ifdef ROM_I2CSlaveEnable
#define MAP_I2CSlaveEnable \
ROM_I2CSlaveEnable
#else
#define MAP_I2CSlaveEnable \
I2CSlaveEnable
#endif
#ifdef ROM_I2CMasterDisable
#define MAP_I2CMasterDisable \
ROM_I2CMasterDisable
#else
#define MAP_I2CMasterDisable \
I2CMasterDisable
#endif
#ifdef ROM_I2CSlaveDisable
#define MAP_I2CSlaveDisable \
ROM_I2CSlaveDisable
#else
#define MAP_I2CSlaveDisable \
I2CSlaveDisable
#endif
#ifdef ROM_I2CMasterIntEnable
#define MAP_I2CMasterIntEnable \
ROM_I2CMasterIntEnable
#else
#define MAP_I2CMasterIntEnable \
I2CMasterIntEnable
#endif
#ifdef ROM_I2CSlaveIntEnable
#define MAP_I2CSlaveIntEnable \
ROM_I2CSlaveIntEnable
#else
#define MAP_I2CSlaveIntEnable \
I2CSlaveIntEnable
#endif
#ifdef ROM_I2CMasterIntDisable
#define MAP_I2CMasterIntDisable \
ROM_I2CMasterIntDisable
#else
#define MAP_I2CMasterIntDisable \
I2CMasterIntDisable
#endif
#ifdef ROM_I2CSlaveIntDisable
#define MAP_I2CSlaveIntDisable \
ROM_I2CSlaveIntDisable
#else
#define MAP_I2CSlaveIntDisable \
I2CSlaveIntDisable
#endif
#ifdef ROM_I2CMasterIntStatus
#define MAP_I2CMasterIntStatus \
ROM_I2CMasterIntStatus
#else
#define MAP_I2CMasterIntStatus \
I2CMasterIntStatus
#endif
#ifdef ROM_I2CSlaveIntStatus
#define MAP_I2CSlaveIntStatus \
ROM_I2CSlaveIntStatus
#else
#define MAP_I2CSlaveIntStatus \
I2CSlaveIntStatus
#endif
#ifdef ROM_I2CMasterIntClear
#define MAP_I2CMasterIntClear \
ROM_I2CMasterIntClear
#else
#define MAP_I2CMasterIntClear \
I2CMasterIntClear
#endif
#ifdef ROM_I2CSlaveIntClear
#define MAP_I2CSlaveIntClear \
ROM_I2CSlaveIntClear
#else
#define MAP_I2CSlaveIntClear \
I2CSlaveIntClear
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -