Commit Graph

11 Commits

Author SHA1 Message Date
Nico Tonnhofer 0f83223bc8 arduino: Extend arduino-files with pin ##_TCCR and _COM for heater-avr.
Add also NO_PWM_PIN and NO_TCCR_PIN to arduino-files.

		config			|Program|Data
	--------------------		|---	|---
config.regtest-gen7-avr.h		| -94	| 0
config.regtest-ramps.h			| -226	| 0
config.regtest-nanoheart.h		| -80	| 0
config.regtest-teensy2.h		| -150	| 0
config.regtest-gen3.h			| 0	| 0
config.h.Profiling			| -92	| 0
config.regtest-display.h		| -94	| 0
config.regtest-acceleration-reprap.h	| -226	| 0
config.regtest-acceleration-temporal.h	| -226	| 0
config.regtest-gen7-arm.h		| 0	| 0
config.regtest-no-endstops.h		| -102	| 0
config.regtest-no-lookahead.h		| -94	| 0
2017-03-21 14:51:27 +01:00
Markus Hitter 1fb3ece31e SD card: establish spi.c/.h and sd.c/.h and get SPI running.
For now this is just a nice demonstration on how to send bytes
over SPI. Add SD_CARD_SELECT_PIN to your configuration board
file manually to see data signals on MOSI dancing on the scope.

The TODO's about SS in arduino*.h were wrong, SS does have a
chip-specific special meaning (used in SPI multi-master or SPI
slave mode). Still, a #define MAX6675_SELECT_PIN is missing.

Squashed in this commit from the SPI development topic branch to
get this first step working:

Author: jbernardis <jeff.bernardis@gmail.com>
2015-02-04 22:35:07
mendel.c: disable SPI in power management only when not needed.

If we want to talk to a SD card connected to SPI, we need SPI
powered, of course.

From Traumflug: nice catch, Jeff!
2015-07-05 23:32:46 +02:00
Markus Hitter a9f1d00865 Move MAX6675 initialisation from mendel.c to temp.c.
Also note a misplaced and misnamed pin.
2014-12-26 19:41:38 +01:00
Markus Hitter 5b3121abc5 arduino_xxx.h: add DIO names next to AIO names.
This is mostly for less confusion, because analog pins can
be used as digital ones, too. It also matches what other firmwares
do, so people can simply copy & paste pin definitions.

Definitions were taken from Sprinter's fastio.h (which was
initially crafted by copying Teacup's arduino*.h files :-) )
2014-08-31 19:11:58 +02:00
Markus Hitter 6250dbb9e0 Configuration: move DEBUG_LED definition.
Eventual debugging LEDs aren't part of the CPU, but part of the
electronics. Accordingly, define it in config.*.h, not in
arduino_*.h (which would be better named something like
"atmega_*.h).
2014-08-31 19:05:38 +02:00
Mikko Sivulainen bfe5e6f2fc Fixed ADC channel handling.
ADC pin is not the same as ADC channel in atmega1280/2560.
2012-09-29 22:57:55 +02:00
Michael Moon 2822721a59 improve and simplify heater pin initialisation by moving to io_init[mendel.c] and using macro magic with DEFINE_HEATER 2011-05-05 00:02:06 +10:00
Michael Moon dba60ba1eb fix error: lvalue required as unary '&' operand when heater pin is not a PWMable pin. 2011-04-04 09:10:25 +10:00
Michael Moon 3c3624542f simplify heater configuration by using arduino_*.h more effectively with DEFINE_HEATER macro 2011-03-28 18:45:28 +11:00
Michael Moon 096d7dfdf3 Merge release-candidate-triffid branch 2011-01-07 23:09:13 +11:00
Michael Moon 6169dadae7 split arduino pin definitions out into different files 2010-10-20 17:52:55 +11:00