Contiki-NG
cctest.h
Go to the documentation of this file.
1/*
2 * Original file:
3 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
4 * All rights reserved.
5 *
6 * Port to Contiki:
7 * Copyright (c) 2013, ADVANSEE - http://www.advansee.com/
8 * Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 *
20 * 3. Neither the name of the copyright holder nor the names of its
21 * contributors may be used to endorse or promote products derived
22 * from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
28 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
33 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
35 * OF THE POSSIBILITY OF SUCH DAMAGE.
36 */
37/**
38 * \addtogroup cc2538-rfcore
39 * @{
40 *
41 * \file
42 * Header with declarations of CCTEST module registers.
43 */
44#ifndef CCTEST_H
45#define CCTEST_H
46
47/*---------------------------------------------------------------------------*/
48/**
49 * \name CCTEST register offsets
50 * @{
51 */
52#define CCTEST_IO 0x44010000 /**< Output strength control */
53#define CCTEST_OBSSEL0 0x44010014 /**< Observation output 0 */
54#define CCTEST_OBSSEL1 0x44010018 /**< Observation output 1 */
55#define CCTEST_OBSSEL2 0x4401001C /**< Observation output 2 */
56#define CCTEST_OBSSEL3 0x44010020 /**< Observation output 3 */
57#define CCTEST_OBSSEL4 0x44010024 /**< Observation output 4 */
58#define CCTEST_OBSSEL5 0x44010028 /**< Observation output 5 */
59#define CCTEST_OBSSEL6 0x4401002C /**< Observation output 6 */
60#define CCTEST_OBSSEL7 0x44010030 /**< Observation output 7 */
61#define CCTEST_TR0 0x44010034 /**< Test register 0 */
62#define CCTEST_USBCTRL 0x44010050 /**< USB PHY stand-by control */
63/** @} */
64/*---------------------------------------------------------------------------*/
65/** \name CCTEST_IO register bit fields
66 * @{
67 */
68#define CCTEST_IO_SC 0x00000001 /**< I/O strength control */
69/** @} */
70/*---------------------------------------------------------------------------*/
71/** \name CCTEST_OBSSELx registers bit fields
72 * @{
73 */
74#define CCTEST_OBSSEL_EN 0x00000080 /**< Observation output enable */
75#define CCTEST_OBSSEL_SEL_M 0x0000007F /**< n - obs_sigs[n] output selection mask */
76#define CCTEST_OBSSEL_SEL_S 0 /**< n - obs_sigs[n] output selection shift */
77/** @} */
78/*---------------------------------------------------------------------------*/
79/** \name CCTEST_TR0 register bit fields
80 * @{
81 */
82#define CCTEST_TR0_ADCTM 0x00000002 /**< Connect temperature sensor to ADC */
83/** @} */
84/*---------------------------------------------------------------------------*/
85/** \name CCTEST_USBCTRL register bit fields
86 * @{
87 */
88#define CCTEST_USBCTRL_USB_STB 0x00000001 /**< USB PHY stand-by override */
89/** @} */
90
91#endif /* CCTEST_H */
92/** @} */