Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix variable size on step_pulse_time for STM32 targets #66

Open
wants to merge 2 commits into
base: edge
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions grbl/stepper.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,12 @@ typedef struct {
#endif

uint8_t execute_step; // Flags step execution for each interrupt.
#ifndef WIN32
uint8_t step_pulse_time; // Step pulse reset time after step rise
#ifdef WIN32
LONGLONG step_pulse_time; // Step pulse reset time after step rise
#elif defined(STM32F103C8)
uint16_t step_pulse_time; // Step pulse reset time after step rise
#else
LONGLONG step_pulse_time;
uint8_t step_pulse_time; // Step pulse reset time after step rise
#endif
PORTPINDEF step_outbits; // The next stepping-bits to be output
PORTPINDEF dir_outbits;
Expand Down