NHS31xx SW API
lib_board_dpa/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 "accel/accel.h"
17 
57 #define BOARD_DPA
58 
65 /* #define BOARD_PIO0_PULL unused: pin 0 in use for the accelerometer interrupt line. */
66 #define BOARD_PIO1_PULL IOCON_RMODE_PULLDOWN
67 #define BOARD_PIO2_PULL IOCON_RMODE_PULLDOWN
68 /* #define BOARD_PIO3_PULL unused: pin 3 used to keep the accelerometer powered. */
69 #define BOARD_PIO4_PULL IOCON_RMODE_INACT
70 #define BOARD_PIO5_PULL IOCON_RMODE_INACT
71 /* #define BOARD_PIO6_PULL unused: pin 6 in use for the accelerometer (precharging) . */
72 #define BOARD_PIO7_PULL IOCON_RMODE_PULLDOWN
73 #define BOARD_PIO8_PULL IOCON_RMODE_PULLDOWN
74 #define BOARD_PIO9_PULL IOCON_RMODE_PULLDOWN
75 #define BOARD_PIO10_PULL IOCON_RMODE_PULLDOWN
76 #define BOARD_PIO11_PULL IOCON_RMODE_PULLDOWN
77 
79 #define BOARD_ACCEL_POWER_PIN IOCON_PIO0_3
80 #define BOARD_ACCEL_PRECHARGE_PIN IOCON_PIO0_6
83 #define BOARD_ENABLE_WAKEUP
84 
85 /* -------------------------------------------------------------------------------- */
86 
107 void Board_Init(void);
108 
112 void Board_DeInit(void);
113 
114 /* -------------------------------------------------------------------------------- */
115 
121 void Board_PowerOnAccel(void);
122 
127 void Board_PowerOffAccel(void);
128 
133 bool Board_AccelIsPowered(void);
134 
135 #endif
void Board_PowerOnAccel(void)
void Board_Init(void)
void Board_DeInit(void)
bool Board_AccelIsPowered(void)
void Board_PowerOffAccel(void)