Compilation fix for newer mbed-os

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
309:42e0b6ff504d
Parent:
287:e2efcf2f0da8