Commit Graph

49 Commits

Author SHA1 Message Date
Markus Hitter 33b550e227 Makefile: add better optimisation flags.
Fetched from V-USB's Readme.txt. Saves almost 200 bytes and thus
likely makes the binary faster.
2012-12-03 19:48:24 +01:00
Markus Hitter 0b11812ce5 Make use of the new usb_serial (and drop usage of lufa_serial).
At this point in time not a single user of LUFA is known and
here is reported how usb_serial apparently works more reliable:

http://forums.reprap.org/read.php?147,33082,160724#msg-160724

So it's likely we can move from lufa_serial to usb_serial entirely.
2012-11-08 16:37:18 +01:00
David Forrest 52ce6b5f52 More enablement of ATmega32U chip.
- ATmega32U timer 4 register handling differs from other AVRs:
  Change heater.c and mendel.c.
- LUFA USB recognition expanded in Makefile.
- Add section for __AVR_ATmega32U4__ in arduino.h.
2012-10-14 22:56:09 +02:00
Markus Hitter 28cf72bfe8 Makefile: change wording regarding a newer config.default.h again.
Hope it's clear now :-)
2012-08-04 22:07:51 +02:00
Markus Hitter d49c0745d5 dda_maths.h: make um_to_steps_{xyze}() inline functions.
Size and speed is the same as with #defines, but now there is
type checking.
2012-08-04 22:06:59 +02:00
Markus Hitter 55132c0458 Makefile: don't provide means for programming fuses.
Programming fuses doesn't belong to the firmware or to firmware
uploading. Fuses have to match the hardware and the bootloader,
so they should be set when setting up these.
2012-07-16 20:15:18 +02:00
Markus Hitter 7f3c1e61ba Makefile: clarify definition of the firmware upload device in use.
Programmers typically don't do baud rate, so setting the avrdude -b
flag has to be avoided in this case.
2012-07-16 20:15:03 +02:00
Markus Hitter 7efb895ee3 Introduce an integer multiply-divide algorithm.
We have multiplies followed by divides all over the place and
most of them are difficult to handle regarding overflows. This
new algorithm handles this fine in all cases, as long as all
three operators and the overall result fits into 32 bits.
2012-07-16 20:13:29 +02:00
Markus Hitter 1c998067bd Makefile: add instruction on how to get rid of an error message. 2012-07-13 15:01:27 +02:00
Markus Hitter b7cd9859c4 Rename config.h.dist to something with a .h suffix.
This eases working with colouring text editors and is more
consistent with all those board-specific configs.
2011-10-23 19:51:45 +02:00
Markus Hitter 5e85bb4fbb Makefile: typo fix. 2011-08-16 15:19:11 +02:00
Markus Hitter 9e64fdd8b0 Makefile: make that sizes table fit into 80 chars again. 2011-08-16 15:14:50 +02:00
Markus Hitter f6a70a5984 Makefile: get rid of that unrequested diff output.
This masks the message and annoys developers.
2011-08-16 15:14:47 +02:00
Bas Laarhoven b05e358223 Added size output for ATMEGA1280. 2011-08-16 13:38:53 +02:00
Michael Moon 7a57b69cc1 fix delay compilation. Takes some of madscifi's ideas yet still provides fallback functions for eg; homing which uses variable delays 2011-05-10 13:55:08 +10:00
Jim McGee b00c53f69e The addition of delay.h to the dependencies of (PROGRAM).elf did not have the desired effect (to force a recompile of all if delay.h changed). Removed the dependency. 2011-05-04 22:33:41 -07:00
Jim McGee 86a34ad5a2 Eliminates overflow in the delayMicrosecondsInterruptible
function.

Inline delay functions and change base function to
use __builtin_avr_delay_cycles(). Generated delays
are at least as long as the requested delay and
compensate for the system clock (based on F_CPU).

Delay functions must be called with constant values.
A compile time error is issued if they are not.

Delay.c removed as it is no longer used.
2011-05-04 20:14:46 -07:00
Michael Moon 143398705c add "functionsbysize" make target 2011-04-29 10:55:42 +10:00
Michael Moon d7f5c08174 all defines live in config.h now, remove from Makefile 2011-03-24 11:26:11 +11:00
Michael Moon 0dc7d77885 Massive Doxygen documentation addition
'make doc' then point your browser at doc/html/

Needs plenty of cleanup and polishing, but the main bulk is here

even documents your configuration! ;)
2011-03-22 01:34:36 +11:00
Vaclav Ax Hula 0ec0d360be atmega2560 support in makefile 2011-03-07 13:45:09 +11:00
Vaclav Ax Hula dba296d3d2 Complete project renaming 2011-03-07 13:44:54 +11:00
Ben Jackson 08b516d7f3 Add support for USB serial using the LUFA library.
Configured for at90usb1287 and F_CPU=8000000L this is compatible with
the AT90USBKEY.  Other boards, chips and frequencies require updating
the configuration in lufa_serial/makefile and possibly adding a Board
driver to the LUFA submodule.
2011-03-06 09:18:58 +11:00
Michael Moon 780dea1186 avr-libc's math is smaller than gcc's, use it 2011-02-21 19:09:08 +11:00
Michael Moon 8540be950a use CRC16 to verify heater PID settings in eeprom 2011-02-20 17:13:09 +11:00
Michael Moon 9dc4d54133 fix compile error around new homing logic 2011-02-20 16:35:22 +11:00
Markus Amsler d88179a9ce Makefile: Remove .eeprom .fuse .lock sections from hex file.
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-02-04 11:00:45 +11:00
Michael Moon 096d7dfdf3 Merge release-candidate-triffid branch 2011-01-07 23:09:13 +11:00
Markus Hitter eca4b0b0ec Makefile: add other configuration values in comments. 2010-10-25 11:44:49 +02:00
Michael Moon 3e0b40a2cf get .al files for simulation, fix file list for split gcode parser 2010-10-21 11:05:55 +11:00
Stephan Walter 3028b297f3 Add simulation code: use "make sim" 2010-10-21 11:05:55 +11:00
Michael Moon 56c355c5bd split gcode parse/process into separate files for readability 2010-10-20 17:51:49 +11:00
Michael Moon e3d0aa7b62 split delay functions into separate files 2010-10-11 10:12:35 +11:00
Michael Moon 775f5400e3 Added atmega644 to size display 2010-10-08 20:48:47 +11:00
Markus Hitter af53d2350e Makefile: different solution for commit f5a26de775, as suggested
by triffid.
2010-10-05 12:19:34 +02:00
John Gilmore cfff4ca5d3 added "config.h" to dependancies for everything.
I noticed that changing config.h didn't recompile dda.c.
So I changed that.
2010-10-03 23:27:38 +02:00
Markus Hitter f5a26de775 Makefile: fix the build failure introduced with the recent Makefile
change. Sorry for letting this slip through.
2010-10-02 16:37:05 +02:00
Markus Hitter 5cb2982e57 Makefile: disallow building if config.h obviously isn't up to date. 2010-10-02 16:14:20 +02:00
Michael Moon bd76a6ce1c Expanded README, updated Makefile header 2010-09-26 11:12:34 +10:00
Michael Moon b80c5ea7b5 UNTESTED support for thermistor and AD595 2010-09-13 17:14:12 +10:00
Michael Moon fb82865dfc Add eeprom to size display 2010-09-12 16:21:41 +10:00
Michael Moon 273d63f242 splitting heater stuff out into a separate file 2010-09-12 14:47:49 +10:00
Michael Moon 53a0978529 stty ixoff enables host-side support of XON/XOFF flow control, rather than ixon 2010-09-11 23:14:13 +10:00
Michael Moon 632ddaa216 added some descriptions of available defines 2010-09-10 13:19:59 +10:00
Markus Hitter 446b2223cc Makefile: add a variable for avrdude.conf, as the location
of this file depends on the environment.
2010-09-08 16:27:02 +02:00
Markus Hitter 54f9598ef1 Turn off the DEBUG flag by default for making the default
build fit onto a '168. There's a commented line for turning it on easily.
2010-09-08 16:20:58 +02:00
Michael Moon 3ec34e5761 Fixed makefile to use avr-objdump to calculate size 2010-09-06 08:05:03 +10:00
Michael Moon 0b51c1d0ab Merge branch 'mendel-triffid'
Conflicts:
	dda.c
	gcode.c
	machine.h
	temp.c
2010-08-10 14:55:06 +10:00
Michael Moon 595b66a341 setting up new branch 2 2010-08-10 14:26:24 +10:00