|
@@ -60,8 +60,8 @@
|
60
|
60
|
#endif
|
61
|
61
|
#endif
|
62
|
62
|
|
63
|
|
-#define CRITICAL_SECTION_START() portENTER_CRITICAL(&spinlock)
|
64
|
|
-#define CRITICAL_SECTION_END() portEXIT_CRITICAL(&spinlock)
|
|
63
|
+#define CRITICAL_SECTION_START() portENTER_CRITICAL(&hal.spinlock)
|
|
64
|
+#define CRITICAL_SECTION_END() portEXIT_CRITICAL(&hal.spinlock)
|
65
|
65
|
|
66
|
66
|
#define HAL_CAN_SET_PWM_FREQ // This HAL supports PWM Frequency adjustment
|
67
|
67
|
#define PWM_FREQUENCY 1000u // Default PWM frequency when set_pwm_duty() is called without set_pwm_frequency()
|