Contiki-NG
Toggle main menu visibility
Loading...
Searching...
No Matches
ccfg-conf.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017, Alex Stanoev
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 cc26xx
32
* @{
33
*
34
* \defgroup cc13xx-cc26xx-ccfg Customer Configuration (CCFG)
35
*
36
* @{
37
*
38
* \file
39
* CCFG configuration for the cc26x0-cc13x0 CPU family
40
*/
41
#ifndef CCFG_CONF_H_
42
#define CCFG_CONF_H_
43
44
#include "contiki-conf.h"
45
46
/*---------------------------------------------------------------------------*/
47
#ifdef CCXXWARE_CONF_JTAG_INTERFACE_ENABLE
48
#error CCXXWARE_CONF_JTAG_INTERFACE_ENABLE is deprecated. Use \
49
CCFG_CONF_JTAG_INTERFACE_DISABLE.
50
#endif
51
#ifdef CCXXWARE_CONF_ROM_BOOTLOADER_ENABLE
52
#error CCXXWARE_CONF_ROM_BOOTLOADER_ENABLE is deprecated. Use \
53
CCFG_CONF_ROM_BOOTLOADER_ENABLE.
54
#endif
55
#ifdef CCXXWARE_CONF_BL_PIN_NUMBER
56
#error CCXXWARE_CONF_BL_PIN_NUMBER is deprecated. Use CCFG_CONF_BL_PIN_NUMBER.
57
#endif
58
#ifdef CCXXWARE_CONF_BL_LEVEL
59
#error CCXXWARE_CONF_BL_LEVEL is deprecated. Use CCFG_CONF_BL_LEVEL.
60
#endif
61
/*---------------------------------------------------------------------------*/
62
/**
63
* \brief JTAG interface configuration
64
*
65
* Those values are not meant to be modified by the user
66
* @{
67
*/
68
#if CCFG_CONF_JTAG_INTERFACE_DISABLE
69
#define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0x00
70
#define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0x00
71
#define SET_CCFG_CCFG_TAP_DAP_0_PRCM_TAP_ENABLE 0x00
72
#define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0x00
73
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0x00
74
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0x00
75
#define SET_CCFG_CCFG_TAP_DAP_1_WUC_TAP_ENABLE 0x00
76
#else
77
#define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0xC5
78
#define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0xC5
79
#define SET_CCFG_CCFG_TAP_DAP_0_PRCM_TAP_ENABLE 0xC5
80
#define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0xC5
81
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0xC5
82
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0xC5
83
#define SET_CCFG_CCFG_TAP_DAP_1_WUC_TAP_ENABLE 0xC5
84
#endif
85
/** @} */
86
/*---------------------------------------------------------------------------*/
87
/**
88
* \brief ROM bootloader configuration
89
*
90
* Those values are not meant to be modified by the user
91
* @{
92
*/
93
#if CCFG_CONF_ROM_BOOTLOADER_ENABLE
94
#define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5
95
#define SET_CCFG_BL_CONFIG_BL_LEVEL CCFG_CONF_BL_LEVEL
96
#define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER CCFG_CONF_BL_PIN_NUMBER
97
#define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5
98
#else
99
#define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0x00
100
#define SET_CCFG_BL_CONFIG_BL_LEVEL 0x01
101
#define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER IOID_UNUSED
102
#define SET_CCFG_BL_CONFIG_BL_ENABLE 0xFF
103
#endif
104
/** @} */
105
/*---------------------------------------------------------------------------*/
106
#endif
/* CCFG_CONF_H_ */
107
/*---------------------------------------------------------------------------*/
108
/**
109
* @}
110
* @}
111
*/
arch
cpu
cc26x0-cc13x0
ccfg-conf.h
Generated on
for Contiki-NG by
1.17.0