Hello
Now I use the processor to configure PIN, when I configure the pin PTE11,but the processor will auto refresh, and will show PTA configuration interface, so I want to configure the PTE port again, I should pull down the interface again. This is a waste of my time.
Is there a Configuration option to put an end to this situation?
Hi
Please try:
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi,
the processor creates two files named mux.h and mux.c. In this files it saves your pin configuration. If you have problems with the processor you can add a pin configuration in the mux.c by yourself (The example below shows two configurations... just copy one of them and change it for your purpose):
pin_settings_config_t g_pin_mux_InitConfigArr[NUM_OF_CONFIGURED_PINS] = { { .base = PORTC, .pinPortIdx = 1u, .pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED, .passiveFilter = false, .driveSelect = PORT_LOW_DRIVE_STRENGTH, .mux = PORT_MUX_AS_GPIO, .pinLock = false, .intConfig = PORT_INT_EITHER_EDGE, .clearIntFlag = false, .gpioBase = PTC, .direction = GPIO_INPUT_DIRECTION, .digitalFilter = false, }, { .base = PORTE, .pinPortIdx = 0u, .pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED, .passiveFilter = false, .driveSelect = PORT_LOW_DRIVE_STRENGTH, .mux = PORT_MUX_AS_GPIO, .pinLock = false, .intConfig = PORT_INT_EITHER_EDGE, .clearIntFlag = false, .gpioBase = PTC, .direction = GPIO_INPUT_DIRECTION, .digitalFilter = false, } }
But be sure, that the definition of
NUM_OF_CONFIGURED_PINS = 0x02U
in the mux.h file matches the number of pin configurations in the array above.
Best regards
Tom