Replace UINT16_MAX with (uint16_t)-1 because of build failure
Replace UINT16_MAX with (uint16_t)-1 because of build failure

betzw/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,betzw/mbed-os,betzw/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,betzw/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,betzw/mbed-os,c1728p9/mbed-os