AnsweredAssumed Answered

GPIO initial state = No init

Question asked by Guillaume Audirac Employee on Jul 19, 2018
Latest reply on Jul 25, 2018 by Guillaume Audirac

I'm trying to generate pin_mux.c/h files for K64F with the Config Tools v4.1. When configuring GPIO outputs with no initial state (GPIO initial state = No init), the GPIOs pins are still initialized in the generated code.

Basically, there is no difference between "No init" and "Logical 0". I expected the GPIO_PinInit() function not to be called with "No init" setting.

Extract of pin_mux.c file (with "No init"):

    gpio_pin_config_t AIR_WAKEN_config = {
        .pinDirection = kGPIO_DigitalOutput,
        .outputLogic = 0U
    /* Initialize GPIO functionality on pin PTA1 (pin J6)  */