Contiki-NG
Toggle main menu visibility
Loading...
Searching...
No Matches
contiki-conf.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012, 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
*
14
* 3. Neither the name of the copyright holder nor the names of its
15
* contributors may be used to endorse or promote products derived
16
* from this software without specific prior written permission.
17
*
18
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
29
* OF THE POSSIBILITY OF SUCH DAMAGE.
30
*/
31
/*---------------------------------------------------------------------------*/
32
/**
33
* \addtogroup cc2538dk
34
* @{
35
*
36
* \file
37
* Configuration for the cc2538dk platform
38
*/
39
#ifndef CONTIKI_CONF_H_
40
#define CONTIKI_CONF_H_
41
42
#include <stdint.h>
43
#include <string.h>
44
#include <inttypes.h>
45
/*---------------------------------------------------------------------------*/
46
/* Include Project Specific conf */
47
#ifdef PROJECT_CONF_PATH
48
#include PROJECT_CONF_PATH
49
#endif
/* PROJECT_CONF_PATH */
50
/*---------------------------------------------------------------------------*/
51
#include "cc2538-def.h"
52
/*---------------------------------------------------------------------------*/
53
/**
54
* \name Serial Boot Loader Backdoor configuration
55
*
56
* @{
57
*/
58
#ifndef FLASH_CCA_CONF_BOOTLDR_BACKDOOR
59
#define FLASH_CCA_CONF_BOOTLDR_BACKDOOR 1
/**<Enable the boot loader backdoor */
60
#endif
61
62
#ifndef FLASH_CCA_CONF_BOOTLDR_BACKDOOR_PORT_A_PIN
63
#define FLASH_CCA_CONF_BOOTLDR_BACKDOOR_PORT_A_PIN 3
/**< Pin PA_3 (Select button) activates the boot loader */
64
#endif
65
66
#ifndef FLASH_CCA_CONF_BOOTLDR_BACKDOOR_ACTIVE_HIGH
67
#define FLASH_CCA_CONF_BOOTLDR_BACKDOOR_ACTIVE_HIGH 0
/**< A logic low level activates the boot loader */
68
#endif
69
/** @} */
70
/*---------------------------------------------------------------------------*/
71
/**
72
* \name CC2538 System Control configuration
73
*
74
* @{
75
*/
76
#ifndef SYS_CTRL_CONF_OSC32K_USE_XTAL
77
#define SYS_CTRL_CONF_OSC32K_USE_XTAL 1
/**< Use the on-board 32.768-kHz crystal */
78
#endif
79
/** @} */
80
/*---------------------------------------------------------------------------*/
81
/* board.h assumes that basic configuration is done */
82
#include "board.h"
83
/*---------------------------------------------------------------------------*/
84
/* Include CPU-related configuration */
85
#include "cc2538-conf.h"
86
/*---------------------------------------------------------------------------*/
87
#endif
/* CONTIKI_CONF_H_ */
88
/*---------------------------------------------------------------------------*/
89
/** @} */
arch
platform
cc2538dk
contiki-conf.h
Generated on
for Contiki-NG by
1.17.0