PowerCC26X2_helpers.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021 Texas Instruments Incorporated - https://www.ti.com
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #include <string.h>
34 
35 /* This file is for internal use only. These functions are called by the power
36  * driver during normal operation, but may trigger a secure gateway instruction
37  * on devices where the core supports it. Other calls to these functions may
38  * have a negative impact on the power driver.
39  */
40 
41 /* Functions implemented in PowerCC26X2_helpers.c */
46 uint32_t PowerCC26X2_oscClockSourceGet(uint32_t ui32SrcClk);
52 void PowerCC26X2_switchToTCXO(void);
53 void PowerCC26X2_sysCtrlStandby(bool retainCache);
55 void PowerCC26X2_sysCtrlIdle(uint32_t vimsPdMode);
56 
57 /* Functions implemented in PowerCC26X2_calibrateRCOSC_helpers.c */
58 void PowerCC26X2_updateSubSecInc(bool firstLF);
59 int32_t PowerCC26X2_readCtrim(void);
60 int32_t PowerCC26X2_readCtrimFract(void);
61 int32_t PowerCC26X2_readRtrim(void);
62 void PowerCC26X2_writeCtrim(int32_t newValue);
63 void PowerCC26X2_writeCtrimFract(int32_t newValue);
64 void PowerCC26X2_writeCtrimFractEn(int32_t newValue);
65 void PowerCC26X2_writeRtrim(int32_t newValue);
67 void PowerCC26X2_setAclkRefSrc(uint32_t source);
int32_t PowerCC26X2_readCtrimFract(void)
void PowerCC26X2_switchToTCXO(void)
void PowerCC26X2_oscCtlClearXtal(void)
uint32_t PowerCC26X2_oschfTrySwitchToXosc(void)
void PowerCC26X2_writeCtrim(int32_t newValue)
void PowerCC26X2_disableTCXOQual(void)
uint32_t PowerCC26X2_oscClockSourceGet(uint32_t ui32SrcClk)
void PowerCC26X2_sysCtrlVoltageConditionalControl(void)
int32_t PowerCC26X2_readCtrim(void)
void PowerCC26X2_prcmEnableCacheRetention(void)
void PowerCC26X2_setAclkRefSrc(uint32_t source)
void PowerCC26X2_writeCtrimFractEn(int32_t newValue)
void PowerCC26X2_writeCtrimFract(int32_t newValue)
void PowerCC26X2_enableTCXOQual(void)
void PowerCC26X2_sysCtrlStandby(bool retainCache)
void PowerCC26X2_updateSubSecInc(bool firstLF)
void PowerCC26X2_writeRtrim(int32_t newValue)
void PowerCC26X2_pmctlDisableJtag(void)
void PowerCC26X2_oschfSwitchToRcosc(void)
bool PowerCC26X2_oscIsHPOSCEnabledWithHfDerivedLfClock(void)
void PowerCC26X2_oscDisableQualifiers(void)
void PowerCC26X2_setTdcClkSrc24M(void)
void PowerCC26X2_sysCtrlIdle(uint32_t vimsPdMode)
int32_t PowerCC26X2_readRtrim(void)
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale