drygascon128_arm_selector.h 1.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#ifndef __DRYGASCON_ARM_SELECTOR_H__
#define __DRYGASCON_ARM_SELECTOR_H__
//Optional file to select the best implementation for each chip

#ifdef STM32H743xx
    #define __DRYGASCON_ARM_SELECTOR_V7M__
    #define __DRYGASCON_ARM_SELECTOR_FPU__
#endif

#ifdef STM32F746xx
    #define __DRYGASCON_ARM_SELECTOR_V7M__
    #define __DRYGASCON_ARM_SELECTOR_FPU__
#endif

#ifdef STM32F103xx
    #define __DRYGASCON_ARM_SELECTOR_V7M__
#endif

#ifdef STM32L011xx
    #define __DRYGASCON_ARM_SELECTOR_V6M__
#endif

#ifdef __SAM3X8E__
    #define __DRYGASCON_ARM_SELECTOR_V7M__
#endif

//TODO: add more chips here

#ifdef __DRYGASCON_ARM_SELECTOR_V7M__
    #ifdef __DRYGASCON_ARM_SELECTOR_FPU__
        #define DRYGASCON_G_OPT   drygascon128_g_v7m_fpu
        #define DRYGASCON_F_OPT   drygascon128_f_v7m_fpu
        #define DRYGASCON_G0_OPT drygascon128_g0_v7m_fpu
    #else
        #define DRYGASCON_G_OPT   drygascon128_g_v7m
        #define DRYGASCON_F_OPT   drygascon128_f_v7m
        #define DRYGASCON_G0_OPT drygascon128_g0_v7m
    #endif
#endif

#ifdef __DRYGASCON_ARM_SELECTOR_V6M__
        #define DRYGASCON_G_OPT   drygascon128_g_v6m
        #define DRYGASCON_F_OPT   drygascon128_f_v6m
        //#define DRYGASCON_G0_OPT drygascon128_g0_v6m
        #define DRYGASCON_ALIGN_INPUT_32
#endif

#endif