2017-07-26 17:40:18 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017, NXP
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Board configuration macros for the nxp_lpc54114 platform
|
|
|
|
*
|
|
|
|
* This header file is used to specify and describe board-level aspects for the
|
|
|
|
* 'nxp_lpc54114' platform.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SOC__H_
|
|
|
|
#define _SOC__H_
|
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
2019-06-26 22:33:55 +08:00
|
|
|
#include <sys/util.h>
|
2017-07-26 17:40:18 +08:00
|
|
|
#include <fsl_common.h>
|
2019-09-13 01:23:03 +08:00
|
|
|
|
2019-09-23 01:24:34 +08:00
|
|
|
/* Add include for DTS generated information */
|
2020-01-16 20:29:53 +08:00
|
|
|
#include <devicetree.h>
|
2019-09-23 01:24:34 +08:00
|
|
|
|
2017-07-26 17:40:18 +08:00
|
|
|
#endif /* !_ASMLANGUAGE */
|
|
|
|
|
2018-05-16 02:47:24 +08:00
|
|
|
#define IOCON_PIO_DIGITAL_EN 0x80u
|
|
|
|
#define IOCON_PIO_FUNC0 0x00u
|
|
|
|
#define IOCON_PIO_FUNC1 0x01u
|
|
|
|
#define IOCON_PIO_FUNC2 0x02u
|
2019-07-04 03:49:36 +08:00
|
|
|
#define IOCON_PIO_FUNC3 0x03u
|
|
|
|
#define IOCON_PIO_FUNC4 0x04u
|
2019-12-09 04:38:02 +08:00
|
|
|
#define IOCON_PIO_I2CDRIVE_LOW 0x00u
|
|
|
|
#define IOCON_PIO_I2CFILTER_EN 0x00u
|
|
|
|
#define IOCON_PIO_I2CSLEW_I2C 0x00u
|
2018-05-16 02:47:24 +08:00
|
|
|
#define IOCON_PIO_INPFILT_OFF 0x0100u
|
|
|
|
#define IOCON_PIO_INV_DI 0x00u
|
|
|
|
#define IOCON_PIO_MODE_INACT 0x00u
|
|
|
|
#define IOCON_PIO_OPENDRAIN_DI 0x00u
|
|
|
|
#define IOCON_PIO_SLEW_STANDARD 0x00u
|
|
|
|
#define IOCON_PIO_MODE_PULLUP 0x10u
|
2019-10-09 20:28:11 +08:00
|
|
|
#define IOCON_PIO_MODE_PULLDOWN 0x08u
|
2018-05-16 02:47:24 +08:00
|
|
|
|
2017-07-26 17:40:18 +08:00
|
|
|
#endif /* _SOC__H_ */
|