The MCUXpresso config tool generates code that configures the pins of an MCU. For example, the following code was generated by the tool:
IOCON->PIO = ((IOCON->PIO &
/* Mask bits to zero which are setting */
(~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK)))
/* Selects pin function.
* : PORT022 (pin B12) is configured as USB0_VBUS. */
/* Select Analog/Digital mode.
* : Digital mode. */
Compare this to code from standalone SDK examples:
const uint32_t port0_pin22_config = (/* Pin is configured as USB0_VBUS */
/* No addition pin function */
/* Input function is not inverted */
/* Enables digital function */
/* Input filter disabled */
/* Standard mode, output slew rate control is enabled */
/* Open drain is disabled */
/* PORT0 PIN22 (coords: B12) is configured as USB0_VBUS */
IOCON_PinMuxSet(IOCON, 0U, 22U, port0_pin22_config);
Why doesn't the config tool use IOCON_PinMuxSet? Is the config tool behaving correctly, and are there any plans to change the tool to generate consistent code with the standalone SDK examples?