6 years ago.

What is purpose of typedef enum {...)ALTx

Hi, everybody! Can somebody explain purpose of this construction: typedef enum { ALT0 = 0x100, ALT1 = 0x200, ALT2 = 0x300, ALT3 = 0x400 } ALTx;

if it defines pin alternate functions it should be more than 4 kind. Isn't it? for example in stm32l486vg pin pc9 has 8 alt functions. sorry for my English.

1 Answer

6 years ago.

Hi

Please find some answers here:

https://os.mbed.com/teams/ST/wiki/pinout_labels