While trying to use Atmel's ASF library, they say
- __FPU_PRESENT: Initialize macro __FPU_PRESENT = 1 when building on FPU supported Targets. Enable this macro for M4bf and M4lf libraries
So I guess I need to check the datasheet if my uC, ATSAM4S16C AU has a floating-point unit and if so, define the macro before including the header inside my project.
But I can't figure the datasheet. Section 12.4.6 lists entries like
VADD.F32 | {Sd,} Sn, Sm | Floating-point Add
However, no clock cycles indicated. Searching the document for FPU or F32 yields nothing. Checking the instruction, only ADD is documented, no VADD.32. So I do not know if this is computed in hardware or in software (in libm.a).
How do I know if the SAM4 has an FPU?