Other Parts Discussed in Thread: HALCOGEN
I am trying to use the SPI2NCS[0] pin as a GIO to pet an external WatchDog (toggle every 1.6s else reset).
In my HALCOGEN I have enabled the SPI2 driver and for the SPI2 Port SCS[0] i have set the pin mode to GIO.
/** - SPI2 Port output values */
spiREG2->PC3 = (uint32_t)((uint32_t)1U << 0U) /* SCS[0] */
| (uint32_t)((uint32_t)0U << 1U) /* SCS[1] */
| (uint32_t)((uint32_t)0U << 8U) /* ENA */
| (uint32_t)((uint32_t)0U << 9U) /* CLK */
| (uint32_t)((uint32_t)0U << 10U) /* SIMO */
| (uint32_t)((uint32_t)0U << 11U); /* SOMI */
I do not need to use the HALCOGEN functions to send the data because the code is interrupt context.
From the datasheet it is not clear to me how to use it as a GIO and simply toggle the ping.