1360 lines
48 KiB
C
1360 lines
48 KiB
C
//*****************************************************************************
|
|
//
|
|
// am_bsp_pins.c
|
|
//! @file
|
|
//!
|
|
//! @brief BSP pin configuration definitions.
|
|
//!
|
|
//! @addtogroup BSP Board Support Package (BSP)
|
|
//! @addtogroup apollo3_evb_bsp BSP for the Apollo3 Engineering Board
|
|
//! @ingroup BSP
|
|
//! @{
|
|
//
|
|
//*****************************************************************************
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// Copyright (c) 2020, Ambiq Micro
|
|
// All rights reserved.
|
|
//
|
|
// Redistribution and use in source and binary forms, with or without
|
|
// modification, are permitted provided that the following conditions are met:
|
|
//
|
|
// 1. Redistributions of source code must retain the above copyright notice,
|
|
// this list of conditions and the following disclaimer.
|
|
//
|
|
// 2. Redistributions in binary form must reproduce the above copyright
|
|
// notice, this list of conditions and the following disclaimer in the
|
|
// documentation and/or other materials provided with the distribution.
|
|
//
|
|
// 3. Neither the name of the copyright holder nor the names of its
|
|
// contributors may be used to endorse or promote products derived from this
|
|
// software without specific prior written permission.
|
|
//
|
|
// Third party software included in this distribution is subject to the
|
|
// additional license terms as defined in the /docs/licenses directory.
|
|
//
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
//
|
|
// This is part of revision 2.4.2 of the AmbiqSuite Development Package.
|
|
//
|
|
//*****************************************************************************
|
|
|
|
#include "am_bsp.h"
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// BUTTON0 pin: Labeled BTN2 on the Apollo3 Blue Plus EVB.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_BUTTON0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_16_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// BUTTON1 pin: Labeled BTN3 on the Apollo3 Blue Plus EVB.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_BUTTON1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_18_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// BUTTON2 pin: Labeled BTN4 on the Apollo3 Blue Plus EVB.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_BUTTON2 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_19_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// LED0 pin: The LED nearest the end of the board.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_LED0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_10_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// LED1 pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_LED1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_30_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// LED2 pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_LED2 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_15_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// LED3 pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_LED3 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_14_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// LED4 pin: The LED at the most interior location.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_LED4 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_17_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// COM_UART_TX pin: This pin is the COM_UART transmit pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_COM_UART_TX =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_22_UART0TX,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// COM_UART_RX pin: This pin is the COM_UART receive pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_COM_UART_RX =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_23_UART0RX
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// COM_UART_CTS pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_COM_UART_CTS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_38_UA0CTS
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// COM_UART_RTS pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_COM_UART_RTS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_37_UA0RTS,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// UART_TX pin: This pin is the COM_UART transmit pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_UART_TX =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_35_UART1TX,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// UART_RX pin: This pin is the COM_UART receive pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_UART_RX =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_36_UART1RX
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// UART_CTS pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_UART_CTS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_45_UA1CTS
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// UART_RTS pin.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_UART_RTS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_44_UA1RTS,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM0_CS pin: I/O Master 0 chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM0_CS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_11_NCE11,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 0,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM0_CS3 pin: I/O Master 0 chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM0_CS3 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_15_NCE15,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 0,
|
|
.uNCE = 3,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM0_MISO pin: I/O Master 0 SPI MISO signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM0_MISO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_6_M0MISO,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM0_MOSI pin: I/O Master 0 SPI MOSI signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM0_MOSI =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_7_M0MOSI,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM0_SCK pin: I/O Master 0 SPI SCK signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM0_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_5_M0SCK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM0_SCL pin: I/O Master 0 I2C clock signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM0_SCL =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_5_M0SCL,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM0_SDA pin: I/O Master 0 I2C data signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM0_SDA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_6_M0SDAWIR3,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM1_CS pin: I/O Master 1 chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM1_CS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_34_NCE34,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 1,
|
|
.uNCE = 2,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM1_MISO pin: I/O Master 1 SPI MISO signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM1_MISO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_9_M1MISO,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM1_MOSI pin: I/O Master 1 SPI MOSI signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM1_MOSI =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_10_M1MOSI,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM1_SCK pin: I/O Master 1 SPI SCK signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM1_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_8_M1SCK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM1_SCL pin: I/O Master 1 I2C clock signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM1_SCL =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_8_M1SCL,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM1_SDA pin: I/O Master 1 I2C data signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM1_SDA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_9_M1SDAWIR3,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM2_CS pin: I/O Master 2 chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM2_CS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_15_NCE15,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 2,
|
|
.uNCE = 3,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM2_MISO pin: I/O Master 2 SPI MISO signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM2_MISO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_25_M2MISO,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM2_MOSI pin: I/O Master 2 SPI MOSI signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM2_MOSI =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_28_M2MOSI,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM2_SCK pin: I/O Master 2 SPI SCK signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM2_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_27_M2SCK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM2_SCL pin: I/O Master 2 I2C clock signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM2_SCL =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_27_M2SCL,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM2_SDA pin: I/O Master 2 I2C data signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM2_SDA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_25_M2SDAWIR3,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM3_CS pin: I/O Master 3 chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM3_CS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_29_NCE29,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 3,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM3_MISO pin: I/O Master 3 SPI MISO signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM3_MISO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_43_M3MISO,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 3
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM3_MOSI pin: I/O Master 3 SPI MOSI signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM3_MOSI =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_38_M3MOSI,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 3
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM3_SCK pin: I/O Master 3 SPI SCK signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM3_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_42_M3SCK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 3
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM3_SCL pin: I/O Master 3 I2C clock signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM3_SCL =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_42_M3SCL,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 3
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM3_SDA pin: I/O Master 3 I2C data signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM3_SDA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_43_M3SDAWIR3,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 3
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM4_CS pin: I/O Master 4 chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM4_CS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_13_NCE13,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 4,
|
|
.uNCE = 1,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM4_MISO pin: I/O Master 4 SPI MISO signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM4_MISO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_40_M4MISO,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 4
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM4_MOSI pin: I/O Master 4 SPI MOSI signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM4_MOSI =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_44_M4MOSI,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 4
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM4_SCK pin: I/O Master 4 SPI SCK signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM4_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_39_M4SCK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 4
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM4_SCL pin: I/O Master 4 I2C clock signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM4_SCL =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_39_M4SCL,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 4
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM4_SDA pin: I/O Master 4 I2C data signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM4_SDA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_40_M4SDAWIR3,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 4
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM5_CS pin: I/O Master 5 chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM5_CS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_16_NCE16,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 5,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM5_MISO pin: I/O Master 5 SPI MISO signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM5_MISO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_49_M5MISO,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 5
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM5_MOSI pin: I/O Master 5 SPI MOSI signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM5_MOSI =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_47_M5MOSI,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 5
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM5_SCK pin: I/O Master 5 SPI SCK signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM5_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_48_M5SCK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 5
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM5_SCL pin: I/O Master 5 I2C clock signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM5_SCL =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_48_M5SCL,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 5
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOM5_SDA pin: I/O Master 5 I2C data signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOM5_SDA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_49_M5SDAWIR3,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 5
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI0_CE0 pin: MSPI0 chip select 0. Note: CE1 must be disabled or tristated when using this pin for CE.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI0_CE0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_37_NCE37,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI0_CE1 pin: MSPI0 chip select 1. Note: CE0 must be disabled or tristated when using this pin for CE.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI0_CE1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_12_NCE12,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI0_D0 pin: MSPI0 data 0.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI0_D0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_22_MSPI0_0,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI0_D1 pin: MSPI0 data 1.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI0_D1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_26_MSPI0_1,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI0_D2 pin: MSPI0 data 2.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI0_D2 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_4_MSPI0_2,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI0_D3 pin: MSPI0 data 3.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI0_D3 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_23_MSPI0_3,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI0_SCK pin: MSPI0 clock.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI0_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_24_MSPI0_8,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_CE0 pin: MSPI1 chip select 0. Note: CE1 must be disabled or tristated when using this pin for CE.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_CE0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_50_NCE50,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_CE1 pin: MSPI1 chip select 1. Note: CE0 must be disabled or tristated when using this pin for CE.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_CE1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_62_NCE62,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D0 pin: MSPI1 data 0.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_51_MSPI1_0,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D1 pin: MSPI1 data 1.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_52_MSPI1_1,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D2 pin: MSPI1 data 2.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D2 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_53_MSPI1_2,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D3 pin: MSPI1 data 3.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D3 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_54_MSPI1_3,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D4 pin: MSPI1 data 4.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D4 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_55_MSPI1_4,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D5 pin: MSPI1 data 5.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D5 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_56_MSPI1_5,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D6 pin: MSPI1 data 6.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D6 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_57_MSPI1_6,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_D7 pin: MSPI1 data 7.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_D7 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_58_MSPI1_7,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_SCK pin: MSPI1 clock.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_59_MSPI1_8,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI1_DMDQS pin: MSPI1 DDR Data Strobe.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI1_DMDQS =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_60_MSPI1_9,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 1
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI2_CE0 pin: MSPI2 chip select 0. Note: CE2 must be disabled or tristated when using this pin for CE.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI2_CE0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_63_NCE63,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 2,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI2_CE1 pin: MSPI2 chip select 1. Note: CE0 must be disabled or tristated when using this pin for CE.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI2_CE1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_61_NCE61,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 0,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI2_D0 pin: MSPI2 data 0.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI2_D0 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_64_MSPI2_0,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI2_D1 pin: MSPI2 data 1.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI2_D1 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_65_MSPI2_1,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI2_D2 pin: MSPI2 data 2.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI2_D2 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_66_MSPI2_2,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI2_D3 pin: MSPI2 data 3.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI2_D3 =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_67_MSPI2_3,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// MSPI2_SCK pin: MSPI2 clock.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_MSPI2_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_68_MSPI2_4,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_8MA,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 0,
|
|
.uIOMnum = 2
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// DISPLAY_TE pin: Display TE signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_DISPLAY_TE =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_72_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// DISPLAY_RESET pin: Display reset control.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_DISPLAY_RESET =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_73_GPIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOS_CE pin: I/O Slave chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOS_CE =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_3_SLnCE,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE,
|
|
.uNCE = 0,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOS_MISO pin: I/O Slave SPI MISO signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOS_MISO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_2_SLMISO
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOS_MOSI pin: I/O Slave SPI MOSI signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOS_MOSI =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_1_SLMOSI,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOS_SCK pin: I/O Slave SPI SCK signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOS_SCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_0_SLSCK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOS_SCL pin: I/O Slave I2C clock signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOS_SCL =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_0_SLSCL,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_ENABLE
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// IOS_SDA pin: I/O Slave I2C data signal.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_IOS_SDA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_1_SLSDAWIR3,
|
|
.ePullup = AM_HAL_GPIO_PIN_PULLUP_1_5K,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_OPENDRAIN
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// PDMCLK pin: PDM CLK.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_PDMCLK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_12_PDMCLK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// PDM_DATA pin: PDM DATA.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_PDM_DATA =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_11_PDMDATA,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// SCARD_SCCCLK pin: SCARD SCCCLK.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_SCARD_SCCCLK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_8_SCCCLK,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// SCARD_SCCIO pin: Fireball device test board chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_SCARD_SCCIO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_9_SCCIO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// SCARD_SCCRST pin: SCARD SCCRST.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_SCARD_SCCRST =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_46_SCCRST,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// ITM_SWO pin: ITM Serial Wire Output.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_ITM_SWO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_41_SWO,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_2MA
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// SWDCK pin: Cortex Serial Wire DCK.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_SWDCK =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_20_SWDCK
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// SWDIO pin: Cortex Serial Wire DIO.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_SWDIO =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_21_SWDIO
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// FIREBALL_CE pin: Fireball device test board chip select.
|
|
//
|
|
//*****************************************************************************
|
|
const am_hal_gpio_pincfg_t g_AM_BSP_GPIO_FIREBALL_CE =
|
|
{
|
|
.uFuncSel = AM_HAL_PIN_30_NCE30,
|
|
.eDriveStrength = AM_HAL_GPIO_PIN_DRIVESTRENGTH_12MA,
|
|
.eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL,
|
|
.eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
|
|
.eIntDir = AM_HAL_GPIO_PIN_INTDIR_LO2HI,
|
|
.bIomMSPIn = 1,
|
|
.uIOMnum = 5,
|
|
.uNCE = 3,
|
|
.eCEpol = AM_HAL_GPIO_PIN_CEPOL_ACTIVELOW
|
|
};
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// End Doxygen group.
|
|
//! @}
|
|
//
|
|
//*****************************************************************************
|