Arm Mbed OS support forum

Can you Print all MBED define names and values?

I am coming from Arduino to Mbed and sometimes Arduino is a bit slow to activate all #defines that are used in Mbed? I have the very new Portenta Breakout Board with all 160 pins available to program.

I know I can print the value for any Mbed #define that I already know, such as “PA_4”, “PB_9”, “PH_12” but is there a way to loop through every #define available and print the name and value?

I know that if I know the name of the array for the defines I can print those out example “const pwm_apb_map_t pwm_apb_map_table[]”, but what if I don’t know the name of the array?

Is there a way to loop through every #define available for your board and print the name and value?

Hello,

PinNames.h
PeripheralPins.c

BR, Jan