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

Fixed compilation for gcc-4.6.2 with avr-libc-1.8.0 #56

Closed
wants to merge 8 commits into from
Closed

Fixed compilation for gcc-4.6.2 with avr-libc-1.8.0 #56

wants to merge 8 commits into from

Conversation

daid
Copy link
Contributor

@daid daid commented Feb 3, 2012

I've compiled the latest gcc for AVR, combined with the latest avr-libc. When I use this a few minor things pop up.

The prog_char has been removed. The reason is that it was never properly supported: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38342

Two const modifiers where missing in the speed lookup tables. This is needed for proper placement in flash.

The calculation of stepper_inactive_time overflows, because it's calculated with 16 bit values.

The PSTR macro works properly in this version.

<avr/delay.h> should be replaced with <util/delay.h>, the Arduino environment normally suppresses this warning. But the Arduino environment does support <util/delay.h>

After this the only warning left is about no heater configured for the bed. Which is fine.

The type prog_char has been removed from avr-libc. The PROGMEM attribute is illigal on types. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38342 and the changelogs of avr-libc-1.8.0
Two consts modifiers where missing, which the new avr-gcc warns you about.
<avr/delay.h> has been depricated a long time ago. <util/delay.h> should be used. I think the shipping avr with the windows arduino software has removed the warning.
Removed a strange #define SERIAL from SdBaseFile, it was not used in the code anywhere, and caused a conflict with the default header from Arduino-1.0.
@ehntoo ehntoo mentioned this pull request Feb 3, 2012
haxar and others added 7 commits February 6, 2012 18:41
… (pronterface) could not see target extruder heater temperature to continue print
Added late z enable. (blddk request)
Only calculate look ahead if >2 moves in buffer.
Removed some FORCE_INLINE to save memory.

Signed-off-by: Erik van der Zalm <erik@vdzalm.eu>
Needs some work to remove the blocking in read max6675.
@ErikZalm
Copy link
Contributor

ErikZalm commented Feb 9, 2012

Added

@ErikZalm ErikZalm closed this Feb 9, 2012
thinkyhead referenced this pull request in thinkyhead/Marlin Sep 6, 2019
arades79 pushed a commit to CELLINKAB/Marlin that referenced this pull request Mar 15, 2024
remove DEBUG_ADD_STEPS and fix unit-step conversion for IRQ pulsed steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants