ISSDK  1.7
IoT Sensing Software Development Kit
frdm_stbc_agm02_shield.h
Go to the documentation of this file.
1 /*
2 * The Clear BSD License
3 * Copyright (c) 2016, Freescale Semiconductor, Inc.
4 * All rights reserved.
5 *
6 *
7 * Redistribution and use in source and binary forms, with or without modification,
8 * are permitted (subject to the limitations in the disclaimer below) provided
9 * that the following conditions are met:
10 *
11 * o Redistributions of source code must retain the above copyright notice, this list
12 * of conditions and the following disclaimer.
13 *
14 * o Redistributions in binary form must reproduce the above copyright notice, this
15 * list of conditions and the following disclaimer in the documentation and/or
16 * other materials provided with the distribution.
17 *
18 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived from this
20 * software without specific prior written permission.
21 *
22 * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34 
35 /*! File: frdm_stbc_agm01_shield.h
36 * @brief The \b frdm_stbc_agm01_shield.h file declares mapping of the Kinetis
37  Device peripherals to the frmd-k64f and frmd-stbc-agm01 shield
38 */
39 
40 #ifndef _FRDM_STBC_AGM02_SHIELD_H_
41 #define _FRDM_STBC_AGM02_SHIELD_H_
42 
43 /* The shield name */
44 #define SHIELD_NAME "FRDM-STBC-AGM02"
45 
46 // MAG3110 Sensor Information
47 #define MAG3110_I2C_ADDR 0x0E
48 #define MAG3110_INT1 D4
49 
50 // FXLS8952C Sensor Information
51 #define FXLS8952C_I2C_ADDR 0x18
52 #define FXLS8952C_INT1 D3
53 #define FXLS8952C_INT2 D2
54 
55 // FXAS21002 Sensor Information
56 #define FXAS21002_I2C_ADDR 0x20
57 #define FXAS21002_CS D10
58 #define FXAS21002_INT1 D5
59 #define FXAS21002_INT2 D8
60 
61 // FRDM-STBC-AGM02 Shield Reset
62 #define RESET_GPIO A3
63 
64 ///@name Shield Parameters
65 /// Use this section to define the shield board: 3 bit code 0 to 7 inclusive
66 /// transmitted in bits 7-5 for display purposes only.
67 ///@{
68 #define SHIELD_MULTIB 0
69 #define SHIELD_NONE 1
70 #define SHIELD_AGM01 2
71 #define SHIELD_AGM02 3
72 #define THIS_SHIELD SHIELD_AGM02
73 
74 // spare 5 to 7 inclusive
75 ///@}
76 
77 #endif /* _FRDM_STBC_AGM02_SHIELD_H_ */