mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-13 04:33:18 +08:00
[bsp][tm4c129x] Upgrade the Tiva Peripheral Driver Library to version 2.2.0.295.
This commit is contained in:
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// adc.c - Driver for the ADC.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -554,7 +554,7 @@ ADCSequenceConfigure(uint32_t ui32Base, uint32_t ui32SequenceNum,
|
||||
// Set the shift for the module and generator
|
||||
//
|
||||
ui32Gen = (ui32Gen - ADC_TRIGGER_PWM0) * 8;
|
||||
|
||||
|
||||
HWREG(ui32Base + ADC_O_TSSEL) = ((HWREG(ui32Base + ADC_O_TSSEL) &
|
||||
~(0x30 << ui32Gen)) |
|
||||
((ui32Trigger & 0x30) << ui32Gen));
|
||||
@@ -568,10 +568,15 @@ ADCSequenceConfigure(uint32_t ui32Base, uint32_t ui32SequenceNum,
|
||||
//! \param ui32Base is the base address of the ADC module.
|
||||
//! \param ui32SequenceNum is the sample sequence number.
|
||||
//! \param ui32Step is the step to be configured.
|
||||
//! \param ui32Config is the configuration of this step; must be a logical OR
|
||||
//! \param ui32Config is the configuration of this step; is a logical OR
|
||||
//! of \b ADC_CTL_TS, \b ADC_CTL_IE, \b ADC_CTL_END, \b ADC_CTL_D, one of the
|
||||
//! input channel selects (\b ADC_CTL_CH0 through \b ADC_CTL_CH23), and one of
|
||||
//! the digital comparator selects (\b ADC_CTL_CMP0 through \b ADC_CTL_CMP7).
|
||||
//! On some parts the sample and hold time can be increased by including a
|
||||
//! logical OR of one of \b ADC_CTL_SHOLD_4, \b ADC_CTL_SHOLD_8,
|
||||
//! \b ADC_CTL_SHOLD_16, \b ADC_CTL_SHOLD_32, \b ADC_CTL_SHOLD_64,
|
||||
//! \b ADC_CTL_SHOLD_128 or \b ADC_CTL_SHOLD_256. The default sample time is 4
|
||||
//! ADC clocks.
|
||||
//!
|
||||
//! This function configures the ADC for one step of a sample sequence. The
|
||||
//! ADC can be configured for single-ended or differential operation (the
|
||||
@@ -1010,9 +1015,9 @@ ADCSoftwareOversampleStepConfigure(uint32_t ui32Base, uint32_t ui32SequenceNum,
|
||||
ASSERT((ui32Base == ADC0_BASE) || (ui32Base == ADC1_BASE));
|
||||
ASSERT(ui32SequenceNum < 3);
|
||||
ASSERT(((ui32SequenceNum == 0) &&
|
||||
(ui32Step <
|
||||
(ui32Step <
|
||||
(8 >> g_pui8OversampleFactor[ui32ADCInst][ui32SequenceNum]))) ||
|
||||
(ui32Step <
|
||||
(ui32Step <
|
||||
(4 >> g_pui8OversampleFactor[ui32ADCInst][ui32SequenceNum])));
|
||||
|
||||
//
|
||||
@@ -1029,7 +1034,7 @@ ADCSoftwareOversampleStepConfigure(uint32_t ui32Base, uint32_t ui32SequenceNum,
|
||||
// Loop through the hardware steps that make up this step of the software
|
||||
// oversampled sequence.
|
||||
//
|
||||
for(ui32SequenceNum =
|
||||
for(ui32SequenceNum =
|
||||
(1 << g_pui8OversampleFactor[ui32ADCInst][ui32SequenceNum]);
|
||||
ui32SequenceNum; ui32SequenceNum--)
|
||||
{
|
||||
@@ -1114,9 +1119,9 @@ ADCSoftwareOversampleDataGet(uint32_t ui32Base, uint32_t ui32SequenceNum,
|
||||
ASSERT((ui32Base == ADC0_BASE) || (ui32Base == ADC1_BASE));
|
||||
ASSERT(ui32SequenceNum < 3);
|
||||
ASSERT(((ui32SequenceNum == 0) &&
|
||||
(ui32Count <
|
||||
(ui32Count <
|
||||
(8 >> g_pui8OversampleFactor[ui32ADCInst][ui32SequenceNum]))) ||
|
||||
(ui32Count <
|
||||
(ui32Count <
|
||||
(4 >> g_pui8OversampleFactor[ui32ADCInst][ui32SequenceNum])));
|
||||
|
||||
//
|
||||
@@ -1145,7 +1150,7 @@ ADCSoftwareOversampleDataGet(uint32_t ui32Base, uint32_t ui32SequenceNum,
|
||||
//
|
||||
// Write the averaged sample to the output buffer.
|
||||
//
|
||||
*pui32Buffer++ =
|
||||
*pui32Buffer++ =
|
||||
ui32Accum >> g_pui8OversampleFactor[ui32ADCInst][ui32SequenceNum];
|
||||
}
|
||||
}
|
||||
@@ -1678,7 +1683,7 @@ ADCIntClearEx(uint32_t ui32Base, uint32_t ui32IntFlags)
|
||||
//!
|
||||
//! The ADC reference is set as specified by \e ui32Ref. It must be one of
|
||||
//! \b ADC_REF_INT, or \b ADC_REF_EXT_3V for internal or external reference
|
||||
//! If \b ADC_REF_INT is chosen, then an internal 3V reference is used and
|
||||
//! If \b ADC_REF_INT is chosen, then an internal 3V reference is used and
|
||||
//! no external reference is needed. If \b ADC_REF_EXT_3V is chosen, then
|
||||
//! a 3V reference must be supplied to the AVREF pin.
|
||||
//!
|
||||
@@ -1977,7 +1982,7 @@ ADCClockConfigSet(uint32_t ui32Base, uint32_t ui32Config,
|
||||
//
|
||||
// Check the argument.
|
||||
//
|
||||
ASSERT((ui32Base == ADC0_BASE) || (ui32Base == ADC1_BASE));
|
||||
ASSERT(ui32Base == ADC0_BASE);
|
||||
ASSERT((ui32ClockDiv - 1) <= (ADC_CC_CLKDIV_M >> ADC_CC_CLKDIV_S));
|
||||
|
||||
//
|
||||
@@ -2036,12 +2041,12 @@ ADCClockConfigGet(uint32_t ui32Base, uint32_t *pui32ClockDiv)
|
||||
//
|
||||
// Check the argument.
|
||||
//
|
||||
ASSERT((ui32Base == ADC0_BASE) || (ui32Base == ADC1_BASE));
|
||||
ASSERT(ui32Base == ADC0_BASE);
|
||||
|
||||
//
|
||||
// Read the current configuration.
|
||||
//
|
||||
ui32Config = HWREG(ui32Base + ADC_O_CC);
|
||||
ui32Config = HWREG(ADC0_BASE + ADC_O_CC);
|
||||
|
||||
//
|
||||
// If the clock divider was requested provide the current value.
|
||||
@@ -2060,7 +2065,7 @@ ADCClockConfigGet(uint32_t ui32Base, uint32_t *pui32ClockDiv)
|
||||
//
|
||||
// Add in the sample interval to the configuration.
|
||||
//
|
||||
ui32Config |= (HWREG(ui32Base + ADC_O_PC) & ADC_PC_SR_M) << 4;
|
||||
ui32Config |= (HWREG(ADC0_BASE + ADC_O_PC) & ADC_PC_SR_M) << 4;
|
||||
|
||||
return(ui32Config);
|
||||
}
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// adc.h - ADC headers for using the ADC driver functions.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// aes.c - Driver for the AES module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// aes.h - Defines and Macros for the AES module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// can.c - Driver for the CAN module.
|
||||
//
|
||||
// Copyright (c) 2006-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2006-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -831,7 +831,7 @@ CANIntRegister(uint32_t ui32Base, void (*pfnHandler)(void))
|
||||
IntRegister(ui8IntNumber, pfnHandler);
|
||||
|
||||
//
|
||||
// Enable the Ethernet interrupt.
|
||||
// Enable the CAN interrupt.
|
||||
//
|
||||
IntEnable(ui8IntNumber);
|
||||
}
|
||||
@@ -1077,6 +1077,13 @@ CANIntStatus(uint32_t ui32Base, tCANIntStsReg eIntStsReg)
|
||||
//! being immediately reentered (because the interrupt controller still sees
|
||||
//! the interrupt source asserted).
|
||||
//!
|
||||
//! \note The functions CANIntClear(), CANMessageSet(), and CANMessageClear()
|
||||
//! are not re-entrant. If any of these functions are used in the main
|
||||
//! application code and if any of them are also used within an interrupt
|
||||
//! routine, then the corresponding interrupt for that interrupt routine should
|
||||
//! be disabled prior to the call for any of these functions. The interrupt
|
||||
//! can be re-enabled immediately after the function call has returned.
|
||||
//!
|
||||
//! \return None.
|
||||
//
|
||||
//*****************************************************************************
|
||||
@@ -1470,6 +1477,13 @@ CANErrCntrGet(uint32_t ui32Base, uint32_t *pui32RxCount,
|
||||
//! If you specify a message object buffer that already contains a message
|
||||
//! definition, it is overwritten.
|
||||
//!
|
||||
//! \note The functions CANIntClear(), CANMessageSet(), and CANMessageClear()
|
||||
//! are not re-entrant. If any of these functions are used in the main
|
||||
//! application code and if any of them are also used within an interrupt
|
||||
//! routine, then the corresponding interrupt for that interrupt routine should
|
||||
//! be disabled prior to the call for any of these functions. The interrupt
|
||||
//! can be re-enabled immediately after the function call has returned.
|
||||
//!
|
||||
//! \return None.
|
||||
//
|
||||
//*****************************************************************************
|
||||
@@ -1831,6 +1845,12 @@ CANMessageSet(uint32_t ui32Base, uint32_t ui32ObjID,
|
||||
//! - \b MSG_OBJ_DATA_LOST indicates that at least one message was received on
|
||||
//! this message object and not read by the host before being overwritten.
|
||||
//!
|
||||
//! \note This function is not re-entrant. If it is used in both main
|
||||
//! application code and in an interrupt routine, then the corresponding
|
||||
//! interrupt should be disabled prior to the call for CANMessageGet().
|
||||
//! The interrupt can be re-enabled immediately after the function call has
|
||||
//! returned.
|
||||
//!
|
||||
//! \return None.
|
||||
//
|
||||
//*****************************************************************************
|
||||
@@ -2076,6 +2096,13 @@ CANMessageGet(uint32_t ui32Base, uint32_t ui32ObjID,
|
||||
//! object has been ``cleared,'' it no longer automatically sends or receives
|
||||
//! messages, nor does it generate interrupts.
|
||||
//!
|
||||
//! \note The functions CANIntClear(), CANMessageSet(), and CANMessageClear()
|
||||
//! are not re-entrant. If any of these functions are used in the main
|
||||
//! application code and if any of them are also used within an interrupt
|
||||
//! routine, then the corresponding interrupt for that interrupt routine should
|
||||
//! be disabled prior to the call for any of these functions. The interrupt
|
||||
//! can be re-enabled immediately after the function call has returned.
|
||||
//!
|
||||
//! \return None.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// can.h - Defines and Macros for the CAN controller.
|
||||
//
|
||||
// Copyright (c) 2006-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2006-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// comp.c - Driver for the analog comparator.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// comp.h - Prototypes for the analog comparator driver.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
// cpu.c - Instruction wrappers for special CPU instructions needed by the
|
||||
// drivers.
|
||||
//
|
||||
// Copyright (c) 2006-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2006-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -33,8 +33,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// cpu.h - Prototypes for the CPU instruction wrapper functions.
|
||||
//
|
||||
// Copyright (c) 2006-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2006-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// crc.c - Driver for the CRC module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// crc.h - Defines and Macros for CRC module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// debug.h - Macros for assisting debug of the driver library.
|
||||
//
|
||||
// Copyright (c) 2006-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2006-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// des.c - Driver for the DES data transformation.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// des.h - Defines and Macros for the DES module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// eeprom.c - Driver for programming the on-chip EEPROM.
|
||||
//
|
||||
// Copyright (c) 2010-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2010-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// eeprom.h - Prototypes for the EEPROM driver.
|
||||
//
|
||||
// Copyright (c) 2010-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2010-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
// emac.c - Driver for the Integrated Ethernet Controller on Snowflake-class
|
||||
// Tiva devices.
|
||||
//
|
||||
// Copyright (c) 2013-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2013-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -33,8 +33,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -297,12 +297,12 @@ g_pi16MIIClockDiv[] =
|
||||
//! (where each descriptor includes a field that points to the next descriptor
|
||||
//! in the list). In ring mode, the hardware uses the \e ui32DescSkipSize to
|
||||
//! skip past any application-defined fields after the end of the hardware-
|
||||
//! defined descriptor fields. The parameter value indicates the number of
|
||||
//! 32-bit words to skip after the last field of the hardware-defined
|
||||
//! descriptor to get to the first field of the next descriptor. When using
|
||||
//! arrays of either the \b tEMACDMADescriptor or \b tEMACAltDMADescriptor
|
||||
//! defined descriptor fields. The parameter value indicates the number of
|
||||
//! 32-bit words to skip after the last field of the hardware-defined
|
||||
//! descriptor to get to the first field of the next descriptor. When using
|
||||
//! arrays of either the \b tEMACDMADescriptor or \b tEMACAltDMADescriptor
|
||||
//! types defined for this driver, \e ui32DescSkipSize must be set to 1 to skip
|
||||
//! the \e pvNext pointer added to the end of each of these structures.
|
||||
//! the \e pvNext pointer added to the end of each of these structures.
|
||||
//! Applications may modify these structure definitions to include their own
|
||||
//! application-specific data and modify \e ui32DescSkipSize appropriately if
|
||||
//! desired.
|
||||
@@ -419,8 +419,8 @@ EMACInit(uint32_t ui32Base, uint32_t ui32SysClk, uint32_t ui32BusConfig,
|
||||
//!
|
||||
//! \param ui32Base is the base address of the Ethernet controller.
|
||||
//!
|
||||
//! This function performs a reset of the Ethernet MAC by resetting all logic
|
||||
//! and returning all registers to their default values. The function returns
|
||||
//! This function performs a reset of the Ethernet MAC by resetting all logic
|
||||
//! and returning all registers to their default values. The function returns
|
||||
//! only after the hardware indicates that the reset has completed.
|
||||
//!
|
||||
//! \note To ensure that the reset completes, the selected PHY clock must be
|
||||
@@ -495,7 +495,7 @@ EMACReset(uint32_t ui32Base)
|
||||
//! RMII interface.
|
||||
//!
|
||||
//! If \b EMAC_PHY_TYPE_INTERNAL is selected, the following flags may be ORed
|
||||
//! into \e ui32Config to control various PHY features and modes. These flags
|
||||
//! into \e ui32Config to control various PHY features and modes. These flags
|
||||
//! are ignored if an external PHY is selected.
|
||||
//!
|
||||
//! - \b EMAC_PHY_INT_NIB_TXERR_DET_DIS disables odd nibble transmit error
|
||||
@@ -682,7 +682,7 @@ EMACPHYConfigSet(uint32_t ui32Base, uint32_t ui32Config)
|
||||
//! The back-off limit determines the range of the random time that the MAC
|
||||
//! delays after a collision and before attempting to retransmit a frame. One
|
||||
//! of the following values must be used to select this limit. In each case,
|
||||
//! the retransmission delay in terms of 512 bit time slots, is the lower of
|
||||
//! the retransmission delay in terms of 512 bit time slots, is the lower of
|
||||
//! (2 ** N) and a random number between 0 and the selected backoff-limit.
|
||||
//!
|
||||
//! - \b EMAC_CONFIG_BO_LIMIT_1024
|
||||
@@ -727,10 +727,10 @@ EMACPHYConfigSet(uint32_t ui32Base, uint32_t ui32Config)
|
||||
//! up to 9018 (or 9022 if using VLAN tagging) to be handled without reporting
|
||||
//! giant frame errors.
|
||||
//! - \b EMAC_CONFIG_100MBPS forces the MAC to communicate with the PHY using
|
||||
//! 100Mbps signaling. If this option is not specified, the MAC uses 10Mbps
|
||||
//! signaling. This speed setting is important when using an external RMII
|
||||
//! PHY where the selected rate must match the PHY's setting which may have
|
||||
//! been made as a result of auto-negotiation. When using the internal PHY
|
||||
//! 100Mbps signaling. If this option is not specified, the MAC uses 10Mbps
|
||||
//! signaling. This speed setting is important when using an external RMII
|
||||
//! PHY where the selected rate must match the PHY's setting which may have
|
||||
//! been made as a result of auto-negotiation. When using the internal PHY
|
||||
//! or an external MII PHY, the signaling rate is controlled by the PHY-
|
||||
//! provided transmit and receive clocks.
|
||||
//! - \b EMAC_CONFIG_CS_DISABLE disables Carrier Sense during transmission
|
||||
@@ -743,15 +743,15 @@ EMACPHYConfigSet(uint32_t ui32Base, uint32_t ui32Config)
|
||||
//! of the checksum calculations are reported via status fields in the DMA
|
||||
//! receive descriptors.
|
||||
//! - \b EMAC_CONFIG_RETRY_DISABLE disables retransmission in cases where
|
||||
//! half-duplex mode is in use and a collision occurs. This condition causes
|
||||
//! the current frame to be ignored and a frame abort to be reported in the
|
||||
//! half-duplex mode is in use and a collision occurs. This condition causes
|
||||
//! the current frame to be ignored and a frame abort to be reported in the
|
||||
//! transmit frame status.
|
||||
//! - \b EMAC_CONFIG_AUTO_CRC_STRIPPING strips the last 4 bytes (frame check
|
||||
//! sequence) from all Ether type frames before forwarding the frames to the
|
||||
//! application.
|
||||
//! - \b EMAC_CONFIG_DEFERRAL_CHK_ENABLE enables transmit deferral checking
|
||||
//! in half-duplex mode. When enabled, the transmitter reports an error if it
|
||||
//! is unable to transmit a frame for more than 24288 bit times (or 155680
|
||||
//! in half-duplex mode. When enabled, the transmitter reports an error if it
|
||||
//! is unable to transmit a frame for more than 24288 bit times (or 155680
|
||||
//! bit times in Jumbo frame mode) due to an active carrier sense signal on
|
||||
//! the MII.
|
||||
//!
|
||||
@@ -971,14 +971,14 @@ EMACConfigSet(uint32_t ui32Base, uint32_t ui32Config, uint32_t ui32ModeFlags,
|
||||
//! fields in the DMA receive descriptors.
|
||||
//! - \b EMAC_CONFIG_RETRY_DISABLE indicates that retransmission is disabled
|
||||
//! in cases where half-duplex mode is in use and a collision occurs. This
|
||||
//! condition causes the current frame to be ignored and a frame abort to be
|
||||
//! condition causes the current frame to be ignored and a frame abort to be
|
||||
//! reported in the transmit frame status.
|
||||
//! - \b EMAC_CONFIG_AUTO_CRC_STRIPPING indicates that the last 4 bytes
|
||||
//! (frame check sequence) from all Ether type frames are being stripped before
|
||||
//! frames are forwarded to the application.
|
||||
//! - \b EMAC_CONFIG_DEFERRAL_CHK_ENABLE indicates that transmit deferral
|
||||
//! checking is disabled in half-duplex mode. When enabled, the transmitter
|
||||
//! reports an error if it is unable to transmit a frame for more than 24288
|
||||
//! reports an error if it is unable to transmit a frame for more than 24288
|
||||
//! bit times (or 155680 bit times in Jumbo frame mode) due to an active
|
||||
//! carrier sense signal on the MII.
|
||||
//! - \b EMAC_CONFIG_TX_ENABLED indicates that the MAC transmitter is
|
||||
@@ -1225,7 +1225,7 @@ EMACAddrSet(uint32_t ui32Base, uint32_t ui32Index, const uint8_t *pui8MACAddr)
|
||||
//!
|
||||
//! AC-DE-48-00-00-80
|
||||
//!
|
||||
//! the data is returned with 0xAC in the first byte of the array, 0xDE in
|
||||
//! the data is returned with 0xAC in the first byte of the array, 0xDE in
|
||||
//! the second, 0x48 in the third and so on.
|
||||
//!
|
||||
//! \return None.
|
||||
@@ -1287,7 +1287,7 @@ EMACNumAddrGet(uint32_t ui32Base)
|
||||
//! addresses.
|
||||
//!
|
||||
//! \param ui32Base is the base address of the controller.
|
||||
//! \param ui32Index is the index of the MAC address slot for which the filter
|
||||
//! \param ui32Index is the index of the MAC address slot for which the filter
|
||||
//! is to be set.
|
||||
//! \param ui32Config sets the filter parameters for the given MAC address.
|
||||
//!
|
||||
@@ -1295,9 +1295,9 @@ EMACNumAddrGet(uint32_t ui32Base)
|
||||
//! address slots that the controller supports. This configuration is used
|
||||
//! when perfect filtering (rather than hash table filtering) is selected.
|
||||
//!
|
||||
//! Valid values for \e ui32Index are from 1 to (number of MAC address
|
||||
//! slots - 1). The number of supported MAC address slots may be found by
|
||||
//! calling EMACNumAddrGet(). MAC index 0 is the local MAC address and does
|
||||
//! Valid values for \e ui32Index are from 1 to (number of MAC address
|
||||
//! slots - 1). The number of supported MAC address slots may be found by
|
||||
//! calling EMACNumAddrGet(). MAC index 0 is the local MAC address and does
|
||||
//! not have filtering parameters associated with it.
|
||||
//!
|
||||
//! The \e ui32Config parameter determines how the given MAC address is used
|
||||
@@ -1362,16 +1362,16 @@ EMACAddrFilterSet(uint32_t ui32Base, uint32_t ui32Index, uint32_t ui32Config)
|
||||
//! addresses.
|
||||
//!
|
||||
//! \param ui32Base is the base address of the controller.
|
||||
//! \param ui32Index is the index of the MAC address slot for which the filter
|
||||
//! \param ui32Index is the index of the MAC address slot for which the filter
|
||||
//! is to be queried.
|
||||
//!
|
||||
//! This function returns filtering parameters associated with one of the MAC
|
||||
//! address slots that the controller supports. This configuration is used
|
||||
//! when perfect filtering (rather than hash table filtering) is selected.
|
||||
//!
|
||||
//! Valid values for \e ui32Index are from 1 to (number of MAC address
|
||||
//! slots - 1). The number of supported MAC address slots may be found by
|
||||
//! calling EMACNumAddrGet(). MAC index 0 is the local MAC address and does
|
||||
//! Valid values for \e ui32Index are from 1 to (number of MAC address
|
||||
//! slots - 1). The number of supported MAC address slots may be found by
|
||||
//! calling EMACNumAddrGet(). MAC index 0 is the local MAC address and does
|
||||
//! not have filtering parameters associated with it.
|
||||
//!
|
||||
//! \return Returns the filter configuration as the logical OR of the
|
||||
@@ -1450,7 +1450,7 @@ EMACAddrFilterGet(uint32_t ui32Base, uint32_t ui32Index)
|
||||
//! when the source address field in the frame does not match the values
|
||||
//! programmed into the enabled SA registers.
|
||||
//! - \b EMAC_FRMFILTER_INV_SADDR enables inverse source address filtering.
|
||||
//! When this option is specified, frames for which the SA does not match the
|
||||
//! When this option is specified, frames for which the SA does not match the
|
||||
//! SA registers are marked as passing the source address filter.
|
||||
//! - \b EMAC_FRMFILTER_BROADCAST configures the MAC to discard all incoming
|
||||
//! broadcast frames.
|
||||
@@ -1530,7 +1530,7 @@ EMACFrameFilterSet(uint32_t ui32Base, uint32_t ui32FilterOpts)
|
||||
//! received frames when the source address field in the frame does not match
|
||||
//! the values programmed into the enabled SA registers.
|
||||
//! - \b EMAC_FRMFILTER_INV_SADDR enables inverse source address filtering.
|
||||
//! When this option is specified, frames for which the SA does not match the
|
||||
//! When this option is specified, frames for which the SA does not match the
|
||||
//! SA registers are marked as passing the source address filter.
|
||||
//! - \b EMAC_FRMFILTER_BROADCAST indicates that the MAC is configured to
|
||||
//! discard all incoming broadcast frames.
|
||||
@@ -1621,9 +1621,9 @@ EMACHashFilterSet(uint32_t ui32Base, uint32_t ui32HashHi, uint32_t ui32HashLo)
|
||||
//! Returns the current MAC address hash filter table.
|
||||
//!
|
||||
//! \param ui32Base is the base address of the controller.
|
||||
//! \param pui32HashHi points to storage to be written with the upper 32 bits
|
||||
//! \param pui32HashHi points to storage to be written with the upper 32 bits
|
||||
//! of the current 64-bit hash filter table.
|
||||
//! \param pui32HashLo points to storage to be written with the lower 32 bits
|
||||
//! \param pui32HashLo points to storage to be written with the lower 32 bits
|
||||
//! of the current 64-bit hash filter table.
|
||||
//!
|
||||
//! This function may be used to retrieve the current 64-bit hash filter table
|
||||
@@ -1766,8 +1766,8 @@ EMACRxWatchdogTimerSet(uint32_t ui32Base, uint8_t ui8Timeout)
|
||||
//! - \b EMAC_STATUS_RWC_ACTIVE
|
||||
//! - \b EMAC_STATUS_RPE_ACTIVE
|
||||
//!
|
||||
//! The transmit frame controller status can be extracted from the returned
|
||||
//! value by ANDing with \b EMAC_STATUS_TFC_STATE_MASK and is one of the
|
||||
//! The transmit frame controller status can be extracted from the returned
|
||||
//! value by ANDing with \b EMAC_STATUS_TFC_STATE_MASK and is one of the
|
||||
//! following:
|
||||
//!
|
||||
//! - \b EMAC_STATUS_TFC_STATE_IDLE
|
||||
@@ -1775,8 +1775,8 @@ EMACRxWatchdogTimerSet(uint32_t ui32Base, uint8_t ui8Timeout)
|
||||
//! - \b EMAC_STATUS_TFC_STATE_PAUSING
|
||||
//! - \b EMAC_STATUS_TFC_STATE_WRITING
|
||||
//!
|
||||
//! The transmit FIFO read controller status can be extracted from the returned
|
||||
//! value by ANDing with \b EMAC_STATUS_TRC_STATE_MASK and is one of the
|
||||
//! The transmit FIFO read controller status can be extracted from the returned
|
||||
//! value by ANDing with \b EMAC_STATUS_TRC_STATE_MASK and is one of the
|
||||
//! following:
|
||||
//!
|
||||
//! - \b EMAC_STATUS_TRC_STATE_IDLE
|
||||
@@ -1785,7 +1785,7 @@ EMACRxWatchdogTimerSet(uint32_t ui32Base, uint8_t ui8Timeout)
|
||||
//! - \b EMAC_STATUS_TRC_STATE_STATUS
|
||||
//!
|
||||
//! The current receive FIFO levels can be extracted from the returned value
|
||||
//! by ANDing with \b EMAC_STATUS_RX_FIFO_LEVEL_MASK and is one of the
|
||||
//! by ANDing with \b EMAC_STATUS_RX_FIFO_LEVEL_MASK and is one of the
|
||||
//! following:
|
||||
//!
|
||||
//! - \b EMAC_STATUS_RX_FIFO_EMPTY indicating that the FIFO is empty.
|
||||
@@ -1796,7 +1796,7 @@ EMACRxWatchdogTimerSet(uint32_t ui32Base, uint8_t ui8Timeout)
|
||||
//! - \b EMAC_STATUS_RX_FIFO_FULL indicating that the FIFO is full.
|
||||
//!
|
||||
//! The current receive FIFO state can be extracted from the returned value
|
||||
//! by ANDing with \b EMAC_STATUS_RX_FIFO_STATE_MASK and is one of the
|
||||
//! by ANDing with \b EMAC_STATUS_RX_FIFO_STATE_MASK and is one of the
|
||||
//! following:
|
||||
//!
|
||||
//! - \b EMAC_STATUS_RX_FIFO_IDLE
|
||||
@@ -2049,7 +2049,7 @@ EMACTxDMADescriptorListSet(uint32_t ui32Base, tEMACDMADescriptor *pDescriptor)
|
||||
//! \param ui32Base is the base address of the controller.
|
||||
//!
|
||||
//! This function returns a pointer to the head of the Ethernet MAC's transmit
|
||||
//! DMA descriptor list. This value corresponds to the pointer originally set
|
||||
//! DMA descriptor list. This value corresponds to the pointer originally set
|
||||
//! using a call to EMACTxDMADescriptorListSet().
|
||||
//!
|
||||
//! \return Returns a pointer to the start of the DMA transmit descriptor list.
|
||||
@@ -2438,8 +2438,8 @@ EMACIntUnregister(uint32_t ui32Base)
|
||||
//! - \b EMAC_INT_RX_OVERFLOW indicates that an overflow was experienced
|
||||
//! during reception.
|
||||
//! - \b EMAC_INT_TX_JABBER indicates that the transmit jabber timer expired.
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! enter the Stopped state.
|
||||
//! - \b EMAC_INT_TX_NO_BUFFER indicates that the host owns the next buffer
|
||||
//! in the DMA's transmit descriptor list and that the DMA cannot, therefore,
|
||||
@@ -2540,8 +2540,8 @@ EMACIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
|
||||
//! - \b EMAC_INT_RX_OVERFLOW indicates that an overflow was experienced
|
||||
//! during reception.
|
||||
//! - \b EMAC_INT_TX_JABBER indicates that the transmit jabber timer expired.
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! enter the Stopped state.
|
||||
//! - \b EMAC_INT_TX_NO_BUFFER indicates that the host owns the next buffer
|
||||
//! in the DMA's transmit descriptor list and that the DMA cannot, therefore,
|
||||
@@ -2660,8 +2660,8 @@ EMACIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags)
|
||||
//! - \b EMAC_INT_RX_OVERFLOW indicates that an overflow was experienced
|
||||
//! during reception.
|
||||
//! - \b EMAC_INT_TX_JABBER indicates that the transmit jabber timer expired.
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! enter the Stopped state.
|
||||
//! - \b EMAC_INT_TX_NO_BUFFER indicates that the host owns the next buffer
|
||||
//! in the DMA's transmit descriptor list and that the DMA cannot, therefore,
|
||||
@@ -2767,8 +2767,8 @@ EMACIntStatus(uint32_t ui32Base, bool bMasked)
|
||||
//! - \b EMAC_INT_RX_OVERFLOW indicates that an overflow was experienced
|
||||
//! during reception.
|
||||
//! - \b EMAC_INT_TX_JABBER indicates that the transmit jabber timer expired.
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! This condition occurs when the frame size exceeds 2048 bytes (or 10240
|
||||
//! bytes in Jumbo Frame mode) and causes the transmit process to abort and
|
||||
//! enter the Stopped state.
|
||||
//! - \b EMAC_INT_TX_NO_BUFFER indicates that the host owns the next buffer
|
||||
//! in the DMA's transmit descriptor list and that the DMA cannot, therefore,
|
||||
@@ -3160,7 +3160,7 @@ EMACPHYPowerOn(uint32_t ui32Base, uint8_t ui8PhyAddr)
|
||||
//! simple 31-bit counter, rolling over to 0 after reaching 0x7FFFFFFF. In
|
||||
//! this case, each lsb of the subsecond counter represents 0.465 ns (assuming
|
||||
//! the definition of 1 second resolution for the seconds counter). When
|
||||
//! binary rollover mode is selected, the subsecond counter acts as a
|
||||
//! binary rollover mode is selected, the subsecond counter acts as a
|
||||
//! nanosecond counter and rolls over to 0 after reaching 999,999,999 making
|
||||
//! each lsb represent 1 nanosecond.
|
||||
//!
|
||||
@@ -3250,7 +3250,7 @@ EMACTimestampConfigSet(uint32_t ui32Base, uint32_t ui32Config,
|
||||
//! are filtered using any of the configured MAC addresses. Messages with a
|
||||
//! destination address programmed into the MAC address filter are passed,
|
||||
//! others are discarded. If this flag is absent, the MAC address is ignored.
|
||||
//! - \b EMAC_TS_UPDATE_FINE implements the fine update method that causes the
|
||||
//! - \b EMAC_TS_UPDATE_FINE implements the fine update method that causes the
|
||||
//! IEEE 1588 clock to advance by the the value returned in the
|
||||
//! \e *pui32SubSecondInc parameter each time a carry is generated from the
|
||||
//! addend accumulator register. If this flag is absent, the coarse update
|
||||
@@ -3689,7 +3689,7 @@ EMACTimestampTargetIntDisable(uint32_t ui32Base)
|
||||
ASSERT(ui32Base == EMAC0_BASE);
|
||||
|
||||
//
|
||||
// Clear the bit to disable the timestamp target interrupt. This bit
|
||||
// Clear the bit to disable the timestamp target interrupt. This bit
|
||||
// clears automatically when the interrupt fires, so it only must be
|
||||
// disabled if you want to cancel a previously-set interrupt.
|
||||
//
|
||||
@@ -4022,7 +4022,7 @@ EMACTimestampPPSPeriodSet(uint32_t ui32Base, uint32_t ui32Period,
|
||||
//! (Type = 0x88A8) frames as valid VLAN-tagged frames. If absent, only
|
||||
//! frames with type 0x8100 are considered valid VLAN frames.
|
||||
//! - \b EMAC_VLAN_RX_INVERSE_MATCH causes the receiver to pass all VLAN
|
||||
//! frames for which the tags do not match the supplied \e ui16Tag value. If
|
||||
//! frames for which the tags do not match the supplied \e ui16Tag value. If
|
||||
//! this flag is absent, only tagged frames matching \e ui16Tag are passed.
|
||||
//! - \b EMAC_VLAN_RX_12BIT_TAG causes the receiver to compare only the
|
||||
//! bottom 12 bits of \e ui16Tag when performing either perfect or hash
|
||||
@@ -4082,7 +4082,7 @@ EMACVLANRxConfigSet(uint32_t ui32Base, uint16_t ui16Tag, uint32_t ui32Config)
|
||||
//! S-VLAN (Type = 0x88A8) frames as valid VLAN-tagged frames. If absent, only
|
||||
//! frames with type 0x8100 are considered valid VLAN frames.
|
||||
//! - \b EMAC_VLAN_RX_INVERSE_MATCH indicates that the receiver passes all
|
||||
//! VLAN frames for which the tags do not match the \e *pui16Tag value. If
|
||||
//! VLAN frames for which the tags do not match the \e *pui16Tag value. If
|
||||
//! this flag is absent, only tagged frames matching \e *pui16Tag are passed.
|
||||
//! - \b EMAC_VLAN_RX_12BIT_TAG indicates that the receiver is comparing only
|
||||
//! the bottom 12 bits of \e *pui16Tag when performing either perfect or hash
|
||||
@@ -4254,7 +4254,7 @@ EMACVLANTxConfigGet(uint32_t ui32Base, uint16_t *pui16Tag)
|
||||
//! Returns the bit number to set in the VLAN hash filter corresponding to a
|
||||
//! given tag.
|
||||
//!
|
||||
//! \param ui16Tag is the VLAN tag for which the hash filter bit number is to
|
||||
//! \param ui16Tag is the VLAN tag for which the hash filter bit number is to
|
||||
//! be determined.
|
||||
//!
|
||||
//! This function may be used to determine which bit in the VLAN hash filter
|
||||
@@ -4379,8 +4379,8 @@ EMACVLANHashFilterGet(uint32_t ui32Base)
|
||||
//! calculated on up to 31 payload bytes in the frame. The actual bytes used
|
||||
//! in the CRC calculation are defined by means of a bit mask where a ``1''
|
||||
//! indicates that a byte in the frame should contribute to the CRC
|
||||
//! calculation and a ``0'' indicates that the byte should be skipped, as well
|
||||
//! as an offset from the start of the frame to the payload byte that represents
|
||||
//! calculation and a ``0'' indicates that the byte should be skipped, as well
|
||||
//! as an offset from the start of the frame to the payload byte that represents
|
||||
//! the first byte in the 31-byte CRC-checked sequence.
|
||||
//!
|
||||
//! The \e pFilter parameter points to a structure containing the information
|
||||
@@ -4400,7 +4400,7 @@ EMACVLANHashFilterGet(uint32_t ui32Base)
|
||||
//! - \b pui8Offset defines the zero-based index of the byte within the frame
|
||||
//! at which CRC checking defined by \b pui32ByteMask begins.
|
||||
//! Alternatively, this value can be thought of as the number of bytes in the
|
||||
//! frame that the MAC skips before accumulating the CRC based on the pattern
|
||||
//! frame that the MAC skips before accumulating the CRC based on the pattern
|
||||
//! in \b pui32ByteMask.
|
||||
//! - \b pui16CRC provides the value of the calculated CRC for a valid remote
|
||||
//! wake-up frame. If the incoming frame is processed according to the filter
|
||||
@@ -4466,7 +4466,7 @@ EMACRemoteWakeUpFrameFilterSet(uint32_t ui32Base,
|
||||
//! actual bytes used in the CRC calculation are defined by means of a bit mask
|
||||
//! where a ``1'' indicates that a byte in the frame should contribute to the
|
||||
//! CRC calculation and a ``0'' indicates that the byte should be skipped, and
|
||||
//! an offset from the start of the frame to the payload byte that represents
|
||||
//! an offset from the start of the frame to the payload byte that represents
|
||||
//! the first byte in the 31-byte CRC-checked sequence.
|
||||
//!
|
||||
//! The \e pFilter parameter points to storage that is written with a
|
||||
@@ -4756,7 +4756,7 @@ EMACWoLEnter(uint32_t ui32Base)
|
||||
//! This function is used to configure the LPI timer and control registers when
|
||||
//! the link is established as EEE mode or when the link is lost. When the link
|
||||
//! is established as EEE, then \e ui16LPILSTimer is programmed as the link
|
||||
//! status timer value and \e ui16LPITWTimer is programmed as the transmit wait
|
||||
//! status timer value and \e ui16LPITWTimer is programmed as the transmit wait
|
||||
//! timer value. The parameter \e bLPIConfig is used to decide if the transmit
|
||||
//! path must be automated or should be under user control.
|
||||
//!
|
||||
@@ -4773,7 +4773,7 @@ EMACLPIConfig(uint32_t ui32Base, bool bLPIConfig, uint16_t ui16LPILSTimer,
|
||||
// Parameter sanity check.
|
||||
//
|
||||
ASSERT(ui32Base == EMAC0_BASE);
|
||||
|
||||
|
||||
ui32TimerValue = ((ui16LPILSTimer << EMAC_LPITIMERCTL_LST_S) &
|
||||
EMAC_LPITIMERCTL_LST_M);
|
||||
ui32TimerValue |= ui16LPITWTimer & EMAC_LPITIMERCTL_TWT_M;
|
||||
@@ -4932,7 +4932,7 @@ EMACPHYMMDWrite(uint32_t ui32Base, uint8_t ui8PhyAddr, uint16_t ui16RegAddr,
|
||||
//
|
||||
// Write the extended register value.
|
||||
//
|
||||
EMACPHYWrite(ui32Base, ui8PhyAddr, EPHY_REGCTL,
|
||||
EMACPHYWrite(ui32Base, ui8PhyAddr, EPHY_REGCTL,
|
||||
(0x4000 | DEV_ADDR(ui16RegAddr)));
|
||||
EMACPHYWrite(ui32Base, ui8PhyAddr, EPHY_REGCTL, ui16Data);
|
||||
}
|
||||
@@ -4970,7 +4970,7 @@ EMACPHYMMDRead(uint32_t ui32Base, uint8_t ui8PhyAddr, uint16_t ui16RegAddr)
|
||||
//
|
||||
// Read the extended register value.
|
||||
//
|
||||
EMACPHYWrite(ui32Base, ui8PhyAddr, EPHY_REGCTL,
|
||||
EMACPHYWrite(ui32Base, ui8PhyAddr, EPHY_REGCTL,
|
||||
(0x4000 | DEV_ADDR(ui16RegAddr)));
|
||||
return(EMACPHYRead(ui32Base, ui8PhyAddr, EPHY_ADDAR));
|
||||
}
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
// emac.h - Defines and Macros for the Ethernet module on Snowflake-class
|
||||
// devices.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -33,8 +33,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// epi.c - Driver for the EPI module.
|
||||
//
|
||||
// Copyright (c) 2008-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2008-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// epi.h - Prototypes and macros for the EPI module.
|
||||
//
|
||||
// Copyright (c) 2008-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2008-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -338,7 +338,7 @@ EPIWorkaroundWordWrite(uint32_t *pui32Addr, uint32_t ui32Value)
|
||||
__asm
|
||||
{
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
NOP
|
||||
@@ -364,7 +364,7 @@ EPIWorkaroundWordRead(uint32_t *pui32Addr)
|
||||
__asm
|
||||
{
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
NOP
|
||||
@@ -392,7 +392,7 @@ EPIWorkaroundHWordWrite(uint16_t *pui16Addr, uint16_t ui16Value)
|
||||
__asm
|
||||
{
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
NOP
|
||||
@@ -419,7 +419,7 @@ EPIWorkaroundHWordRead(uint16_t *pui16Addr)
|
||||
__asm
|
||||
{
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
NOP
|
||||
@@ -447,7 +447,7 @@ EPIWorkaroundByteWrite(uint8_t *pui8Addr, uint8_t ui8Value)
|
||||
__asm
|
||||
{
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
NOP
|
||||
@@ -474,7 +474,7 @@ EPIWorkaroundByteRead(uint8_t *pui8Addr)
|
||||
__asm
|
||||
{
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
NOP
|
||||
@@ -525,7 +525,7 @@ EPIWorkaroundWordWrite(uint32_t *pui32Addr, uint32_t ui32Value)
|
||||
|
||||
__asm volatile (
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
" NOP\n"
|
||||
@@ -553,7 +553,7 @@ EPIWorkaroundWordRead(uint32_t *pui32Addr)
|
||||
|
||||
__asm volatile(
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
" NOP\n"
|
||||
@@ -580,7 +580,7 @@ EPIWorkaroundHWordWrite(uint16_t *pui16Addr, uint16_t ui16Value)
|
||||
|
||||
__asm volatile (
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
" NOP\n"
|
||||
@@ -610,7 +610,7 @@ EPIWorkaroundHWordRead(uint16_t *pui16Addr)
|
||||
|
||||
__asm volatile(
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
" NOP\n"
|
||||
@@ -636,7 +636,7 @@ EPIWorkaroundByteWrite(uint8_t *pui8Addr, uint8_t ui8Value)
|
||||
|
||||
__asm volatile (
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
" NOP\n"
|
||||
@@ -665,7 +665,7 @@ EPIWorkaroundByteRead(uint8_t *pui8Addr)
|
||||
|
||||
__asm volatile(
|
||||
//
|
||||
// Add a NOP to ensure we don’t have a flash read immediately before
|
||||
// Add a NOP to ensure we don抰 have a flash read immediately before
|
||||
// the EPI read.
|
||||
//
|
||||
" NOP\n"
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// flash.c - Driver for programming the on-chip flash.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// flash.h - Prototypes for the flash driver.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
// fpu.c - Routines for manipulating the floating-point unit in the Cortex-M
|
||||
// processor.
|
||||
//
|
||||
// Copyright (c) 2011-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2011-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -33,8 +33,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// fpu.h - Prototypes for the floatint point manipulation routines.
|
||||
//
|
||||
// Copyright (c) 2011-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2011-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// gpio.c - API for GPIO ports
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -479,8 +479,9 @@ GPIOIntTypeGet(uint32_t ui32Port, uint8_t ui8Pin)
|
||||
ui32IS = HWREG(ui32Port + GPIO_O_IS);
|
||||
ui32IEV = HWREG(ui32Port + GPIO_O_IEV);
|
||||
ui32SI = HWREG(ui32Port + GPIO_O_SI);
|
||||
|
||||
return(((ui32IBE & ui8Pin) ? 1 : 0) | ((ui32IS & ui8Pin) ? 2 : 0) |
|
||||
((ui32IEV & ui8Pin) ? 4 : 0) | (ui32SI & 0x01) ? 0x10000 : 0);
|
||||
((ui32IEV & ui8Pin) ? 4 : 0) | ((ui32SI & 0x01) ? 0x10000 : 0));
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
@@ -573,21 +574,22 @@ GPIOPadConfigSet(uint32_t ui32Port, uint8_t ui8Pins,
|
||||
(ui32PinType == GPIO_PIN_TYPE_WAKE_HIGH) ||
|
||||
(ui32PinType == GPIO_PIN_TYPE_ANALOG));
|
||||
|
||||
|
||||
//
|
||||
// Set the GPIO peripheral configuration register first as required. This
|
||||
// register only appears in TM4E111 and later device classes, but is a
|
||||
// harmless write on older devices. Walk pins 0-7 and clear or set the
|
||||
// provided PC[EDMn] encoding.
|
||||
//
|
||||
for(ui8Bit = 0; ui8Bit < 8; ui8Bit++)
|
||||
if (!(CLASS_IS_TM4C123))
|
||||
{
|
||||
if(ui8Pins & (1 << ui8Bit))
|
||||
//
|
||||
// Set the GPIO peripheral configuration register first as required.
|
||||
// This register only appears in TM4C129x devices, but is a harmless
|
||||
// write on older devices.
|
||||
//
|
||||
for(ui8Bit = 0; ui8Bit < 8; ui8Bit++)
|
||||
{
|
||||
HWREG(ui32Port + GPIO_O_PC) = (HWREG(ui32Port + GPIO_O_PC) &
|
||||
~(0x3 << (2 * ui8Bit)));
|
||||
HWREG(ui32Port + GPIO_O_PC) |= (((ui32Strength >> 5) & 0x3) <<
|
||||
(2 * ui8Bit));
|
||||
if(ui8Pins & (1 << ui8Bit))
|
||||
{
|
||||
HWREG(ui32Port + GPIO_O_PC) = (HWREG(ui32Port + GPIO_O_PC) &
|
||||
~(0x3 << (2 * ui8Bit)));
|
||||
HWREG(ui32Port + GPIO_O_PC) |= (((ui32Strength >> 5) & 0x3) <<
|
||||
(2 * ui8Bit));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -615,56 +617,62 @@ GPIOPadConfigSet(uint32_t ui32Port, uint8_t ui8Pins,
|
||||
(HWREG(ui32Port + GPIO_O_SLR) &
|
||||
~(ui8Pins)));
|
||||
|
||||
//
|
||||
// Set the 12-mA drive select register. This register only appears in
|
||||
// TM4E111 and later device classes, but is a harmless write on older
|
||||
// devices.
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_DR12R) = ((ui32Strength & 0x10) ?
|
||||
(HWREG(ui32Port + GPIO_O_DR12R) |
|
||||
ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_DR12R) &
|
||||
~(ui8Pins)));
|
||||
if (!(CLASS_IS_TM4C123))
|
||||
{
|
||||
//
|
||||
// Set the 12-mA drive select register. This register only appears in
|
||||
// TM4C129x and later device classes, but is a harmless write on older
|
||||
// devices.
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_DR12R) = ((ui32Strength & 0x10) ?
|
||||
(HWREG(ui32Port + GPIO_O_DR12R) |
|
||||
ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_DR12R) &
|
||||
~(ui8Pins)));
|
||||
}
|
||||
|
||||
//
|
||||
// Set the pin type.
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_ODR) = ((ui32PinType & 1) ?
|
||||
(HWREG(ui32Port + GPIO_O_ODR) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_ODR) & ~(ui8Pins)));
|
||||
(HWREG(ui32Port + GPIO_O_ODR) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_ODR) & ~(ui8Pins)));
|
||||
HWREG(ui32Port + GPIO_O_PUR) = ((ui32PinType & 2) ?
|
||||
(HWREG(ui32Port + GPIO_O_PUR) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_PUR) & ~(ui8Pins)));
|
||||
(HWREG(ui32Port + GPIO_O_PUR) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_PUR) & ~(ui8Pins)));
|
||||
HWREG(ui32Port + GPIO_O_PDR) = ((ui32PinType & 4) ?
|
||||
(HWREG(ui32Port + GPIO_O_PDR) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_PDR) & ~(ui8Pins)));
|
||||
(HWREG(ui32Port + GPIO_O_PDR) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_PDR) & ~(ui8Pins)));
|
||||
HWREG(ui32Port + GPIO_O_DEN) = ((ui32PinType & 8) ?
|
||||
(HWREG(ui32Port + GPIO_O_DEN) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_DEN) & ~(ui8Pins)));
|
||||
(HWREG(ui32Port + GPIO_O_DEN) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_DEN) & ~(ui8Pins)));
|
||||
|
||||
//
|
||||
// Set the wake pin enable register and the wake level register. These
|
||||
// registers only appear in TM4E111 and later device classes, but are
|
||||
// harmless writes on older devices.
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_WAKELVL) = ((ui32PinType & 0x200) ?
|
||||
(HWREG(ui32Port + GPIO_O_WAKELVL) |
|
||||
ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_WAKELVL) &
|
||||
~(ui8Pins)));
|
||||
HWREG(ui32Port + GPIO_O_WAKEPEN) = ((ui32PinType & 0x300) ?
|
||||
(HWREG(ui32Port + GPIO_O_WAKEPEN) |
|
||||
ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_WAKEPEN) &
|
||||
~(ui8Pins)));
|
||||
if (!(CLASS_IS_TM4C123))
|
||||
{
|
||||
//
|
||||
// Set the wake pin enable register and the wake level register. These
|
||||
// registers only appear in TM4C129x and later device classes, but are
|
||||
// harmless writes on older devices.
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_WAKELVL) = ((ui32PinType & 0x200) ?
|
||||
(HWREG(ui32Port + GPIO_O_WAKELVL) |
|
||||
ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_WAKELVL) &
|
||||
~(ui8Pins)));
|
||||
HWREG(ui32Port + GPIO_O_WAKEPEN) = ((ui32PinType & 0x300) ?
|
||||
(HWREG(ui32Port + GPIO_O_WAKEPEN) |
|
||||
ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_WAKEPEN) &
|
||||
~(ui8Pins)));
|
||||
}
|
||||
|
||||
//
|
||||
// Set the analog mode select register.
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_AMSEL) =
|
||||
((ui32PinType == GPIO_PIN_TYPE_ANALOG) ?
|
||||
(HWREG(ui32Port + GPIO_O_AMSEL) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_AMSEL) & ~(ui8Pins)));
|
||||
((ui32PinType == GPIO_PIN_TYPE_ANALOG) ?
|
||||
(HWREG(ui32Port + GPIO_O_AMSEL) | ui8Pins) :
|
||||
(HWREG(ui32Port + GPIO_O_AMSEL) & ~(ui8Pins)));
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
@@ -710,9 +718,12 @@ GPIOPadConfigGet(uint32_t ui32Port, uint8_t ui8Pin,
|
||||
ui32Strength |= ((HWREG(ui32Port + GPIO_O_DR4R) & ui8Pin) ? 2 : 0);
|
||||
ui32Strength |= ((HWREG(ui32Port + GPIO_O_DR8R) & ui8Pin) ? 4 : 0);
|
||||
ui32Strength |= ((HWREG(ui32Port + GPIO_O_SLR) & ui8Pin) ? 8 : 0);
|
||||
ui32Strength |= ((HWREG(ui32Port + GPIO_O_DR12R) & ui8Pin) ? 0x10 : 0);
|
||||
ui32Strength |= (((HWREG(ui32Port + GPIO_O_PC) >>
|
||||
(2 * ui8Pin)) & 0x3) << 5);
|
||||
if (!(CLASS_IS_TM4C123))
|
||||
{
|
||||
ui32Strength |= ((HWREG(ui32Port + GPIO_O_DR12R) & ui8Pin) ? 0x10 : 0);
|
||||
ui32Strength |= (((HWREG(ui32Port + GPIO_O_PC) >>
|
||||
(2 * ui8Pin)) & 0x3) << 5);
|
||||
}
|
||||
*pui32Strength = ui32Strength;
|
||||
|
||||
//
|
||||
@@ -722,10 +733,13 @@ GPIOPadConfigGet(uint32_t ui32Port, uint8_t ui8Pin,
|
||||
ui32PinType |= ((HWREG(ui32Port + GPIO_O_PUR) & ui8Pin) ? 2 : 0);
|
||||
ui32PinType |= ((HWREG(ui32Port + GPIO_O_PDR) & ui8Pin) ? 4 : 0);
|
||||
ui32PinType |= ((HWREG(ui32Port + GPIO_O_DEN) & ui8Pin) ? 8 : 0);
|
||||
if(HWREG(ui32Port + GPIO_O_WAKEPEN) & ui8Pin)
|
||||
if (!(CLASS_IS_TM4C123))
|
||||
{
|
||||
ui32PinType |= ((HWREG(ui32Port + GPIO_O_WAKELVL) & ui8Pin) ?
|
||||
0x200 : 0x100);
|
||||
if(HWREG(ui32Port + GPIO_O_WAKEPEN) & ui8Pin)
|
||||
{
|
||||
ui32PinType |= ((HWREG(ui32Port + GPIO_O_WAKELVL) & ui8Pin) ?
|
||||
0x200 : 0x100);
|
||||
}
|
||||
}
|
||||
*pui32PinType = ui32PinType;
|
||||
}
|
||||
@@ -2614,6 +2628,41 @@ GPIOADCTriggerDisable(uint32_t ui32Port, uint8_t ui8Pins)
|
||||
HWREG(ui32Port + GPIO_O_ADCCTL) &= (~ui8Pins);
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
//! Unlocks a GPIO pin which had been previously locked.
|
||||
//!
|
||||
//! \param ui32Port is the base address of the GPIO port.
|
||||
//! \param ui8Pins is the bit-packed representation of the pin(s).
|
||||
//!
|
||||
//! This function is used to unlock pins which were locked for specific
|
||||
//! functionality such as JTAG operation. To be able to use pins which have
|
||||
//! been locked, the following procedure is required to unlock the pin and
|
||||
//! commit the change. This function will have no effect on pins which are
|
||||
//! not protected by the GPIOCR register.
|
||||
//!
|
||||
//! \return None.
|
||||
//
|
||||
//*****************************************************************************
|
||||
void
|
||||
GPIOUnlockPin(uint32_t ui32Port, uint8_t ui8Pins)
|
||||
{
|
||||
//
|
||||
// Check the arguments.
|
||||
//
|
||||
ASSERT(_GPIOBaseValid(ui32Port));
|
||||
|
||||
//
|
||||
// Unlock the port by using the device LOCK key
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_LOCK) = GPIO_LOCK_KEY;
|
||||
|
||||
//
|
||||
// Commit the pin to keep it in GPIO mode
|
||||
//
|
||||
HWREG(ui32Port + GPIO_O_CR) |= ui8Pins;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
// Close the Doxygen group.
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// gpio.h - Defines and Macros for GPIO API.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -191,6 +191,7 @@ extern void GPIODMATriggerEnable(uint32_t ui32Port, uint8_t ui8Pins);
|
||||
extern void GPIODMATriggerDisable(uint32_t ui32Port, uint8_t ui8Pins);
|
||||
extern void GPIOADCTriggerEnable(uint32_t ui32Port, uint8_t ui8Pins);
|
||||
extern void GPIOADCTriggerDisable(uint32_t ui32Port, uint8_t ui8Pins);
|
||||
extern void GPIOUnlockPin(uint32_t ui32Port, uint8_t ui8Pins);
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// hibernate.c - Driver for the Hibernation module
|
||||
//
|
||||
// Copyright (c) 2007-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2007-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -128,7 +128,7 @@ _HibernateWriteComplete(void)
|
||||
//! the system clock is the value returned by SysCtlClockGet() for TM4C123x
|
||||
//! devices or the value returned by SysCtlClockFreqSet() for TM4C129x devices,
|
||||
//! or it can be explicitly hard coded if it is constant and known (to save the
|
||||
//! code/execution overhead of a call to SysCtlClockGet() or fetch of the
|
||||
//! code/execution overhead of a call to SysCtlClockGet() or fetch of the
|
||||
//! variable call holding the return value of SysCtlClockFreqSet()).
|
||||
//!
|
||||
//! \return None.
|
||||
@@ -272,8 +272,7 @@ HibernateClockConfig(uint32_t ui32Config)
|
||||
//
|
||||
if(HIBERNATE_CLOCK_OUTPUT)
|
||||
{
|
||||
HWREG(HIB_CC) = ui32Config & (HIBERNATE_OUT_SYSCLK |
|
||||
HIBERNATE_OUT_ALT1CLK);
|
||||
HWREG(HIB_CC) = ui32Config & (HIBERNATE_OUT_SYSCLK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1615,6 +1614,12 @@ _HibernateCalendarSet(uint32_t ui32Reg, struct tm *psTime)
|
||||
//! the hibernate counter is configured in calendar mode using the
|
||||
//! HibernateCounterMode() function with one of the calendar modes.
|
||||
//!
|
||||
//! The hibernate module contains a 7-bit register field to store the year with
|
||||
//! valid values ranges from 0 to 99. In order to maximize the calendar
|
||||
//! year up to 2099, the HibernateCalendarSet() will accept calendar year
|
||||
//! after the year 2000 only. Calendar years before 2000 (i.e. 1987) will
|
||||
//! produce unexpected results.
|
||||
//!
|
||||
//! \note The hibernate calendar mode is not available on all Tiva
|
||||
//! devices. Please consult the data sheet to determine if the device you are
|
||||
//! using supports this feature in the Hibernation module.
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// hibernate.h - API definition for the Hibernation module.
|
||||
//
|
||||
// Copyright (c) 2007-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2007-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -104,7 +104,6 @@ extern "C"
|
||||
#define HIBERNATE_OSC_DISABLE 0x00010000
|
||||
#define HIBERNATE_OUT_WRSTALL 0x20000000
|
||||
#define HIBERNATE_OUT_SYSCLK 0x00000001
|
||||
#define HIBERNATE_OUT_ALT1CLK 0x00000002
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// i2c.c - Driver for Inter-IC (I2C) bus block.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -194,7 +194,7 @@ _I2CIntNumberGet(uint32_t ui32Base)
|
||||
//! the system clock is the value returned by SysCtlClockGet() for TM4C123x
|
||||
//! devices or the value returned by SysCtlClockFreqSet() for TM4C129x devices,
|
||||
//! or it can be explicitly hard coded if it is constant and known (to save the
|
||||
//! code/execution overhead of a call to SysCtlClockGet() or fetch of the
|
||||
//! code/execution overhead of a call to SysCtlClockGet() or fetch of the
|
||||
//! variable call holding the return value of SysCtlClockFreqSet()).
|
||||
//!
|
||||
//! \return None.
|
||||
@@ -1782,7 +1782,7 @@ I2CRxFIFOFlush(uint32_t ui32Base)
|
||||
//!
|
||||
//! This function retrieves the status for both the transmit (TX) and receive
|
||||
//! (RX) FIFOs. The trigger level for the transmit FIFO is set using
|
||||
//! I2CTxFIFOConfigSet() and for the receive FIFO using I2CTxFIFOConfigSet().
|
||||
//! I2CTxFIFOConfigSet() and for the receive FIFO using I2CRxFIFOConfigSet().
|
||||
//!
|
||||
//! \note Not all Tiva devices have an I2C FIFO. Please consult the
|
||||
//! device data sheet to determine if this feature is supported.
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// i2c.h - Prototypes for the I2C Driver.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// interrupt.c - Driver for the NVIC Interrupt Controller.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// interrupt.h - Prototypes for the NVIC Interrupt Controller Driver.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// lcd.c - Defines and Macros for the LCD Controller module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// lcd.h - Defines and Macros for the LCD Controller module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// mpu.c - Driver for the Cortex-M3 memory protection unit (MPU).
|
||||
//
|
||||
// Copyright (c) 2007-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2007-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// mpu.h - Defines and Macros for the memory protection unit.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// onewire.c - Driver for OneWire master module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// onewire.h - Prototypes for the OneWire Driver.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// pin_map.h - Mapping of peripherals to pins for all parts.
|
||||
//
|
||||
// Copyright (c) 2007-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2007-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// pwm.c - API for the PWM modules
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -1624,11 +1624,11 @@ PWMIntStatus(uint32_t ui32Base, bool bMasked)
|
||||
//! \e ui32FaultInts must be the logical OR of any of \b PWM_INT_FAULT0,
|
||||
//! \b PWM_INT_FAULT1, \b PWM_INT_FAULT2, or \b PWM_INT_FAULT3.
|
||||
//!
|
||||
//! The fault interrupts are derived by performing a logical OR of each of the
|
||||
//! The fault interrupts are derived by performing a logical OR of each of the
|
||||
//! configured fault trigger signals for a given generator. Therefore, these
|
||||
//! interrupts are not directly related to the four possible FAULTn inputs to
|
||||
//! the device but indicate that a fault has been signaled to one of the four
|
||||
//! possible PWM generators.
|
||||
//! interrupts are not directly related to the four possible FAULTn inputs to
|
||||
//! the device but indicate that a fault has been signaled to one of the four
|
||||
//! possible PWM generators.
|
||||
//!
|
||||
//! \note Because there is a write buffer in the Cortex-M processor, it may
|
||||
//! take several clock cycles before the interrupt source is actually cleared.
|
||||
@@ -1993,7 +1993,8 @@ PWMClockSet(uint32_t ui32Base, uint32_t ui32Config)
|
||||
// Check the arguments.
|
||||
//
|
||||
ASSERT((ui32Base == PWM0_BASE) || (ui32Base == PWM1_BASE));
|
||||
ASSERT((ui32Config == PWM_SYSCLK_DIV_2) ||
|
||||
ASSERT((ui32Config == PWM_SYSCLK_DIV_1) ||
|
||||
(ui32Config == PWM_SYSCLK_DIV_2) ||
|
||||
(ui32Config == PWM_SYSCLK_DIV_4) ||
|
||||
(ui32Config == PWM_SYSCLK_DIV_8) ||
|
||||
(ui32Config == PWM_SYSCLK_DIV_16) ||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// pwm.h - API function protoypes for Pulse Width Modulation (PWM) ports
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// qei.c - Driver for the Quadrature Encoder with Index.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// qei.h - Prototypes for the Quadrature Encoder Driver.
|
||||
//
|
||||
// Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ This project will build the TivaWare Peripheral Driver Library.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
Copyright (c) 2006-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
Software License Agreement
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
@@ -14,7 +14,7 @@ Software License Agreement
|
||||
|
||||
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
|
||||
documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
Neither the name of Texas Instruments Incorporated nor the names of
|
||||
@@ -33,4 +33,4 @@ 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.
|
||||
|
||||
This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// rom.h - Macros to facilitate calling functions in the ROM.
|
||||
//
|
||||
// Copyright (c) 2007-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2007-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
// rom_map.h - Macros to facilitate calling functions in the ROM when they are
|
||||
// available and in flash otherwise.
|
||||
//
|
||||
// Copyright (c) 2008-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2008-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -33,8 +33,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -1703,6 +1703,20 @@
|
||||
#define MAP_FlashUserSet \
|
||||
FlashUserSet
|
||||
#endif
|
||||
#ifdef ROM_FlashAllUserRegisterGet
|
||||
#define MAP_FlashAllUserRegisterGet \
|
||||
ROM_FlashAllUserRegisterGet
|
||||
#else
|
||||
#define MAP_FlashAllUserRegisterGet \
|
||||
FlashAllUserRegisterGet
|
||||
#endif
|
||||
#ifdef ROM_FlashAllUserRegisterSet
|
||||
#define MAP_FlashAllUserRegisterSet \
|
||||
ROM_FlashAllUserRegisterSet
|
||||
#else
|
||||
#define MAP_FlashAllUserRegisterSet \
|
||||
FlashAllUserRegisterSet
|
||||
#endif
|
||||
#ifdef ROM_FlashUserSave
|
||||
#define MAP_FlashUserSave \
|
||||
ROM_FlashUserSave
|
||||
@@ -1710,6 +1724,13 @@
|
||||
#define MAP_FlashUserSave \
|
||||
FlashUserSave
|
||||
#endif
|
||||
#ifdef ROM_FlashAllUserRegisterSave
|
||||
#define MAP_FlashAllUserRegisterSave \
|
||||
ROM_FlashAllUserRegisterSave
|
||||
#else
|
||||
#define MAP_FlashAllUserRegisterSave \
|
||||
FlashAllUserRegisterSave
|
||||
#endif
|
||||
#ifdef ROM_FlashIntEnable
|
||||
#define MAP_FlashIntEnable \
|
||||
ROM_FlashIntEnable
|
||||
@@ -1883,6 +1904,41 @@
|
||||
#define MAP_GPIOPinTypeComparator \
|
||||
GPIOPinTypeComparator
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeComparatorOutput
|
||||
#define MAP_GPIOPinTypeComparatorOutput \
|
||||
ROM_GPIOPinTypeComparatorOutput
|
||||
#else
|
||||
#define MAP_GPIOPinTypeComparatorOutput \
|
||||
GPIOPinTypeComparatorOutput
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeDIVSCLK
|
||||
#define MAP_GPIOPinTypeDIVSCLK \
|
||||
ROM_GPIOPinTypeDIVSCLK
|
||||
#else
|
||||
#define MAP_GPIOPinTypeDIVSCLK \
|
||||
GPIOPinTypeDIVSCLK
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeEPI
|
||||
#define MAP_GPIOPinTypeEPI \
|
||||
ROM_GPIOPinTypeEPI
|
||||
#else
|
||||
#define MAP_GPIOPinTypeEPI \
|
||||
GPIOPinTypeEPI
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeEthernetLED
|
||||
#define MAP_GPIOPinTypeEthernetLED \
|
||||
ROM_GPIOPinTypeEthernetLED
|
||||
#else
|
||||
#define MAP_GPIOPinTypeEthernetLED \
|
||||
GPIOPinTypeEthernetLED
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeEthernetMII
|
||||
#define MAP_GPIOPinTypeEthernetMII \
|
||||
ROM_GPIOPinTypeEthernetMII
|
||||
#else
|
||||
#define MAP_GPIOPinTypeEthernetMII \
|
||||
GPIOPinTypeEthernetMII
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeGPIOInput
|
||||
#define MAP_GPIOPinTypeGPIOInput \
|
||||
ROM_GPIOPinTypeGPIOInput
|
||||
@@ -1897,6 +1953,13 @@
|
||||
#define MAP_GPIOPinTypeGPIOOutput \
|
||||
GPIOPinTypeGPIOOutput
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeHibernateRTCCLK
|
||||
#define MAP_GPIOPinTypeHibernateRTCCLK \
|
||||
ROM_GPIOPinTypeHibernateRTCCLK
|
||||
#else
|
||||
#define MAP_GPIOPinTypeHibernateRTCCLK \
|
||||
GPIOPinTypeHibernateRTCCLK
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeI2C
|
||||
#define MAP_GPIOPinTypeI2C \
|
||||
ROM_GPIOPinTypeI2C
|
||||
@@ -1932,6 +1995,13 @@
|
||||
#define MAP_GPIOPinTypeTimer \
|
||||
GPIOPinTypeTimer
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeTrace
|
||||
#define MAP_GPIOPinTypeTrace \
|
||||
ROM_GPIOPinTypeTrace
|
||||
#else
|
||||
#define MAP_GPIOPinTypeTrace \
|
||||
GPIOPinTypeTrace
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinTypeUART
|
||||
#define MAP_GPIOPinTypeUART \
|
||||
ROM_GPIOPinTypeUART
|
||||
@@ -2058,6 +2128,34 @@
|
||||
#define MAP_GPIOIntStatus \
|
||||
GPIOIntStatus
|
||||
#endif
|
||||
#ifdef ROM_GPIOIntRegister
|
||||
#define MAP_GPIOIntRegiste \
|
||||
ROM_GPIOIntRegister
|
||||
#else
|
||||
#define MAP_GPIOIntRegister \
|
||||
GPIOIntRegister
|
||||
#endif
|
||||
#ifdef ROM_GPIOIntUnregister
|
||||
#define MAP_GPIOIntUnregister \
|
||||
ROM_GPIOIntUnregister
|
||||
#else
|
||||
#define MAP_GPIOIntUnregister \
|
||||
GPIOIntUnregister
|
||||
#endif
|
||||
#ifdef ROM_GPIOIntRegisterPin
|
||||
#define MAP_GPIOIntRegisterPin \
|
||||
ROM_GPIOIntRegisterPin
|
||||
#else
|
||||
#define MAP_GPIOIntRegisterPin \
|
||||
GPIOIntRegisterPin
|
||||
#endif
|
||||
#ifdef ROM_GPIOIntUnregisterPin
|
||||
#define MAP_GPIOIntUnregisterPin \
|
||||
ROM_GPIOIntUnregisterPin
|
||||
#else
|
||||
#define MAP_GPIOIntUnregisterPin \
|
||||
GPIOIntUnregisterPin
|
||||
#endif
|
||||
#ifdef ROM_GPIOPinWakeStatus
|
||||
#define MAP_GPIOPinWakeStatus \
|
||||
ROM_GPIOPinWakeStatus
|
||||
@@ -2065,6 +2163,13 @@
|
||||
#define MAP_GPIOPinWakeStatus \
|
||||
GPIOPinWakeStatus
|
||||
#endif
|
||||
#ifdef ROM_GPIOUnlockPin
|
||||
#define MAP_GPIOUnlockPin \
|
||||
ROM_GPIOUnlockPin
|
||||
#else
|
||||
#define MAP_GPIOUnlockPin \
|
||||
GPIOUnlockPin
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
@@ -2756,6 +2861,13 @@
|
||||
#define MAP_I2CMasterGlitchFilterConfigSet \
|
||||
I2CMasterGlitchFilterConfigSet
|
||||
#endif
|
||||
#ifdef ROM_I2CLoopbackEnable
|
||||
#define MAP_I2CLoopbackEnable \
|
||||
ROM_I2CLoopbackEnable
|
||||
#else
|
||||
#define MAP_I2CLoopbackEnable \
|
||||
I2CLoopbackEnable
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
@@ -3492,6 +3604,27 @@
|
||||
#define MAP_QEIErrorGet \
|
||||
QEIErrorGet
|
||||
#endif
|
||||
#ifdef ROM_QEIFilterEnable
|
||||
#define MAP_QEIFilterEnable \
|
||||
ROM_QEIFilterEnable
|
||||
#else
|
||||
#define MAP_QEIFilterEnable \
|
||||
QEIFilterEnable
|
||||
#endif
|
||||
#ifdef ROM_QEIFilterDisable
|
||||
#define MAP_QEIFilterDisable \
|
||||
ROM_QEIFilterDisable
|
||||
#else
|
||||
#define MAP_QEIFilterDisable \
|
||||
QEIFilterDisable
|
||||
#endif
|
||||
#ifdef ROM_QEIFilterConfigure
|
||||
#define MAP_QEIFilterConfigure \
|
||||
ROM_QEIFilterConfigure
|
||||
#else
|
||||
#define MAP_QEIFilterConfigure \
|
||||
QEIFilterConfigure
|
||||
#endif
|
||||
#ifdef ROM_QEIVelocityEnable
|
||||
#define MAP_QEIVelocityEnable \
|
||||
ROM_QEIVelocityEnable
|
||||
@@ -4405,6 +4538,20 @@
|
||||
#define MAP_SSIAdvFrameHoldDisable \
|
||||
SSIAdvFrameHoldDisable
|
||||
#endif
|
||||
#ifdef ROM_SSILoopbackEnable
|
||||
#define MAP_SSILoopbackEnable \
|
||||
ROM_SSILoopbackEnable
|
||||
#else
|
||||
#define MAP_SSILoopbackEnable \
|
||||
SSILoopbackEnable
|
||||
#endif
|
||||
#ifdef ROM_SSILoopbackDisable
|
||||
#define MAP_SSILoopbackDisable \
|
||||
ROM_SSILoopbackDisable
|
||||
#else
|
||||
#define MAP_SSILoopbackDisable \
|
||||
SSILoopbackDisable
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
@@ -4726,6 +4873,13 @@
|
||||
#define MAP_SysCtlAltClkConfig \
|
||||
SysCtlAltClkConfig
|
||||
#endif
|
||||
#ifdef ROM_SysCtlVCOGet
|
||||
#define MAP_SysCtlVCOGet \
|
||||
ROM_SysCtlVCOGet
|
||||
#else
|
||||
#define MAP_SysCtlVCOGet \
|
||||
SysCtlVCOGet
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
@@ -5066,6 +5220,13 @@
|
||||
#define MAP_TimerSynchronize \
|
||||
TimerSynchronize
|
||||
#endif
|
||||
#ifdef ROM_TimerUpdateMode
|
||||
#define MAP_TimerUpdateMode \
|
||||
ROM_TimerUpdateMode
|
||||
#else
|
||||
#define MAP_TimerUpdateMode \
|
||||
TimerUpdateMode
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
@@ -5380,6 +5541,13 @@
|
||||
#define MAP_UARTFlowControlSet \
|
||||
UARTFlowControlSet
|
||||
#endif
|
||||
#ifdef ROM_UARTLoopbackEnable
|
||||
#define MAP_UARTLoopbackEnable \
|
||||
ROM_UARTLoopbackEnable
|
||||
#else
|
||||
#define MAP_UARTLoopbackEnable \
|
||||
UARTLoopbackEnable
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
// rtos_bindings.h - Macros intended to aid porting of TivaWare modules
|
||||
// for use with an RTOS.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -33,8 +33,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// shamd5.c - Driver for the SHA/MD5 module.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
//
|
||||
// shamd5.h - Defines and Macros for the SHA/MD5.
|
||||
//
|
||||
// Copyright (c) 2012-2017 Texas Instruments Incorporated. All rights reserved.
|
||||
// Copyright (c) 2012-2020 Texas Instruments Incorporated. All rights reserved.
|
||||
// Software License Agreement
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated 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
|
||||
@@ -32,8 +32,8 @@
|
||||
// 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.
|
||||
//
|
||||
// This is part of revision 2.1.4.178 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
// This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
|
||||
//
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user