Changes to support running on smaller memory LPC device LPC1764

Fork of mbed-dev by mbed official

common/wait_api.c@11f9a9a04805: not found in manifest