![Logo](ti_logo.svg) |
AM263x Motor Control SDK
09.02.00
|
|
Go to the documentation of this file.
33 #ifndef _DCL_COMMON_H_
34 #define _DCL_COMMON_H_
60 #endif // IEEE754_TYPES
63 #define _DCL_CODE_ACCESS static inline
70 #define _DCL_CRIT_ACCESS static __attribute__((always_inline)) //__attribute__((section("dclfuncs")))
76 #ifdef DCL_VOLATILE_ENABLED
77 #define _DCL_VOLATILE volatile
84 #if defined (__TMS320C28XX__) //C28 ISA
85 #define DCL_setBreakPoint() asm(" ESTOP")
86 #elif defined (__ARM_ARCH) //ARM ISA
87 #define DCL_setBreakPoint() __asm(" bkpt #0")
89 #define DCL_setBreakPoint()
90 #warning "DCL currently doesn't support break point for this architecture"
95 #if defined (__TMS320C28XX__)
96 #define DCL_disableInts() __disable_interrupts()
97 #define DCL_restoreInts(v) if (0U == (v & 0x1)) __enable_interrupts()
99 #elif defined (SOC_AM64X) || defined (SOC_AM243X) || defined (SOC_AM263X)
100 #include <kernel/dpl/HwiP.h>
101 #define DCL_disableInts() HwiP_disable()
102 #define DCL_restoreInts(v) HwiP_restore(v)
105 #define DCL_disableInts() 0
106 #define DCL_restoreInts(v)
108 #warning "DCL currently doesn't support interrupt operations for this architecture"
123 #endif // _DCL_COMMON_H_
Defines ZPK3 strcture that represents a third order transfer function of poles and zeros.
Defines both single, double precision clamp function for saturation.
uint32_t dcl_interrupt_t
Definition: dcl_common.h:107
Defines Controller Common Support Structure (CSS) and related macros.
double float64_t
Definition: dcl_common.h:59
Defines all the auxiliary macros for DCL.
float float32_t
Definition: dcl_common.h:58
Defines polynomial stability functions.