mirror of
https://github.com/grblHAL/core.git
synced 2026-09-27 19:13:58 +08:00
This build has moved the probe input to the ioPorts pool of inputs and will be allocated from it when configured.
The change is major and potentially dangerous, it may damage your probe, so please verify correct operation after installing. Fix for STM32F4xx issue 161, Ethernet connection unresponsive if USB port not powered. Enhanced ioPorts interface: New debounce option for input pins that are interrupt capable, currently only possible to enable via plugin code - later to be made available via a $-setting. Added some wrapper functions for simpler plugin code++ Added simple task scheduler to the core, allows interrupt routines to dispatch jobs to the foreground process, delayed tasks and repeating tasks attached to the 1 ms system timer. Some drivers and plugins now uses the scheduler for input pin debouncing, regular polling etc. The core uses it for stepper disabling and sleep monitoring.
This commit is contained in:
+6
-5
@@ -3,20 +3,20 @@
|
||||
|
||||
Part of grblHAL
|
||||
|
||||
Copyright (c) 2023 Terje Io
|
||||
Copyright (c) 2023 - 2024 Terje Io
|
||||
|
||||
Grbl is free software: you can redistribute it and/or modify
|
||||
grblHAL is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Grbl is distributed in the hope that it will be useful,
|
||||
grblHAL is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
|
||||
along with grblHAL. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
@@ -32,6 +32,7 @@ struct st2_motor; // members defined in stepper2.c
|
||||
typedef struct st2_motor st2_motor_t;
|
||||
|
||||
st2_motor_t *st2_motor_init (uint_fast8_t axis_idx, bool is_spindle);
|
||||
bool st2_motor_bind_spindle (uint_fast8_t axis_idx);
|
||||
float st2_motor_set_speed (st2_motor_t *motor, float speed);
|
||||
bool st2_motor_move (st2_motor_t *motor, const float move, const float speed, position_t type);
|
||||
bool st2_motor_run (st2_motor_t *motor);
|
||||
|
||||
Reference in New Issue
Block a user