Is there a way to specify a half-precision data type in MCU 10.x?

CodeWarrior for Microcontrollers v10.2 have full support for the single precision FPU as it is included in the ARM CortexM4 architecture. However, if you are using the CodeWarrior for Microcontrollers v10.1 with SP for Kinetis P3, you will not have this feature included.

The following image shows the CodeWarrior for Microcontrollers v10.2 option in project build settings which you can use to activate the support

Figure 1. ARM Compiler - Support for the Single Precision FPU

ARM Compiler - Support for the Single Precision FPU

There is also a similar option in the Languages and Build Tools Options page (refer to the image listed below) of the New Project Wizard for all derivatives of the Kinetis which support FPU (ones containing F in the part name).

Figure 2. Languages and Build Tools Options - Single Precision FPU

Languages and Build Tools Options - Single Precision FPU