Compilation fix for newer mbed-os

Fork of X_NUCLEO_IDB0XA1 by ST

unknown revision 'e17358ecf8f5'