Added support for ST nucleo devices.

Nucleo boards using the same endpoint for IN and OUT (1). This patch
fix it.