Hi Ryan Pearson,
Please try the codes show below:
/* Enable clock gate for ports to enable pin routing */
SIM_PDD_SetClockGate(SIM_BASE_PTR, SIM_PDD_CLOCK_GATE_PORTD, PDD_ENABLE);
/* Configure pin as output */
GPIO_PDD_SetPortDirection(PTA_BASE_PTRPTD_BASE_PTR,GPIO_PDD_PIN_4);
/* Set initialization value */
GPIO_PDD_SetPortDataOutput(PTA_BASE_PTRPTD_BASE_PTR, GPIO_PDD_PIN_4);
/* Initialization of Port Control register */
PORT_PDD_SetPinMuxControl(PORTD_BASE_PTR, 4, PORT_PDD_MUX_CONTROL_ALT1);
/* Toggle the output of PTD4 */
GPIO_PDD_TogglePortDataOutputMask(PTA_BASE_PTRPTD_BASE_PTR,GPIO_PDD_PIN_4);
You can also use other components, for example: BitIO_LDD


Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------