- Wed Feb 02, 2022 7:18 am
#231154
Hello, For my device, CS is active high, and the default CS pin behavior is active low. I am using IOM0 and tried to change line 244 in am_bsp_pins.c to the following
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_ACTIVEHIGH
};
However, when I probe GPIO11, (as well as the SCLK AND SDI), the clock and data lines look correct, however, I couldn't for my life change the CS line to be active high.....help is much appreciated!
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_ACTIVEHIGH
};
However, when I probe GPIO11, (as well as the SCLK AND SDI), the clock and data lines look correct, however, I couldn't for my life change the CS line to be active high.....help is much appreciated!