[NUCLEO_xxx] Fix us_ticker and analog_out issues when -O3/-Otime options are used