diff --git a/examples/motor_control/control/foc/foc.h b/examples/motor_control/control/foc/foc.h index 2d04944..e09bfa3 100644 --- a/examples/motor_control/control/foc/foc.h +++ b/examples/motor_control/control/foc/foc.h @@ -37,6 +37,7 @@ #define FOC_H_ #include #include +#include // BLY171D-24V-6000 - Only used by SMO module #define RS 1.15 // Stator resistance (ohm) diff --git a/examples/motor_control/pruss_intc_mapping.h b/examples/motor_control/pruss_intc_mapping.h index 0d8b124..d3411e7 100644 --- a/examples/motor_control/pruss_intc_mapping.h +++ b/examples/motor_control/pruss_intc_mapping.h @@ -84,16 +84,16 @@ #define PRU_EVTOUT0 2 #define PRU_EVTOUT5 7 -#define PRU0_HOSTEN_MASK 0x0001 -#define PRU1_HOSTEN_MASK 0x0002 -#define PRU_EVTOUT0_HOSTEN_MASK 0x0004 -#define PRU_EVTOUT5_HOSTEN_MASK 0x0080 - #define SYS_EVT_POLARITY_HIGH 1 #define SYS_EVT_TYPE_EDGE 1 #endif +#define PRU0_HOSTEN_MASK 0x0001 +#define PRU1_HOSTEN_MASK 0x0002 +#define PRU_EVTOUT0_HOSTEN_MASK 0x0004 +#define PRU_EVTOUT5_HOSTEN_MASK 0x0080 + // ICSS0 / ICSS_L #ifndef SWITCHABLE_ENCODERS #define PRU_ICSS0_INTC_INITDATA { \ -- 2.27.0.windows.1