NHS31xx SW API
ucode_dft.h
1 /*
2  * Copyright 2016-2019 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 __UCODE_DFT_H_
13 #define __UCODE_DFT_H_
14 
45 #ifndef UCODE_I2C_HW
46 
50  #define UCODE_I2C_HW 1
51 #endif
52 
53 #ifndef UCODE_I2C_BB
54 
59  #define UCODE_I2C_BB 0
60 #endif
61 
62 #if UCODE_I2C_HW && UCODE_I2C_BB
63  #error Only one of UCODE_I2C_HW and UCODE_I2C_BB may be set to a non-zero value.
64 #endif
65 #if !UCODE_I2C_HW && !UCODE_I2C_BB
66  #error One of UCODE_I2C_HW and UCODE_I2C_BB must be set to a non-zero value.
67 #endif
68 
69 #ifndef UCODE_I2C_POWER_PIN
70 
74  #define UCODE_I2C_POWER_PIN 6
75 #endif
76 
77 #ifndef UCODE_I2C_SLAVE_ADDRESS
78 
86  #define UCODE_I2C_SLAVE_ADDRESS 0x51
87 #endif
88 
89 #if !UCODE_PULLUP_COUNT && !defined(UCODE_PULLUPS)
90 
94  #define UCODE_PULLUP_COUNT 0
95 
101  #define UCODE_PULLUPS NULL
102 #elif UCODE_PULLUP_COUNT && defined(UCODE_PULLUPS)
103  /* OK */
104 #else
105  #error Both UCODE_PULLUP_COUNT and UCODE_PULLUPS must be both defined or undefined.
106  #error Define UCODE_PULLUPS as an array of type uint32_t and size UCODE_PULLUP_COUNT.
107 #endif
108 
109 #ifndef UCODE_EVENT_PRISTINE
110 
115  #define UCODE_EVENT_PRISTINE 1
116 #endif
117 
118 #endif