defines for PT100 sensors- actual code to come later

This commit is contained in:
Michael Moon 2010-11-20 12:23:38 +11:00
parent 3b6326911a
commit 8e4b35b0da
2 changed files with 10 additions and 1 deletions

View File

@ -211,6 +211,7 @@
// #define TEMP_MAX6675
// #define TEMP_THERMISTOR
// #define TEMP_AD595
// #define TEMP_PT100
#define TEMP_INTERCOM
// if you selected thermistor or AD595, what pin is it on? (this value only used to fill ANALOG_MASK for you)
@ -285,7 +286,8 @@ struct {
} heaters[NUM_HEATERS]/* =
{
// port pin pwm
{ &PORTD, PIND6, &OCR0A }
{ &PORTD, PIND6, &OCR0A },
{ &PORTD, PIND5, &OCR0B }
}*/;
#endif

7
temp.c
View File

@ -19,6 +19,7 @@ typedef enum {
TT_THERMISTOR,
TT_MAX6675,
TT_AD595,
TT_PT100,
TT_INTERCOM
} temp_types;
@ -206,6 +207,12 @@ void temp_sensor_tick() {
break;
#endif /* TEMP_AD595 */
#ifdef TEMP_PT100
case TT_PT100:
#warning TODO: PT100 code
break
#endif /* TEMP_PT100 */
#ifdef GEN3
case TT_INTERCOM:
temp = get_read_cmd() << 2;