2,14 → 2,7 |
#include "process.h" |
#include <math.h> |
|
// nastaveni teplot a casu |
#define TEPLOTA_PREDEHREVU 120 |
#define DOBA_PREDEHREVU 60 |
|
#define TEPLOTA_VRCHOLU 216 |
#define DOBA_VRCHOLU 5 |
|
// CPU IO rozhrani |
// CPU IO |
#define LCD_RS PIN_C1 // rizeni registru LCD displeje |
#define LCD_E PIN_C2 // enable LCD displeje |
#define LCD_DATA_LSB PIN_D0 // data LCD |
32,7 → 25,7 |
#define PowerOn() output_low(POWER_T4);output_low(POWER_T5) |
#define PowerOff() output_high(POWER_T4);output_high(POWER_T5) |
|
// globalni promenne |
// global variables |
struct time |
{ |
volatile signed int8 hod; |
237,7 → 230,7 |
printf(lcd_putc,"%1.1f\21C/s ",temp_slope); |
|
delay_ms(200); |
if (cas.min>3) heat_failure(); |
if (cas.min>4) heat_failure(); // hardcoded timeout to heating failure |
} |
while (teplota() < SOAK_TEMP); |
|