143 lines
7.4 KiB
C
143 lines
7.4 KiB
C
/***********************************************************************************************************************
|
|
* This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
|
|
* will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
|
|
**********************************************************************************************************************/
|
|
|
|
#ifndef _PIN_MUX_H_
|
|
#define _PIN_MUX_H_
|
|
|
|
/***********************************************************************************************************************
|
|
* Definitions
|
|
**********************************************************************************************************************/
|
|
|
|
/*! @brief Direction type */
|
|
typedef enum _pin_mux_direction
|
|
{
|
|
kPIN_MUX_DirectionInput = 0U, /* Input direction */
|
|
kPIN_MUX_DirectionOutput = 1U, /* Output direction */
|
|
kPIN_MUX_DirectionInputOrOutput = 2U /* Input or output direction */
|
|
} pin_mux_direction_t;
|
|
|
|
/*!
|
|
* @addtogroup pin_mux
|
|
* @{
|
|
*/
|
|
|
|
/***********************************************************************************************************************
|
|
* API
|
|
**********************************************************************************************************************/
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*!
|
|
* @brief Calls initialization functions.
|
|
*
|
|
*/
|
|
void BOARD_InitBootPins(void);
|
|
|
|
|
|
/*!
|
|
* @brief Configures pin routing and optionally pin electrical features.
|
|
*
|
|
*/
|
|
void BOARD_InitDbgUARTPins(void);
|
|
|
|
/* GPIO_B1_03 (coord D11), RST */
|
|
/* Routed pin properties */
|
|
#define BOARD_INITSPILCDPINS_RST_PERIPHERAL GPIO2 /*!< Peripheral name */
|
|
#define BOARD_INITSPILCDPINS_RST_SIGNAL gpio_io /*!< Signal name */
|
|
#define BOARD_INITSPILCDPINS_RST_CHANNEL 19U /*!< Signal channel */
|
|
|
|
/* Symbols to be used with GPIO driver */
|
|
#define BOARD_INITSPILCDPINS_RST_GPIO GPIO2 /*!< GPIO peripheral base pointer */
|
|
#define BOARD_INITSPILCDPINS_RST_GPIO_PIN 19U /*!< GPIO pin number */
|
|
#define BOARD_INITSPILCDPINS_RST_GPIO_PIN_MASK (1U << 19U) /*!< GPIO pin mask */
|
|
#define BOARD_INITSPILCDPINS_RST_PORT GPIO2 /*!< PORT peripheral base pointer */
|
|
#define BOARD_INITSPILCDPINS_RST_PIN 19U /*!< PORT pin number */
|
|
#define BOARD_INITSPILCDPINS_RST_PIN_MASK (1U << 19U) /*!< PORT pin mask */
|
|
|
|
|
|
/*!
|
|
* @brief Configures pin routing and optionally pin electrical features.
|
|
*
|
|
*/
|
|
void BOARD_InitSPILCDPins(void);
|
|
|
|
/* GPIO_AD_B0_10 (coord G13), LEDB */
|
|
/* Routed pin properties */
|
|
#define BOARD_INITLEDPINS_LEDB_PERIPHERAL GPIO1 /*!< Peripheral name */
|
|
#define BOARD_INITLEDPINS_LEDB_SIGNAL gpio_io /*!< Signal name */
|
|
#define BOARD_INITLEDPINS_LEDB_CHANNEL 10U /*!< Signal channel */
|
|
|
|
/* Symbols to be used with GPIO driver */
|
|
#define BOARD_INITLEDPINS_LEDB_GPIO GPIO1 /*!< GPIO peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDB_GPIO_PIN 10U /*!< GPIO pin number */
|
|
#define BOARD_INITLEDPINS_LEDB_GPIO_PIN_MASK (1U << 10U) /*!< GPIO pin mask */
|
|
#define BOARD_INITLEDPINS_LEDB_PORT GPIO1 /*!< PORT peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDB_PIN 10U /*!< PORT pin number */
|
|
#define BOARD_INITLEDPINS_LEDB_PIN_MASK (1U << 10U) /*!< PORT pin mask */
|
|
|
|
/* GPIO_AD_B1_08 (coord H13), LEDR */
|
|
/* Routed pin properties */
|
|
#define BOARD_INITLEDPINS_LEDR_PERIPHERAL GPIO1 /*!< Peripheral name */
|
|
#define BOARD_INITLEDPINS_LEDR_SIGNAL gpio_io /*!< Signal name */
|
|
#define BOARD_INITLEDPINS_LEDR_CHANNEL 24U /*!< Signal channel */
|
|
|
|
/* Symbols to be used with GPIO driver */
|
|
#define BOARD_INITLEDPINS_LEDR_GPIO GPIO1 /*!< GPIO peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDR_GPIO_PIN 24U /*!< GPIO pin number */
|
|
#define BOARD_INITLEDPINS_LEDR_GPIO_PIN_MASK (1U << 24U) /*!< GPIO pin mask */
|
|
#define BOARD_INITLEDPINS_LEDR_PORT GPIO1 /*!< PORT peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDR_PIN 24U /*!< PORT pin number */
|
|
#define BOARD_INITLEDPINS_LEDR_PIN_MASK (1U << 24U) /*!< PORT pin mask */
|
|
|
|
/* GPIO_AD_B1_09 (coord M13), LEDG */
|
|
/* Routed pin properties */
|
|
#define BOARD_INITLEDPINS_LEDG_PERIPHERAL GPIO1 /*!< Peripheral name */
|
|
#define BOARD_INITLEDPINS_LEDG_SIGNAL gpio_io /*!< Signal name */
|
|
#define BOARD_INITLEDPINS_LEDG_CHANNEL 25U /*!< Signal channel */
|
|
|
|
/* Symbols to be used with GPIO driver */
|
|
#define BOARD_INITLEDPINS_LEDG_GPIO GPIO1 /*!< GPIO peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDG_GPIO_PIN 25U /*!< GPIO pin number */
|
|
#define BOARD_INITLEDPINS_LEDG_GPIO_PIN_MASK (1U << 25U) /*!< GPIO pin mask */
|
|
#define BOARD_INITLEDPINS_LEDG_PORT GPIO1 /*!< PORT peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDG_PIN 25U /*!< PORT pin number */
|
|
#define BOARD_INITLEDPINS_LEDG_PIN_MASK (1U << 25U) /*!< PORT pin mask */
|
|
|
|
/* GPIO_AD_B0_09 (coord F14), LEDA */
|
|
/* Routed pin properties */
|
|
#define BOARD_INITLEDPINS_LEDA_PERIPHERAL GPIO1 /*!< Peripheral name */
|
|
#define BOARD_INITLEDPINS_LEDA_SIGNAL gpio_io /*!< Signal name */
|
|
#define BOARD_INITLEDPINS_LEDA_CHANNEL 9U /*!< Signal channel */
|
|
|
|
/* Symbols to be used with GPIO driver */
|
|
#define BOARD_INITLEDPINS_LEDA_GPIO GPIO1 /*!< GPIO peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDA_GPIO_PIN 9U /*!< GPIO pin number */
|
|
#define BOARD_INITLEDPINS_LEDA_GPIO_PIN_MASK (1U << 9U) /*!< GPIO pin mask */
|
|
#define BOARD_INITLEDPINS_LEDA_PORT GPIO1 /*!< PORT peripheral base pointer */
|
|
#define BOARD_INITLEDPINS_LEDA_PIN 9U /*!< PORT pin number */
|
|
#define BOARD_INITLEDPINS_LEDA_PIN_MASK (1U << 9U) /*!< PORT pin mask */
|
|
|
|
|
|
/*!
|
|
* @brief Configures pin routing and optionally pin electrical features.
|
|
*
|
|
*/
|
|
void BOARD_InitLEDPins(void);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
/*!
|
|
* @}
|
|
*/
|
|
#endif /* _PIN_MUX_H_ */
|
|
|
|
/***********************************************************************************************************************
|
|
* EOF
|
|
**********************************************************************************************************************/
|