@@ -1749,9 +1749,9 @@ bool driver_init (void)
1749
1749
.Mode = GPIO_MODE_OUTPUT_PP
1750
1750
};
1751
1751
1752
- HAL_GPIO_Init (MPG_MODE_PORT , & GPIO_Init );
1752
+ DIGITAL_OUT (MPG_MODE_PORT , MPG_MODE_PIN , 0 );
1753
1753
1754
- DIGITAL_OUT (MPG_MODE_PORT , MPG_MODE_PIN , 1 );
1754
+ HAL_GPIO_Init (MPG_MODE_PORT , & GPIO_Init );
1755
1755
1756
1756
#endif
1757
1757
@@ -1770,7 +1770,7 @@ bool driver_init (void)
1770
1770
#else
1771
1771
hal .info = "STM32F103CB" ;
1772
1772
#endif
1773
- hal .driver_version = "240404 " ;
1773
+ hal .driver_version = "240425 " ;
1774
1774
hal .driver_url = GRBL_URL "/STM32F1xx" ;
1775
1775
#ifdef BOARD_NAME
1776
1776
hal .board = BOARD_NAME ;
@@ -1955,6 +1955,12 @@ bool driver_init (void)
1955
1955
input -> mode .debounce = hal .driver_cap .software_debounce ;
1956
1956
}
1957
1957
limit_inputs .n_pins ++ ;
1958
+ } else if (input -> group == PinGroup_Control && (CONTROL_MASK & input -> bit )) {
1959
+ pin_irq [__builtin_ffs (input -> bit ) - 1 ] = input ;
1960
+ #if xSAFETY_DOOR_ENABLE
1961
+ if (input -> id == Input_SafetyDoor )
1962
+ input -> mode .debounce = hal .driver_cap .software_debounce ;
1963
+ #endif
1958
1964
}
1959
1965
}
1960
1966
@@ -2086,7 +2092,7 @@ void core_pin_debounce (void *pin)
2086
2092
#endif
2087
2093
2088
2094
if (input -> mode .irq_mode == IRQ_Mode_Change ||
2089
- DIGITAL_IN (input -> port , input -> pin ) == (input -> mode .irq_mode == IRQ_Mode_Falling ? 0 : 1 )) {
2095
+ DIGITAL_IN (input -> port , input -> pin ) == (input -> mode .irq_mode == IRQ_Mode_Falling ? 0 : 1 ) || true ) {
2090
2096
2091
2097
if (input -> group & (PinGroup_Control )) {
2092
2098
hal .control .interrupt_callback (systemGetState ());
0 commit comments