X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/19d56e392f87341e7abb26639e9b257aa78d4c92..87f4338b452dea4fdebba3eac573bec999642eb9:/bmc/chassis.c diff --git a/bmc/chassis.c b/bmc/chassis.c index 1b6822e..2259d86 100644 --- a/bmc/chassis.c +++ b/bmc/chassis.c @@ -1,6 +1,8 @@ #include +#include #include +#include "config.h" #include "chassis.h" #ifdef __AVR_ATmega16__ @@ -20,12 +22,23 @@ #define _CDDR(port) __CDDR(port) #define CDDR _CDDR(CHASSISPORT) +static volatile int power_cnt = 0; +static volatile int reset_cnt = 0; +static volatile int power_cycle = 0; + static void chassis_set_pins(uint8_t pins, uint8_t state); void chassis_init() { chassis_set_pins((1<