NHS31xx SW API
lib_board_dpahu/inc/board.h
1 /*
2  * Copyright 2018-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 __BOARD_H_
13 #define __BOARD_H_
14 
15 #include "chip.h"
16 #include "led/led.h"
17 #include "ucode/ucode.h"
18 #include "accel/accel.h"
19 #include "humid/humid.h"
20 
63 #define BOARD_DPAHU
64 
71 /* #define BOARD_PIO0_PULL unused: pin 0 in use for the accelerometer interrupt line. */
72 #define BOARD_PIO1_PULL IOCON_RMODE_PULLDOWN /* I2C SDA pin when bitbanging */
73 #define BOARD_PIO2_PULL IOCON_RMODE_PULLDOWN /* I2C SCL pin when bitbanging */
74 /* #define BOARD_PIO3_PULL unused: pin 3 used to keep the accelerometer powered. */
75 #define BOARD_PIO4_PULL IOCON_RMODE_INACT
76 #define BOARD_PIO5_PULL IOCON_RMODE_INACT
77 /* #define BOARD_PIO6_PULL unused: pin 6 in use for the accelerometer (precharging) . */
78 #define BOARD_PIO7_PULL IOCON_RMODE_PULLDOWN /* Power pin for powering humidity sensor and UCode-I2C. By default off. */
79 #define BOARD_PIO8_PULL IOCON_RMODE_PULLDOWN /* LED. Active high. */
80 #define BOARD_PIO9_PULL IOCON_RMODE_PULLUP /* When using pin9 for UARTTX, a pull-up prevents undesired 'break' conditions. */
81 #define BOARD_PIO10_PULL IOCON_RMODE_PULLDOWN
82 #define BOARD_PIO11_PULL IOCON_RMODE_PULLDOWN
83 
85 #define BOARD_ACCEL_POWER_PIN IOCON_PIO0_3
86 #define BOARD_ACCEL_PRECHARGE_PIN IOCON_PIO0_6
87 #define BOARD_HUMID_POWER_PIN IOCON_PIO0_7
88 #define BOARD_UCODE_POWER_PIN IOCON_PIO0_7
91 #define BOARD_ENABLE_WAKEUP
92 
93 /* -------------------------------------------------------------------------------- */
94 
116 void Board_Init(void);
117 
121 void Board_DeInit(void);
122 
123 /* -------------------------------------------------------------------------------- */
124 
130 void Board_PowerOnAccel(void);
131 
136 void Board_PowerOffAccel(void);
137 
142 bool Board_AccelIsPowered(void);
143 
144 #endif
void Board_PowerOffAccel(void)
void Board_PowerOnAccel(void)
void Board_Init(void)
void Board_DeInit(void)
bool Board_AccelIsPowered(void)