Contiki-NG
Toggle main menu visibility
Loading...
Searching...
No Matches
ccfg-conf.c
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018, Texas Instruments Incorporated - http://www.ti.com/
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
* 1. Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* 3. Neither the name of the copyright holder nor the names of its
14
* contributors may be used to endorse or promote products derived
15
* from this software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28
* OF THE POSSIBILITY OF SUCH DAMAGE.
29
*/
30
/**
31
* \addtogroup cc13xx-cc26xx-cpu
32
* @{
33
*
34
* \defgroup cc13xx-cc26xx-ccfg Customer Configuration (CCFG)
35
*
36
* @{
37
*
38
* \file
39
* Configuration of CCFG.
40
* \author
41
* Edvard Pettersen <e.pettersen@ti.com>
42
*/
43
/*---------------------------------------------------------------------------*/
44
#include "contiki-conf.h"
45
/*---------------------------------------------------------------------------*/
46
/**
47
* \name JTAG interface configuration
48
*
49
* Enable/Disable the JTAG DAP and TAP interfaces on the chip.
50
* Setting this to 0 will disable access to the debug interface
51
* to secure deployed images.
52
* @{
53
*/
54
#if CCFG_CONF_JTAG_INTERFACE_DISABLE
55
#define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0x00
56
#define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0x00
57
#define SET_CCFG_CCFG_TAP_DAP_0_PRCM_TAP_ENABLE 0x00
58
#define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0x00
59
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0x00
60
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0x00
61
#define SET_CCFG_CCFG_TAP_DAP_1_WUC_TAP_ENABLE 0x00
62
#endif
/* CCFG_CONF_JTAG_INTERFACE_DISABLE */
63
/** @} */
64
/*---------------------------------------------------------------------------*/
65
/**
66
* \name TX Power Boost Mode
67
*
68
* CC13xx only: Enable/Disable boost mode, which enables maximum +14 dBm
69
* output power with the default PA front-end configuration.
70
* @{
71
*/
72
#if defined(DEVICE_LINE_CC13XX) && (RF_CONF_TXPOWER_BOOST_MODE)
73
#define CCFG_FORCE_VDDR_HH 1
74
#endif
75
/** @} */
76
/*---------------------------------------------------------------------------*/
77
/**
78
* \name ROM Bootloader configuration
79
*
80
* Enable/Disable the ROM bootloader in your image, if the board supports it.
81
* Look in Board.h to choose the DIO and corresponding level that will cause
82
* the chip to enter bootloader mode.
83
* @{
84
*/
85
#ifndef CCFG_CONF_ROM_BOOTLOADER_ENABLE
86
#define CCFG_CONF_ROM_BOOTLOADER_ENABLE 0
87
#endif
88
89
#if CCFG_CONF_ROM_BOOTLOADER_ENABLE
90
#define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5
91
#define SET_CCFG_BL_CONFIG_BL_LEVEL 0x00
92
#if defined(CCFG_CONF_BL_PIN_NUMBER)
93
#define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER CCFG_CONF_BL_PIN_NUMBER
94
#endif
95
#define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5
96
#endif
/* CCFG_CONF_ROM_BOOTLOADER_ENABLE */
97
/** @} */
98
/*---------------------------------------------------------------------------*/
99
/**
100
* \name Include the device-specific CCFG file from the SDK.
101
*
102
* @{
103
*/
104
#include <ti/devices/DeviceFamily.h>
105
#include DeviceFamily_constructPath(startup_files/ccfg.c)
106
/** @} */
107
/*---------------------------------------------------------------------------*/
108
/**
109
* @}
110
* @}
111
*/
arch
cpu
simplelink-cc13xx-cc26xx
ccfg-conf.c
Generated on
for Contiki-NG by
1.17.0