Contiki-NG
ccxxware-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 cc26xx-ccxxware-conf CCxxware-specific configuration
35  *
36  * @{
37  *
38  * \file
39  * CCxxware-specific configuration for the cc26xx-cc13xx CPU family
40  */
41 #ifndef CCXXWARE_CONF_H_
42 #define CCXXWARE_CONF_H_
43 
44 #include "contiki-conf.h"
45 
46 /*---------------------------------------------------------------------------*/
47 /**
48  * \brief JTAG interface configuration
49  *
50  * Those values are not meant to be modified by the user
51  * @{
52  */
53 #if CCXXWARE_CONF_JTAG_INTERFACE_ENABLE
54 #define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0xC5
55 #define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0xC5
56 #define SET_CCFG_CCFG_TAP_DAP_0_PRCM_TAP_ENABLE 0xC5
57 #define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0xC5
58 #define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0xC5
59 #define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0xC5
60 #define SET_CCFG_CCFG_TAP_DAP_1_WUC_TAP_ENABLE 0xC5
61 #else
62 #define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0x00
63 #define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0x00
64 #define SET_CCFG_CCFG_TAP_DAP_0_PRCM_TAP_ENABLE 0x00
65 #define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0x00
66 #define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0x00
67 #define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0x00
68 #define SET_CCFG_CCFG_TAP_DAP_1_WUC_TAP_ENABLE 0x00
69 #endif
70 /** @} */
71 /*---------------------------------------------------------------------------*/
72 /**
73  * \brief ROM bootloader configuration
74  *
75  * Those values are not meant to be modified by the user
76  * @{
77  */
78 #if CCXXWARE_CONF_ROM_BOOTLOADER_ENABLE
79 #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5
80 #define SET_CCFG_BL_CONFIG_BL_LEVEL CCXXWARE_CONF_BL_LEVEL
81 #define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER CCXXWARE_CONF_BL_PIN_NUMBER
82 #define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5
83 #else
84 #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0x00
85 #define SET_CCFG_BL_CONFIG_BL_LEVEL 0x01
86 #define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER IOID_UNUSED
87 #define SET_CCFG_BL_CONFIG_BL_ENABLE 0xFF
88 #endif
89 /** @} */
90 /*---------------------------------------------------------------------------*/
91 #endif /* CCXXWARE_CONF_H_ */
92 /*---------------------------------------------------------------------------*/
93 /**
94  * @}
95  * @}
96  */