NHS31xx SW API
lib_board_dpu/inc/board.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 __BOARD_H_
13 #define __BOARD_H_
14 
15 #include "chip.h"
16 #include "led/led.h"
17 #include "ucode/ucode.h"
18 
54 #define BOARD_DPU
55 
62 #define BOARD_PIO0_PULL IOCON_RMODE_PULLDOWN
63 #define BOARD_PIO1_PULL IOCON_RMODE_PULLDOWN
64 #define BOARD_PIO2_PULL IOCON_RMODE_PULLDOWN
65 #define BOARD_PIO3_PULL IOCON_RMODE_PULLDOWN
66 #define BOARD_PIO4_PULL IOCON_RMODE_PULLDOWN
67 #define BOARD_PIO5_PULL IOCON_RMODE_PULLDOWN
68 #define BOARD_PIO6_PULL IOCON_RMODE_PULLDOWN
69 #define BOARD_PIO7_PULL IOCON_RMODE_PULLDOWN
70 #define BOARD_PIO8_PULL IOCON_RMODE_PULLDOWN
71 #define BOARD_PIO9_PULL IOCON_RMODE_PULLUP /* When using pin9 for UARTTX, a pull-up prevents undesired 'break' conditions. */
72 #define BOARD_PIO10_PULL IOCON_RMODE_PULLDOWN
73 #define BOARD_PIO11_PULL IOCON_RMODE_PULLDOWN
74 
77 #undef BOARD_ENABLE_WAKEUP
78 #if defined(BOARD_ENABLE_WAKEUP) && (BOARD_PIO0_PULL!= IOCON_RMODE_PULLUP)
79  #error Wake up functionality cannot work without a pull-up on PIO0.
80 #endif
81 
100 void Board_Init(void);
101 
102 #endif
void Board_Init(void)