Other Parts Discussed in Thread: SYSCONFIG
Hello,
I need to change all my MCSPI0 pins to GPIOs and back again.
In sysconfig I have initially set up only one GPIO as an interrupt and an instance of MCSPI.
I have tried defining a new Pinmux_PerCfg_t struct and setting it by running Pinmux_config but it doesn't seem to do anything.
I thought maybe it was because I had to close the mcspi instance first but that didn't change anything either.
Below is the auto-generated pinmux from sysconfig and the struct I wanted to change to.
Thank in advance,
Chris
static Pinmux_PerCfg_t gPinMuxMainDomainCfg[] = {
{
PIN_EPWM0_A,
( PIN_MODE(7) | PIN_PULL_UP | PIN_SLEW_RATE_LOW | PIN_QUAL_SYNC | PIN_GPIO_R5SS0_0 )
},
{
PIN_SPI0_CLK,
( PIN_MODE(0) | PIN_PULL_DISABLE | PIN_SLEW_RATE_LOW )
},
{
PIN_SPI0_D0,
( PIN_MODE(0) | PIN_PULL_DISABLE | PIN_SLEW_RATE_LOW )
},
{
PIN_SPI0_D1,
( PIN_MODE(0) | PIN_PULL_DISABLE | PIN_SLEW_RATE_LOW )
},
{
PIN_SPI0_CS0,
( PIN_MODE(0) | PIN_PULL_DISABLE )
},
{PINMUX_END, PINMUX_END}
};
Pinmux_PerCfg_t pinMuxGpioConfig[] = {
{
PIN_EPWM0_A,
( PIN_MODE(7) | PIN_PULL_UP | PIN_SLEW_RATE_LOW | PIN_QUAL_SYNC | PIN_GPIO_R5SS0_0 )
},
{
PIN_SPI0_CLK,
( PIN_MODE(7) | PIN_PULL_DISABLE | PIN_SLEW_RATE_LOW )
},
{
PIN_SPI0_D0,
( PIN_MODE(7) | PIN_PULL_DISABLE | PIN_SLEW_RATE_LOW )
},
{
PIN_SPI0_D1,
( PIN_MODE(7) | PIN_PULL_DISABLE | PIN_SLEW_RATE_LOW )
},
{
PIN_SPI0_CS0,
( PIN_MODE(7) | PIN_PULL_DISABLE )
},
{PINMUX_END, PINMUX_END}
};