#pragma once

#include <main.h>

//--------------------------------------------------------------
// Set a real type for FPU usage if available
#if defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)
#  if defined(__FPU_DP) && (__FPU_DP == 1U)
// FPU with double precision support
using Real = double;
#  else
// FPU with single precision only
using Real = float;
#  endif
#else
// No FPU present. Floating point will be emulated
// (It is better to use a smaller type to be cheaper)
using Real = float;
#endif
//--------------------------------------------------------------
