cancel
Showing results for 
Search instead for 
Did you mean: 

How do you write/read from pins Pxx_C ?

jet_socks
Associate

For example, when using the HAL drivers to write to a pin you would normally write:

    HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, GPIO_PIN_RESET);

But, how would you do that using PA1_C, for instance?

Thank you.

3 REPLIES 3
Pavel A.
Evangelist III

What is PA1_C? Pins of port A are named PA0-PA15. Pins of port C are named PC0-PC15.

-- pa

Uwe Bonnes
Principal III

These are special bond options on some big BGA packages.

The functionality is completely split between Pxx and Pxx_C, so only to one of them is the GPIO connected, see pin table in datasheet. Unless you switch on the switch which connects the two internally, you cannot use GPIO to read/write the state of other.

JW