NHS31xx SW API
sense_gpio_sel.h
1 /*
2  * Copyright 2016-2017 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __APP_SEL_GPIO_H_
13 #define __APP_SEL_GPIO_H_
14 
27 #if APP_SENSE_GPIO == 10
28 
32 #define GROUP_COUNT 2
33 
38 #define GROUP_MAX_PILLS 9
39 
44 #define GROUP_PROPERTIES { /* GROUP 1 */ {IOCON_PIO0_5 , { /* pill 1.1 */ IOCON_PIO0_9}, 1}, \
45  /* GROUP 2 */ {IOCON_PIO0_9 , { /* pill 2.1 */ IOCON_PIO0_7, \
46  /* pill 2.2 */ IOCON_PIO0_3, \
47  /* pill 2.3 */ IOCON_PIO0_10, \
48  /* pill 2.4 */ IOCON_PIO0_11, \
49  /* pill 2.5 */ IOCON_PIO0_8, \
50  /* pill 2.6 */ IOCON_PIO0_6, \
51  /* pill 2.7 */ IOCON_PIO0_2, \
52  /* pill 2.8 */ IOCON_PIO0_1, \
53  /* pill 2.9 */ IOCON_PIO0_0}, 9}}
54 
56 #else
57 
61 #define GROUP_COUNT 4
62 
67 #define GROUP_MAX_PILLS 4
68 
73 #define GROUP_PROPERTIES { /* GROUP 1 */ {IOCON_PIO0_2 , { /* pill 1.1 */ IOCON_PIO0_6, \
74  /* pill 1.2 */ IOCON_PIO0_8, \
75  /* pill 1.3 */ IOCON_PIO0_9, \
76  /* pill 1.4 */ IOCON_PIO0_3}, 4}, \
77  /* GROUP 2 */ {IOCON_PIO0_1 , { /* pill 2.1 */ IOCON_PIO0_8, \
78  /* pill 2.2 */ IOCON_PIO0_9, \
79  /* pill 2.3 */ IOCON_PIO0_3}, 3}, \
80  /* GROUP 3 */ {IOCON_PIO0_5 , { /* pill 3.1 */ IOCON_PIO0_6, \
81  /* pill 3.2 */ IOCON_PIO0_8, \
82  /* pill 3.3 */ IOCON_PIO0_9, \
83  /* pill 3.4 */ IOCON_PIO0_3}, 4}, \
84  /* GROUP 4 */ {IOCON_PIO0_4 , { /* pill 4.1 */ IOCON_PIO0_8, \
85  /* pill 4.2 */ IOCON_PIO0_9, \
86  /* pill 4.3 */ IOCON_PIO0_3}, 3}}
87 
88 #endif
89 
90 #endif